2021-03-03 04:02:17 +01:00
|
|
|
{
|
|
|
|
"id": "telemetryCollectionManager",
|
|
|
|
"client": {
|
|
|
|
"classes": [],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [],
|
|
|
|
"objects": []
|
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"classes": [],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [
|
2021-03-06 02:12:28 +01:00
|
|
|
{
|
|
|
|
"id": "def-server.ClusterDetails",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "ClusterDetails",
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.ClusterDetails.clusterUuid",
|
|
|
|
"type": "string",
|
|
|
|
"label": "clusterUuid",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
|
|
"lineNumber": 53
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
|
|
"lineNumber": 52
|
|
|
|
},
|
|
|
|
"initialIsOpen": false
|
|
|
|
},
|
2021-03-03 04:02:17 +01:00
|
|
|
{
|
|
|
|
"id": "def-server.StatsCollectionConfig",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "StatsCollectionConfig",
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionConfig.usageCollection",
|
|
|
|
"type": "Object",
|
|
|
|
"label": "usageCollection",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 57
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"Pick<",
|
|
|
|
{
|
|
|
|
"pluginId": "usageCollection",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
|
|
"section": "def-server.CollectorSet",
|
|
|
|
"text": "CollectorSet"
|
|
|
|
},
|
|
|
|
", \"makeStatsCollector\" | \"makeUsageCollector\" | \"registerCollector\" | \"getCollectorByType\" | \"areAllCollectorsReady\" | \"bulkFetch\" | \"bulkFetchUsage\" | \"toObject\" | \"toApiFieldNames\">"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionConfig.esClient",
|
|
|
|
"type": "CompoundType",
|
|
|
|
"label": "esClient",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 58
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCorePluginApi",
|
|
|
|
"section": "def-server.ElasticsearchClient",
|
|
|
|
"text": "ElasticsearchClient"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionConfig.soClient",
|
2021-03-05 12:11:14 +01:00
|
|
|
"type": "Object",
|
2021-03-03 04:02:17 +01:00
|
|
|
"label": "soClient",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 59
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"Pick<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreSavedObjectsPluginApi",
|
|
|
|
"section": "def-server.SavedObjectsClient",
|
|
|
|
"text": "SavedObjectsClient"
|
|
|
|
},
|
2021-03-30 14:27:28 +02:00
|
|
|
", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\" | \"createPointInTimeFinder\">"
|
2021-03-03 04:02:17 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionConfig.kibanaRequest",
|
|
|
|
"type": "Object",
|
|
|
|
"label": "kibanaRequest",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 60
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.KibanaRequest",
|
|
|
|
"text": "KibanaRequest"
|
|
|
|
},
|
|
|
|
"<unknown, unknown, unknown, any> | undefined"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 56
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"initialIsOpen": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "def-server.StatsCollectionContext",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "StatsCollectionContext",
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionContext.logger",
|
|
|
|
"type": "CompoundType",
|
|
|
|
"label": "logger",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 78
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"Logger",
|
|
|
|
" | Console"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.StatsCollectionContext.version",
|
|
|
|
"type": "string",
|
|
|
|
"label": "version",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 79
|
2021-03-03 04:02:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 77
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"initialIsOpen": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "def-server.UsageStatsPayload",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "UsageStatsPayload",
|
|
|
|
"signature": [
|
|
|
|
"UsageStatsPayload",
|
|
|
|
" extends ",
|
|
|
|
"BasicStatsPayload"
|
|
|
|
],
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.UsageStatsPayload.collectionSource",
|
|
|
|
"type": "string",
|
|
|
|
"label": "collectionSource",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 74
|
2021-03-03 04:02:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 73
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"initialIsOpen": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [
|
|
|
|
{
|
2021-03-06 02:12:28 +01:00
|
|
|
"id": "def-server.ClusterDetailsGetter",
|
2021-03-03 04:02:17 +01:00
|
|
|
"type": "Type",
|
2021-03-06 02:12:28 +01:00
|
|
|
"label": "ClusterDetailsGetter",
|
2021-03-03 04:02:17 +01:00
|
|
|
"tags": [],
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 83
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
2021-03-06 02:12:28 +01:00
|
|
|
"(config: ",
|
2021-03-03 04:02:17 +01:00
|
|
|
"StatsCollectionConfig",
|
|
|
|
", context: ",
|
|
|
|
"StatsCollectionContext",
|
2021-03-06 02:12:28 +01:00
|
|
|
") => Promise<",
|
|
|
|
"ClusterDetails",
|
|
|
|
"[]>"
|
2021-03-03 04:02:17 +01:00
|
|
|
],
|
|
|
|
"initialIsOpen": false
|
|
|
|
},
|
|
|
|
{
|
2021-03-06 02:12:28 +01:00
|
|
|
"id": "def-server.StatsGetter",
|
2021-03-03 04:02:17 +01:00
|
|
|
"type": "Type",
|
2021-03-06 02:12:28 +01:00
|
|
|
"label": "StatsGetter",
|
2021-03-03 04:02:17 +01:00
|
|
|
"tags": [],
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 87
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
2021-03-06 02:12:28 +01:00
|
|
|
"(clustersDetails: ",
|
|
|
|
"ClusterDetails",
|
|
|
|
"[], config: ",
|
|
|
|
"StatsCollectionConfig",
|
|
|
|
", context: ",
|
|
|
|
"StatsCollectionContext",
|
|
|
|
") => Promise<T[]>"
|
2021-03-03 04:02:17 +01:00
|
|
|
],
|
|
|
|
"initialIsOpen": false
|
|
|
|
},
|
|
|
|
{
|
2021-03-06 02:12:28 +01:00
|
|
|
"id": "def-server.StatsGetterConfig",
|
2021-03-03 04:02:17 +01:00
|
|
|
"type": "Type",
|
2021-03-06 02:12:28 +01:00
|
|
|
"label": "StatsGetterConfig",
|
2021-03-03 04:02:17 +01:00
|
|
|
"tags": [],
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 82
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
2021-03-06 02:12:28 +01:00
|
|
|
"UnencryptedStatsGetterConfig",
|
|
|
|
" | ",
|
|
|
|
"EncryptedStatsGetterConfig"
|
2021-03-03 04:02:17 +01:00
|
|
|
],
|
|
|
|
"initialIsOpen": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"objects": [],
|
|
|
|
"setup": {
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginSetup",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "TelemetryCollectionManagerPluginSetup",
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginSetup.setCollectionStrategy",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "setCollectionStrategy",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 19
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"<T extends ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.BasicStatsPayload",
|
|
|
|
"text": "BasicStatsPayload"
|
|
|
|
},
|
|
|
|
">(collectionConfig: ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.CollectionStrategyConfig",
|
|
|
|
"text": "CollectionStrategyConfig"
|
|
|
|
},
|
|
|
|
"<T>) => void"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginSetup.getOptInStats",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "getOptInStats",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 22
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"(optInStatus: boolean, config: ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.StatsGetterConfig",
|
|
|
|
"text": "StatsGetterConfig"
|
|
|
|
},
|
|
|
|
") => Promise<string[] | { cluster_uuid: string; opt_in_status: boolean; }[]>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginSetup.getStats",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "getStats",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 23
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"(config: ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.StatsGetterConfig",
|
|
|
|
"text": "StatsGetterConfig"
|
|
|
|
},
|
|
|
|
") => Promise<string[] | ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.UsageStatsPayload",
|
|
|
|
"text": "UsageStatsPayload"
|
|
|
|
},
|
|
|
|
"[]>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginSetup.areAllCollectorsReady",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "areAllCollectorsReady",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 24
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"() => Promise<boolean | undefined>"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 18
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"lifecycle": "setup",
|
|
|
|
"initialIsOpen": true
|
|
|
|
},
|
|
|
|
"start": {
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginStart",
|
|
|
|
"type": "Interface",
|
|
|
|
"label": "TelemetryCollectionManagerPluginStart",
|
|
|
|
"description": [],
|
|
|
|
"tags": [],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginStart.getOptInStats",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "getOptInStats",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 28
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"(optInStatus: boolean, config: ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.StatsGetterConfig",
|
|
|
|
"text": "StatsGetterConfig"
|
|
|
|
},
|
|
|
|
") => Promise<string[] | { cluster_uuid: string; opt_in_status: boolean; }[]>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginStart.getStats",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "getStats",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 29
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"(config: ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.StatsGetterConfig",
|
|
|
|
"text": "StatsGetterConfig"
|
|
|
|
},
|
|
|
|
") => Promise<string[] | ",
|
|
|
|
{
|
|
|
|
"pluginId": "telemetry",
|
|
|
|
"scope": "common",
|
|
|
|
"docId": "kibTelemetryPluginApi",
|
|
|
|
"section": "def-common.UsageStatsPayload",
|
|
|
|
"text": "UsageStatsPayload"
|
|
|
|
},
|
|
|
|
"[]>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tags": [],
|
|
|
|
"id": "def-server.TelemetryCollectionManagerPluginStart.areAllCollectorsReady",
|
|
|
|
"type": "Function",
|
|
|
|
"label": "areAllCollectorsReady",
|
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 30
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"signature": [
|
|
|
|
"() => Promise<boolean | undefined>"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
2021-03-06 02:12:28 +01:00
|
|
|
"lineNumber": 27
|
2021-03-03 04:02:17 +01:00
|
|
|
},
|
|
|
|
"lifecycle": "start",
|
|
|
|
"initialIsOpen": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"common": {
|
|
|
|
"classes": [],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [],
|
|
|
|
"objects": []
|
|
|
|
}
|
|
|
|
}
|