* Track stats and add extra output information * Update api docs output * Clean up id names * update api docs * Consolidate error messages and fix a bug * Update docs * Update get_declaration_nodes_for_plugin.ts * Fix bug with removeBrokenLinks not being recursive * Update docs Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # api_docs/data.json # api_docs/data_index_patterns.json # api_docs/data_search.json # api_docs/reporting.json
952 lines
No EOL
31 KiB
JSON
952 lines
No EOL
31 KiB
JSON
{
|
|
"id": "usageCollection",
|
|
"client": {
|
|
"classes": [],
|
|
"functions": [
|
|
{
|
|
"id": "def-public.TrackApplicationView",
|
|
"type": "Function",
|
|
"children": [
|
|
{
|
|
"id": "def-public.TrackApplicationView.$1",
|
|
"type": "CompoundType",
|
|
"label": "props",
|
|
"isRequired": true,
|
|
"signature": [
|
|
"React.PropsWithChildren<",
|
|
"TrackApplicationViewProps",
|
|
">"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/components/track_application_view/track_application_view.tsx",
|
|
"lineNumber": 23
|
|
}
|
|
}
|
|
],
|
|
"signature": [
|
|
"(props: React.PropsWithChildren<",
|
|
"TrackApplicationViewProps",
|
|
">) => JSX.Element"
|
|
],
|
|
"description": [
|
|
"\nReact component to track the number of clicks and minutes on screen of the children components."
|
|
],
|
|
"label": "TrackApplicationView",
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/components/track_application_view/track_application_view.tsx",
|
|
"lineNumber": 23
|
|
},
|
|
"tags": [
|
|
"Link",
|
|
"constructor"
|
|
],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"interfaces": [],
|
|
"enums": [
|
|
{
|
|
"id": "def-public.METRIC_TYPE",
|
|
"type": "Enum",
|
|
"label": "METRIC_TYPE",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "node_modules/@kbn/analytics/target/types/metrics/index.d.ts",
|
|
"lineNumber": 10
|
|
},
|
|
"signature": [
|
|
"METRIC_TYPE"
|
|
],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"misc": [],
|
|
"objects": [],
|
|
"setup": {
|
|
"id": "def-public.UsageCollectionSetup",
|
|
"type": "Interface",
|
|
"label": "UsageCollectionSetup",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.UsageCollectionSetup.components",
|
|
"type": "Object",
|
|
"label": "components",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/plugin.tsx",
|
|
"lineNumber": 35
|
|
},
|
|
"signature": [
|
|
"{ ApplicationUsageTrackingProvider: React.FC<{}>; }"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.UsageCollectionSetup.reportUiCounter",
|
|
"type": "Function",
|
|
"label": "reportUiCounter",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/plugin.tsx",
|
|
"lineNumber": 38
|
|
},
|
|
"signature": [
|
|
"(appName: string, type: ",
|
|
"UiCounterMetricType",
|
|
", eventNames: string | string[], count?: number | undefined) => void"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/plugin.tsx",
|
|
"lineNumber": 34
|
|
},
|
|
"lifecycle": "setup",
|
|
"initialIsOpen": true
|
|
},
|
|
"start": {
|
|
"id": "def-public.UsageCollectionStart",
|
|
"type": "Interface",
|
|
"label": "UsageCollectionStart",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.UsageCollectionStart.reportUiCounter",
|
|
"type": "Function",
|
|
"label": "reportUiCounter",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/plugin.tsx",
|
|
"lineNumber": 42
|
|
},
|
|
"signature": [
|
|
"(appName: string, type: ",
|
|
"UiCounterMetricType",
|
|
", eventNames: string | string[], count?: number | undefined) => void"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/public/plugin.tsx",
|
|
"lineNumber": 41
|
|
},
|
|
"lifecycle": "start",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"server": {
|
|
"classes": [
|
|
{
|
|
"id": "def-server.Collector",
|
|
"type": "Class",
|
|
"tags": [],
|
|
"label": "Collector",
|
|
"description": [],
|
|
"signature": [
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.Collector",
|
|
"text": "Collector"
|
|
},
|
|
"<TFetchReturn, ExtraOptions>"
|
|
],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.Collector.extendFetchContext",
|
|
"type": "CompoundType",
|
|
"label": "extendFetchContext",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 144
|
|
},
|
|
"signature": [
|
|
"CollectorOptionsFetchExtendedContext",
|
|
"<any>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.Collector.type",
|
|
"type": "string",
|
|
"label": "type",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 145
|
|
}
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.Collector.init",
|
|
"type": "Object",
|
|
"label": "init",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 146
|
|
},
|
|
"signature": [
|
|
"Function | undefined"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.Collector.fetch",
|
|
"type": "Function",
|
|
"label": "fetch",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 147
|
|
},
|
|
"signature": [
|
|
"CollectorFetchMethod",
|
|
"<any, TFetchReturn, ExtraOptions>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.Collector.isReady",
|
|
"type": "Function",
|
|
"label": "isReady",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 148
|
|
},
|
|
"signature": [
|
|
"() => boolean | Promise<boolean>"
|
|
]
|
|
},
|
|
{
|
|
"id": "def-server.Collector.Unnamed",
|
|
"type": "Function",
|
|
"label": "Constructor",
|
|
"signature": [
|
|
"any"
|
|
],
|
|
"description": [],
|
|
"children": [
|
|
{
|
|
"id": "def-server.Collector.Unnamed.$1",
|
|
"type": "Object",
|
|
"label": "log",
|
|
"isRequired": true,
|
|
"signature": [
|
|
"Logger"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 155
|
|
}
|
|
},
|
|
{
|
|
"id": "def-server.Collector.Unnamed.$2",
|
|
"type": "CompoundType",
|
|
"label": "{\n type,\n init,\n fetch,\n isReady,\n extendFetchContext = {},\n ...options\n }",
|
|
"isRequired": true,
|
|
"signature": [
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.CollectorOptions",
|
|
"text": "CollectorOptions"
|
|
},
|
|
"<TFetchReturn, any, ExtraOptions>"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 156
|
|
}
|
|
}
|
|
],
|
|
"tags": [
|
|
"private"
|
|
],
|
|
"returnComment": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 154
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 143
|
|
},
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.UsageCounter",
|
|
"type": "Class",
|
|
"tags": [],
|
|
"label": "UsageCounter",
|
|
"description": [],
|
|
"children": [
|
|
{
|
|
"id": "def-server.UsageCounter.Unnamed",
|
|
"type": "Function",
|
|
"label": "Constructor",
|
|
"signature": [
|
|
"any"
|
|
],
|
|
"description": [],
|
|
"children": [
|
|
{
|
|
"id": "def-server.UsageCounter.Unnamed.$1",
|
|
"type": "Object",
|
|
"label": "{ domainId, counter$ }",
|
|
"isRequired": true,
|
|
"signature": [
|
|
"UsageCounterDeps"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 33
|
|
}
|
|
}
|
|
],
|
|
"tags": [],
|
|
"returnComment": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 33
|
|
}
|
|
},
|
|
{
|
|
"id": "def-server.UsageCounter.incrementCounter",
|
|
"type": "Function",
|
|
"children": [
|
|
{
|
|
"id": "def-server.UsageCounter.incrementCounter.$1",
|
|
"type": "Object",
|
|
"label": "params",
|
|
"isRequired": true,
|
|
"signature": [
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.IncrementCounterParams",
|
|
"text": "IncrementCounterParams"
|
|
}
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 38
|
|
}
|
|
}
|
|
],
|
|
"signature": [
|
|
"(params: ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.IncrementCounterParams",
|
|
"text": "IncrementCounterParams"
|
|
},
|
|
") => void"
|
|
],
|
|
"description": [],
|
|
"label": "incrementCounter",
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 38
|
|
},
|
|
"tags": [],
|
|
"returnComment": []
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 29
|
|
},
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"functions": [
|
|
{
|
|
"id": "def-server.serializeCounterKey",
|
|
"type": "Function",
|
|
"children": [
|
|
{
|
|
"id": "def-server.serializeCounterKey.$1",
|
|
"type": "Object",
|
|
"label": "{\n domainId,\n counterName,\n counterType,\n date,\n}",
|
|
"isRequired": true,
|
|
"signature": [
|
|
"SerializeCounterParams"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 52
|
|
}
|
|
}
|
|
],
|
|
"signature": [
|
|
"({ domainId, counterName, counterType, date, }: ",
|
|
"SerializeCounterParams",
|
|
") => string"
|
|
],
|
|
"description": [],
|
|
"label": "serializeCounterKey",
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 52
|
|
},
|
|
"tags": [],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"interfaces": [
|
|
{
|
|
"id": "def-server.IncrementCounterParams",
|
|
"type": "Interface",
|
|
"label": "IncrementCounterParams",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.IncrementCounterParams.counterName",
|
|
"type": "string",
|
|
"label": "counterName",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 24
|
|
}
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.IncrementCounterParams.counterType",
|
|
"type": "string",
|
|
"label": "counterType",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 25
|
|
},
|
|
"signature": [
|
|
"string | undefined"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.IncrementCounterParams.incrementBy",
|
|
"type": "number",
|
|
"label": "incrementBy",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 26
|
|
},
|
|
"signature": [
|
|
"number | undefined"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/usage_counter.ts",
|
|
"lineNumber": 23
|
|
},
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.SchemaField",
|
|
"type": "Interface",
|
|
"label": "SchemaField",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.SchemaField.type",
|
|
"type": "string",
|
|
"label": "type",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 33
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 32
|
|
},
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.UsageCountersSavedObjectAttributes",
|
|
"type": "Interface",
|
|
"label": "UsageCountersSavedObjectAttributes",
|
|
"signature": [
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.UsageCountersSavedObjectAttributes",
|
|
"text": "UsageCountersSavedObjectAttributes"
|
|
},
|
|
" extends ",
|
|
"SavedObjectAttributes"
|
|
],
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCountersSavedObjectAttributes.domainId",
|
|
"type": "string",
|
|
"label": "domainId",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 19
|
|
}
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCountersSavedObjectAttributes.counterName",
|
|
"type": "string",
|
|
"label": "counterName",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 20
|
|
}
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCountersSavedObjectAttributes.counterType",
|
|
"type": "string",
|
|
"label": "counterType",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 21
|
|
}
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCountersSavedObjectAttributes.count",
|
|
"type": "number",
|
|
"label": "count",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 22
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 18
|
|
},
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"enums": [],
|
|
"misc": [
|
|
{
|
|
"id": "def-server.AllowedSchemaTypes",
|
|
"type": "Type",
|
|
"label": "AllowedSchemaTypes",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 27
|
|
},
|
|
"signature": [
|
|
"\"boolean\" | \"date\" | \"text\" | \"keyword\" | \"long\" | \"double\" | \"short\" | \"integer\" | \"byte\" | \"float\""
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.CollectorFetchContext",
|
|
"type": "Type",
|
|
"label": "CollectorFetchContext",
|
|
"tags": [],
|
|
"description": [
|
|
"\nThe context for the `fetch` method: It includes the most commonly used clients in the collectors (ES and SO clients).\nBoth are scoped based on the request and the context:\n- When users are requesting a sample of data, it is scoped to their role to avoid exposing data they shouldn't read\n- When building the telemetry data payload to report to the remote cluster, the requests are scoped to the `kibana` internal user\n"
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 64
|
|
},
|
|
"signature": [
|
|
"{ esClient: ElasticsearchClient; soClient: SavedObjectsClientContract; } & (WithKibanaRequest extends true ? { kibanaRequest?: KibanaRequest<unknown, unknown, unknown, any> | undefined; } : {})"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.CollectorOptions",
|
|
"type": "Type",
|
|
"label": "CollectorOptions",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 111
|
|
},
|
|
"signature": [
|
|
"{ type: string; init?: Function | undefined; isReady: () => Promise<boolean> | boolean; schema?: MakeSchemaFrom<TFetchReturn> | undefined; fetch: CollectorFetchMethod<WithKibanaRequest, TFetchReturn, ExtraOptions>; } & ExtraOptions & (WithKibanaRequest extends true ? { extendFetchContext: CollectorOptionsFetchExtendedContext<WithKibanaRequest>; } : { extendFetchContext?: CollectorOptionsFetchExtendedContext<WithKibanaRequest> | undefined; })"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.MakeSchemaFrom",
|
|
"type": "Type",
|
|
"label": "MakeSchemaFrom",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/collector.ts",
|
|
"lineNumber": 50
|
|
},
|
|
"signature": [
|
|
"{ [Key in keyof Required<Base>]: Required<Base>[Key] extends (infer U)[] ? { type: 'array'; items: RecursiveMakeSchemaFrom<U>; } : RecursiveMakeSchemaFrom<Required<Base>[Key]>; }"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.USAGE_COUNTERS_SAVED_OBJECT_TYPE",
|
|
"type": "string",
|
|
"label": "USAGE_COUNTERS_SAVED_OBJECT_TYPE",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 27
|
|
},
|
|
"signature": [
|
|
"\"usage-counters\""
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.UsageCollectorOptions",
|
|
"type": "Type",
|
|
"label": "UsageCollectorOptions",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/collector/usage_collector.ts",
|
|
"lineNumber": 13
|
|
},
|
|
"signature": [
|
|
"{ type: string; init?: Function | undefined; isReady: () => boolean | Promise<boolean>; schema?: ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.MakeSchemaFrom",
|
|
"text": "MakeSchemaFrom"
|
|
},
|
|
"<TFetchReturn> | undefined; fetch: ",
|
|
"CollectorFetchMethod",
|
|
"<WithKibanaRequest, TFetchReturn, ExtraOptions>; } & ExtraOptions & (WithKibanaRequest extends true ? { extendFetchContext: ",
|
|
"CollectorOptionsFetchExtendedContext",
|
|
"<WithKibanaRequest>; } : { extendFetchContext?: ",
|
|
"CollectorOptionsFetchExtendedContext",
|
|
"<WithKibanaRequest> | undefined; }) & Required<Pick<CollectorOptions<TFetchReturn, boolean, {}>, \"schema\">>"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.UsageCountersSavedObject",
|
|
"type": "Type",
|
|
"label": "UsageCountersSavedObject",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/usage_counters/saved_objects.ts",
|
|
"lineNumber": 25
|
|
},
|
|
"signature": [
|
|
"SavedObject<UsageCountersSavedObjectAttributes>"
|
|
],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"objects": [],
|
|
"setup": {
|
|
"id": "def-server.UsageCollectionSetup",
|
|
"type": "Interface",
|
|
"label": "UsageCollectionSetup",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.createUsageCounter",
|
|
"type": "Function",
|
|
"label": "createUsageCounter",
|
|
"description": [
|
|
"\nCreates and registers a usage counter to collect daily aggregated plugin counter events"
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 28
|
|
},
|
|
"signature": [
|
|
"(type: string) => ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.UsageCounter",
|
|
"text": "UsageCounter"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.getUsageCounterByType",
|
|
"type": "Function",
|
|
"label": "getUsageCounterByType",
|
|
"description": [
|
|
"\nReturns a usage counter by type"
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 32
|
|
},
|
|
"signature": [
|
|
"(type: string) => ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.UsageCounter",
|
|
"text": "UsageCounter"
|
|
},
|
|
" | undefined"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.makeUsageCollector",
|
|
"type": "Function",
|
|
"label": "makeUsageCollector",
|
|
"description": [
|
|
"\nCreates a usage collector to collect plugin telemetry data.\nregisterCollector must be called to connect the created collecter with the service."
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 37
|
|
},
|
|
"signature": [
|
|
"<TFetchReturn, WithKibanaRequest, ExtraOptions>(options: ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.UsageCollectorOptions",
|
|
"text": "UsageCollectorOptions"
|
|
},
|
|
"<TFetchReturn, WithKibanaRequest, ExtraOptions>) => ",
|
|
"UsageCollector",
|
|
"<TFetchReturn, ExtraOptions>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.registerCollector",
|
|
"type": "Function",
|
|
"label": "registerCollector",
|
|
"description": [
|
|
"\nRegister a usage collector or a stats collector.\nUsed to connect the created collector to telemetry."
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 42
|
|
},
|
|
"signature": [
|
|
"<TFetchReturn, ExtraOptions>(collector: ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.Collector",
|
|
"text": "Collector"
|
|
},
|
|
"<TFetchReturn, ExtraOptions>) => void"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.getCollectorByType",
|
|
"type": "Function",
|
|
"label": "getCollectorByType",
|
|
"description": [
|
|
"\nReturns a usage collector by type"
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 46
|
|
},
|
|
"signature": [
|
|
"(type: string) => AnyCollector | undefined"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.areAllCollectorsReady",
|
|
"type": "Function",
|
|
"label": "areAllCollectorsReady",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 48
|
|
},
|
|
"signature": [
|
|
"(collectorSet?: ",
|
|
"CollectorSet",
|
|
") => Promise<boolean>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.bulkFetch",
|
|
"type": "Function",
|
|
"label": "bulkFetch",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 50
|
|
},
|
|
"signature": [
|
|
"(esClient: ",
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCorePluginApi",
|
|
"section": "def-server.ElasticsearchClient",
|
|
"text": "ElasticsearchClient"
|
|
},
|
|
", soClient: Pick<",
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCoreSavedObjectsPluginApi",
|
|
"section": "def-server.SavedObjectsRepository",
|
|
"text": "SavedObjectsRepository"
|
|
},
|
|
", \"get\" | \"delete\" | \"create\" | \"bulkCreate\" | \"checkConflicts\" | \"deleteByNamespace\" | \"find\" | \"bulkGet\" | \"resolve\" | \"update\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"bulkUpdate\" | \"removeReferencesTo\" | \"incrementCounter\" | \"openPointInTimeForType\" | \"closePointInTime\" | \"createPointInTimeFinder\"> | Pick<",
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCoreSavedObjectsPluginApi",
|
|
"section": "def-server.SavedObjectsClient",
|
|
"text": "SavedObjectsClient"
|
|
},
|
|
", \"get\" | \"delete\" | \"create\" | \"bulkCreate\" | \"checkConflicts\" | \"find\" | \"bulkGet\" | \"resolve\" | \"update\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"bulkUpdate\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\" | \"createPointInTimeFinder\" | \"errors\">, kibanaRequest: ",
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCoreHttpPluginApi",
|
|
"section": "def-server.KibanaRequest",
|
|
"text": "KibanaRequest"
|
|
},
|
|
"<unknown, unknown, unknown, any> | undefined, collectors?: Map<string, AnyCollector>) => Promise<{ type: string; result: unknown; }[]>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.toObject",
|
|
"type": "Function",
|
|
"label": "toObject",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 52
|
|
},
|
|
"signature": [
|
|
"<Result, T>(statsData?: { type: string; result: T; }[]) => Result"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.toApiFieldNames",
|
|
"type": "Function",
|
|
"label": "toApiFieldNames",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 54
|
|
},
|
|
"signature": [
|
|
"(apiData: unknown[] | Record<string, unknown>) => unknown[] | Record<string, unknown>"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.UsageCollectionSetup.makeStatsCollector",
|
|
"type": "Function",
|
|
"label": "makeStatsCollector",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 56
|
|
},
|
|
"signature": [
|
|
"<TFetchReturn, WithKibanaRequest, ExtraOptions>(options: ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.CollectorOptions",
|
|
"text": "CollectorOptions"
|
|
},
|
|
"<TFetchReturn, WithKibanaRequest, ExtraOptions>) => ",
|
|
{
|
|
"pluginId": "usageCollection",
|
|
"scope": "server",
|
|
"docId": "kibUsageCollectionPluginApi",
|
|
"section": "def-server.Collector",
|
|
"text": "Collector"
|
|
},
|
|
"<TFetchReturn, ExtraOptions>"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/usage_collection/server/plugin.ts",
|
|
"lineNumber": 24
|
|
},
|
|
"lifecycle": "setup",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"common": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": []
|
|
}
|
|
} |