From 7999e5789ca2347b48176013768c75d9af031209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Fri, 25 Aug 2023 18:47:40 +0200 Subject: [PATCH] [Core Telemetry] Fix schema --- .../core-usage-data-server/src/core_usage_stats.ts | 2 ++ .../server/collectors/core/core_usage_collector.ts | 14 ++++++++++++++ src/plugins/telemetry/schema/oss_plugins.json | 12 ++++++++++++ 3 files changed, 28 insertions(+) diff --git a/packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts b/packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts index 279d5c68cd733..8e77ec7a0800c 100644 --- a/packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts +++ b/packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts @@ -101,6 +101,8 @@ export interface CoreUsageStats { 'apiCalls.savedObjectsImport.namespace.custom.kibanaRequest.no'?: number; 'apiCalls.savedObjectsImport.createNewCopiesEnabled.yes'?: number; 'apiCalls.savedObjectsImport.createNewCopiesEnabled.no'?: number; + 'apiCalls.savedObjectsImport.compatibilityModeEnabled.yes'?: number; + 'apiCalls.savedObjectsImport.compatibilityModeEnabled.no'?: number; 'apiCalls.savedObjectsImport.overwriteEnabled.yes'?: number; 'apiCalls.savedObjectsImport.overwriteEnabled.no'?: number; 'apiCalls.savedObjectsResolveImportErrors.total'?: number; diff --git a/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts b/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts index 8a960fa05ebf6..8d5f0db7a669d 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts @@ -923,6 +923,20 @@ export function getCoreUsageCollector( 'How many times this API has been called without the `createNewCopiesEnabled` option.', }, }, + 'apiCalls.savedObjectsImport.compatibilityModeEnabled.yes': { + type: 'long', + _meta: { + description: + 'How many times this API has been called with the `compatibilityMode` option.', + }, + }, + 'apiCalls.savedObjectsImport.compatibilityModeEnabled.no': { + type: 'long', + _meta: { + description: + 'How many times this API has been called without the `compatibilityMode` option.', + }, + }, 'apiCalls.savedObjectsImport.overwriteEnabled.yes': { type: 'long', _meta: { diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index de4f1fae8f675..ef25a78b1c0b4 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -8241,6 +8241,18 @@ "description": "How many times this API has been called without the `createNewCopiesEnabled` option." } }, + "apiCalls.savedObjectsImport.compatibilityModeEnabled.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with the `compatibilityMode` option." + } + }, + "apiCalls.savedObjectsImport.compatibilityModeEnabled.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without the `compatibilityMode` option." + } + }, "apiCalls.savedObjectsImport.overwriteEnabled.yes": { "type": "long", "_meta": {