3abb79a179
* Move current alert HTTP APIs to legacy folder (#93943) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Create new rule HTTP APIs (#93980) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Move current alert HTTP APIs to legacy folder (#93943) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Add necessary files * Create rule route * Get rule API * Update rule API * Delete rule route * Aggregate rules API * Disable rule API * Enable rule API * Find rules API * Fix Update API * Get rule alert summary API * Get rule state API * Health API * Rule types API * Mute all API * Mute alert API * Unmute all API * Unmute alert route * Update API key API * corrected tpye by making it much more complicated * removed unneeded cocde * Fixes * Add back health route * mutedInstanceIds -> mutedAlertIds * lastRun -> last_run * alert_type_state -> rule_type_state & alert_instances -> alerts Co-authored-by: Gidi Meir Morris <github@gidi.io> * Create docs for new rule HTTP APIs, deprecate old docs (#94745) * Create docs for new APIs, deprecate old docs * Remove connector_type_id * Update docs * Add link to legacy APIs from rules API docs * Remove connector_type_id references * [DOCS] Add legacy APIs to index.asciidoc * Fix camel case Co-authored-by: lcawl <lcawley@elastic.co> * Make alerting tests use new rules APIs (#95159) * Make API integration tests use new HTTP APIs * Fix end to end tests * Fix test failures * Fix more test failures * Rename some files * Add tests for legacy APIs (#95333) * Initial commit (#95457) * Move some new alerting APIs to /internal (#95461) * Initial commit * Update README.md * Use internal API * Merge deprecated warning w/ alternative solution * Update API docs Co-authored-by: Gidi Meir Morris <github@gidi.io> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
474 lines
No EOL
14 KiB
JSON
474 lines
No EOL
14 KiB
JSON
{
|
|
"id": "telemetryCollectionManager",
|
|
"client": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": []
|
|
},
|
|
"server": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [
|
|
{
|
|
"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
|
|
},
|
|
{
|
|
"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",
|
|
"lineNumber": 57
|
|
},
|
|
"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",
|
|
"lineNumber": 58
|
|
},
|
|
"signature": [
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCorePluginApi",
|
|
"section": "def-server.ElasticsearchClient",
|
|
"text": "ElasticsearchClient"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.StatsCollectionConfig.soClient",
|
|
"type": "Object",
|
|
"label": "soClient",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 59
|
|
},
|
|
"signature": [
|
|
"Pick<",
|
|
{
|
|
"pluginId": "core",
|
|
"scope": "server",
|
|
"docId": "kibCoreSavedObjectsPluginApi",
|
|
"section": "def-server.SavedObjectsClient",
|
|
"text": "SavedObjectsClient"
|
|
},
|
|
", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\" | \"createPointInTimeFinder\">"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.StatsCollectionConfig.kibanaRequest",
|
|
"type": "Object",
|
|
"label": "kibanaRequest",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 60
|
|
},
|
|
"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",
|
|
"lineNumber": 56
|
|
},
|
|
"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",
|
|
"lineNumber": 78
|
|
},
|
|
"signature": [
|
|
"Logger",
|
|
" | Console"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.StatsCollectionContext.version",
|
|
"type": "string",
|
|
"label": "version",
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 79
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 77
|
|
},
|
|
"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",
|
|
"lineNumber": 74
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 73
|
|
},
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"enums": [],
|
|
"misc": [
|
|
{
|
|
"id": "def-server.ClusterDetailsGetter",
|
|
"type": "Type",
|
|
"label": "ClusterDetailsGetter",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 83
|
|
},
|
|
"signature": [
|
|
"(config: ",
|
|
"StatsCollectionConfig",
|
|
", context: ",
|
|
"StatsCollectionContext",
|
|
") => Promise<",
|
|
"ClusterDetails",
|
|
"[]>"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.StatsGetter",
|
|
"type": "Type",
|
|
"label": "StatsGetter",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 87
|
|
},
|
|
"signature": [
|
|
"(clustersDetails: ",
|
|
"ClusterDetails",
|
|
"[], config: ",
|
|
"StatsCollectionConfig",
|
|
", context: ",
|
|
"StatsCollectionContext",
|
|
") => Promise<T[]>"
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"id": "def-server.StatsGetterConfig",
|
|
"type": "Type",
|
|
"label": "StatsGetterConfig",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 82
|
|
},
|
|
"signature": [
|
|
"UnencryptedStatsGetterConfig",
|
|
" | ",
|
|
"EncryptedStatsGetterConfig"
|
|
],
|
|
"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",
|
|
"lineNumber": 19
|
|
},
|
|
"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",
|
|
"lineNumber": 22
|
|
},
|
|
"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",
|
|
"lineNumber": 23
|
|
},
|
|
"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",
|
|
"lineNumber": 24
|
|
},
|
|
"signature": [
|
|
"() => Promise<boolean | undefined>"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 18
|
|
},
|
|
"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",
|
|
"lineNumber": 28
|
|
},
|
|
"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",
|
|
"lineNumber": 29
|
|
},
|
|
"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",
|
|
"lineNumber": 30
|
|
},
|
|
"signature": [
|
|
"() => Promise<boolean | undefined>"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "src/plugins/telemetry_collection_manager/server/types.ts",
|
|
"lineNumber": 27
|
|
},
|
|
"lifecycle": "start",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"common": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": []
|
|
}
|
|
} |