2019-07-10 17:02:35 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* 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
|
|
|
*/
|
|
|
|
|
2020-12-21 21:06:59 +01: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 */
|
2019-10-14 16:51:42 +02:00
|
|
|
kibanaIndex: string,
|
2019-07-10 17:02:35 +02:00
|
|
|
/** Function for calling elasticsearch */
|
2020-12-21 21:06:59 +01:00
|
|
|
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;
|
|
|
|
}>;
|
|
|
|
}
|