kibana/x-pack/plugins/canvas/types/telemetry.ts

29 lines
734 B
TypeScript
Raw Normal View History

2019-07-10 17:02:35 +02:00
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
2019-07-10 17:02:35 +02:00
*/
import { ElasticsearchClient } from 'kibana/server';
2019-07-10 17:02:35 +02:00
/**
Function for collecting information about canvas usage
*/
export type TelemetryCollector = (
/** The server instance */
kibanaIndex: string,
2019-07-10 17:02:35 +02:00
/** Function for calling elasticsearch */
esClient: ElasticsearchClient
2019-07-10 17:02:35 +02:00
) => Record<string, any>;
export interface TelemetryCustomElementDocument {
content: string;
}
export interface TelemetryCustomElement {
selectedNodes: Array<{
expression: string;
}>;
}