diff --git a/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.test.ts b/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.test.ts index 815a02b9d4b3aa..a54e777c13eee0 100644 --- a/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.test.ts +++ b/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.test.ts @@ -53,7 +53,6 @@ describe('formatMonitorConfig', () => { expect(yamlConfig).toEqual({ 'check.request.method': 'GET', enabled: true, - locations: [], max_redirects: '0', name: 'Test', password: '3z9SBOQWW5F0UrdqLVFqlF6z', @@ -110,7 +109,6 @@ describe('formatMonitorConfig', () => { enabled: true, 'filter_journeys.tags': ['dev'], ignore_https_errors: false, - locations: [], name: 'Test', schedule: '@every 3m', screenshots: 'on', diff --git a/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.ts b/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.ts index 5c7f538f18ce16..f3b9787ce628d2 100644 --- a/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.ts +++ b/x-pack/plugins/uptime/server/lib/synthetics_service/formatters/format_configs.ts @@ -15,6 +15,9 @@ const UI_KEYS_TO_SKIP = [ ConfigKey.DOWNLOAD_SPEED, ConfigKey.LATENCY, ConfigKey.IS_THROTTLING_ENABLED, + ConfigKey.LOCATIONS, + ConfigKey.REVISION, + 'secrets', ]; const uiToHeartbeatKeyMap = {