[Moving] Move Synthetics folder into /x-pack/observability_solution (#177464)

This commit is contained in:
Coen Warmer 2024-02-22 18:28:18 +01:00 committed by GitHub
parent 7658bafed2
commit 3ef768aa45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1038 changed files with 956 additions and 2670 deletions

View file

@ -58,9 +58,9 @@ disabled:
- x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts
# Elastic Synthetics configs
- x-pack/plugins/synthetics/e2e/config.ts
- x-pack/plugins/observability_solution/synthetics/e2e/config.ts
- x-pack/plugins/uptime/e2e/uptime/synthetics_run.ts
- x-pack/plugins/synthetics/e2e/synthetics/synthetics_run.ts
- x-pack/plugins/observability_solution/synthetics/e2e/synthetics/synthetics_run.ts
- x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts
- x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts

View file

@ -54,7 +54,7 @@ steps:
depends_on: build
timeout_in_minutes: 120
artifact_paths:
- 'x-pack/plugins/synthetics/e2e/.journeys/**/*'
- 'x-pack/plugins/observability_solution/synthetics/e2e/.journeys/**/*'
retry:
automatic:
- exit_status: '-1'

View file

@ -8,7 +8,7 @@ steps:
- quick_checks
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/synthetics/e2e/.journeys/**/*'
- 'x-pack/plugins/observability_solution/synthetics/e2e/.journeys/**/*'
retry:
automatic:
- exit_status: '-1'

View file

@ -8,7 +8,7 @@ steps:
- quick_checks
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/synthetics/e2e/.journeys/**/*'
- 'x-pack/plugins/observability_solution/synthetics/e2e/.journeys/**/*'
retry:
automatic:
- exit_status: '-1'

View file

@ -13,4 +13,4 @@ echo "--- Synthetics plugin @elastic/synthetics Tests"
cd "$XPACK_DIR"
node plugins/synthetics/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
node plugins/observability_solution/synthetics/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}

View file

@ -920,7 +920,7 @@ module.exports = {
'x-pack/plugins/observability_solution/observability_onboarding/**/*.tsx',
'x-pack/plugins/observability_solution/observability_shared/**/*.tsx',
'x-pack/plugins/observability_solution/profiling/**/*.tsx',
'x-pack/plugins/synthetics/**/*.tsx',
'x-pack/plugins/observability_solution/synthetics/**/*.tsx',
'x-pack/plugins/observability_solution/ux/**/*.tsx',
'src/plugins/ai_assistant_management/**/*.tsx',
],
@ -939,7 +939,7 @@ module.exports = {
'x-pack/plugins/observability_solution/observability_onboarding/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/observability_solution/observability_shared/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/observability_solution/profiling/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/synthetics/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/observability_solution/synthetics/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/observability_solution/ux/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'src/plugins/ai_assistant_management/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
],
@ -973,7 +973,9 @@ module.exports = {
},
{
// disable imports from legacy uptime plugin
files: ['x-pack/plugins/synthetics/public/apps/synthetics/**/*.{js,mjs,ts,tsx}'],
files: [
'x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/**/*.{js,mjs,ts,tsx}',
],
rules: {
'no-restricted-imports': [
'error',

2
.github/CODEOWNERS vendored
View file

@ -790,7 +790,7 @@ test/server_integration/plugins/status_plugin_b @elastic/kibana-core
packages/kbn-std @elastic/kibana-core
packages/kbn-stdio-dev-helpers @elastic/kibana-operations
packages/kbn-storybook @elastic/kibana-operations
x-pack/plugins/synthetics @elastic/obs-ux-infra_services-team
x-pack/plugins/observability_solution/synthetics @elastic/obs-ux-infra_services-team
x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture @elastic/response-ops
x-pack/test/plugin_api_perf/plugins/task_manager_performance @elastic/response-ops
x-pack/plugins/task_manager @elastic/response-ops

View file

@ -14,9 +14,9 @@
- 'packages/kbn-apm-synthtrace/**/*.*'
- 'packages/kbn-apm-synthtrace-client/**/*.*'
- 'packages/kbn-apm-utils/**/*.*'
- 'x-pack/plugins/synthetics/**/*.*'
- 'x-pack/plugins/observability_solution/synthetics/**/*.*'
- 'x-pack/plugins/observability_solution/ux/**/*.*'
- 'x-pack/plugins/observability/public/components/shared/exploratory_view/**/*.*'
- 'x-pack/plugins/observability_solution/exploratory_view/**/*.*'
- 'Team:Fleet':
- 'x-pack/plugins/fleet/**/*.*'
- 'x-pack/test/fleet_api_integration/**/*.*'

File diff suppressed because it is too large Load diff

View file

@ -1515,11 +1515,11 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/
| Deprecated API | Reference location(s) | Remove By |
| ---------------|-----------|-----------|
| <DocLink id="kibAlertingPluginApi" section="def-server.RuleExecutorServices.alertFactory" text="alertFactory"/> | [common.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/server/alert_rules/common.ts#:~:text=alertFactory), [message_utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/server/alert_rules/tls_rule/message_utils.ts#:~:text=alertFactory), [tls_rule.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/server/alert_rules/tls_rule/tls_rule.ts#:~:text=alertFactory), [monitor_status_rule.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/server/alert_rules/status_rule/monitor_status_rule.ts#:~:text=alertFactory) | - |
| <DocLink id="kibDiscoverPluginApi" section="def-common.DiscoverAppLocatorParams.indexPatternId" text="indexPatternId"/> | [stderr_logs.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx#:~:text=indexPatternId) | - |
| <DocLink id="kibKibanaReactPluginApi" section="def-public.toMountPoint" text="toMountPoint"/> | [toast_title.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx#:~:text=toMountPoint), [toast_title.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx#:~:text=toMountPoint), [browser_test_results.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx#:~:text=toMountPoint), [browser_test_results.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint)+ 6 more | - |
| <DocLink id="kibKibanaReactPluginApi" section="def-public.KibanaThemeProvider" text="KibanaThemeProvider"/> | [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider), [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider), [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider) | - |
| <DocLink id="kibKbnCoreSavedObjectsServerPluginApi" section="def-common.SavedObjectsType.migrations" text="migrations"/> | [synthetics_monitor.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/synthetics/server/saved_objects/synthetics_monitor.ts#:~:text=migrations) | - |
| <DocLink id="kibAlertingPluginApi" section="def-server.RuleExecutorServices.alertFactory" text="alertFactory"/> | [common.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/server/alert_rules/common.ts#:~:text=alertFactory), [message_utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/server/alert_rules/tls_rule/message_utils.ts#:~:text=alertFactory), [tls_rule.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/server/alert_rules/tls_rule/tls_rule.ts#:~:text=alertFactory), [monitor_status_rule.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/server/alert_rules/status_rule/monitor_status_rule.ts#:~:text=alertFactory) | - |
| <DocLink id="kibDiscoverPluginApi" section="def-common.DiscoverAppLocatorParams.indexPatternId" text="indexPatternId"/> | [stderr_logs.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx#:~:text=indexPatternId) | - |
| <DocLink id="kibKibanaReactPluginApi" section="def-public.toMountPoint" text="toMountPoint"/> | [toast_title.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx#:~:text=toMountPoint), [toast_title.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx#:~:text=toMountPoint), [browser_test_results.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx#:~:text=toMountPoint), [browser_test_results.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_monitor.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint), [delete_param.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx#:~:text=toMountPoint)+ 6 more | - |
| <DocLink id="kibKibanaReactPluginApi" section="def-public.KibanaThemeProvider" text="KibanaThemeProvider"/> | [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider), [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider), [synthetics_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx#:~:text=KibanaThemeProvider) | - |
| <DocLink id="kibKbnCoreSavedObjectsServerPluginApi" section="def-common.SavedObjectsType.migrations" text="migrations"/> | [synthetics_monitor.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/synthetics/server/saved_objects/synthetics_monitor.ts#:~:text=migrations) | - |

View file

@ -2589,7 +2589,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/common/components/stderr_logs.tsx"
}
]
},

View file

@ -4299,7 +4299,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "upgradeAssistant",
@ -6699,7 +6699,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "upgradeAssistant",
@ -8111,7 +8111,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "upgradeAssistant",
@ -9023,7 +9023,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "upgradeAssistant",
@ -13481,7 +13481,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "transform",
@ -13878,7 +13878,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "transform",
@ -14767,7 +14767,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "transform",
@ -15217,7 +15217,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/server.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/server.ts"
},
{
"plugin": "@kbn/core-http-router-server-internal",

File diff suppressed because it is too large Load diff

View file

@ -1619,15 +1619,15 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/synthetics_app.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/synthetics_app.tsx"
},
{
"plugin": "transform",
@ -3078,67 +3078,67 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/state/monitor_list/toast_title.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/browser_test_results.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/monitor_list_table/delete_monitor.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/settings/global_params/delete_param.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/hooks/use_monitor_save.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_add_edit/hooks/use_monitor_save.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/hooks/use_monitor_save.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_add_edit/hooks/use_monitor_save.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/show_sync_errors.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/show_sync_errors.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/management/show_sync_errors.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitors_page/management/show_sync_errors.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/simple_test_results.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/simple_test_results.tsx"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/simple_test_results.tsx"
"path": "x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/test_now_mode/manual_test_run_mode/simple_test_results.tsx"
},
{
"plugin": "uptime",

View file

@ -10,9 +10,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryConstants",
"description": [
"\nPublic's start exposed APIs by the telemetry plugin"
],
"description": ["\nPublic's start exposed APIs by the telemetry plugin"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -23,12 +21,8 @@
"type": "Function",
"tags": [],
"label": "getPrivacyStatementUrl",
"description": [
"Elastic's privacy statement url"
],
"signature": [
"() => string"
],
"description": ["Elastic's privacy statement url"],
"signature": ["() => string"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -44,9 +38,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryPluginConfig",
"description": [
"\nPublic-exposed configuration"
],
"description": ["\nPublic-exposed configuration"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -57,9 +49,7 @@
"type": "boolean",
"tags": [],
"label": "banner",
"description": [
"The banner is expected to be shown when needed"
],
"description": ["The banner is expected to be shown when needed"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -70,9 +60,7 @@
"type": "boolean",
"tags": [],
"label": "allowChangingOptInStatus",
"description": [
"Does the cluster allow changing the opt-in/out status via the UI?"
],
"description": ["Does the cluster allow changing the opt-in/out status via the UI?"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -83,12 +71,8 @@
"type": "CompoundType",
"tags": [],
"label": "optIn",
"description": [
"Is the cluster opted-in?"
],
"signature": [
"boolean | null"
],
"description": ["Is the cluster opted-in?"],
"signature": ["boolean | null"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -102,9 +86,7 @@
"description": [
"Specify if telemetry should send usage to the prod or staging remote telemetry service"
],
"signature": [
"\"prod\" | \"staging\""
],
"signature": ["\"prod\" | \"staging\""],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -118,9 +100,7 @@
"description": [
"Should the telemetry payloads be sent from the server or the browser?"
],
"signature": [
"\"browser\" | \"server\""
],
"signature": ["\"browser\" | \"server\""],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -131,12 +111,8 @@
"type": "CompoundType",
"tags": [],
"label": "telemetryNotifyUserAboutOptInDefault",
"description": [
"Should notify the user about the opt-in status?"
],
"signature": [
"boolean | undefined"
],
"description": ["Should notify the user about the opt-in status?"],
"signature": ["boolean | undefined"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -147,12 +123,8 @@
"type": "CompoundType",
"tags": [],
"label": "userCanChangeSettings",
"description": [
"Does the user have enough privileges to change the settings?"
],
"signature": [
"boolean | undefined"
],
"description": ["Does the user have enough privileges to change the settings?"],
"signature": ["boolean | undefined"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -166,9 +138,7 @@
"description": [
"Should we hide the privacy statement notice? Useful on some environments, e.g. Cloud"
],
"signature": [
"boolean | undefined"
],
"signature": ["boolean | undefined"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -179,12 +149,8 @@
"type": "Object",
"tags": [],
"label": "labels",
"description": [
"Extra labels to add to the telemetry context"
],
"signature": [
"{ [x: string]: unknown; }"
],
"description": ["Extra labels to add to the telemetry context"],
"signature": ["{ [x: string]: unknown; }"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -211,9 +177,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryServicePublicApis",
"description": [
"\nPublicly exposed APIs from the Telemetry Service"
],
"description": ["\nPublicly exposed APIs from the Telemetry Service"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -224,12 +188,8 @@
"type": "Function",
"tags": [],
"label": "getIsOptedIn",
"description": [
"Is the cluster opted-in to telemetry?"
],
"signature": [
"() => boolean | null"
],
"description": ["Is the cluster opted-in to telemetry?"],
"signature": ["() => boolean | null"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -242,9 +202,7 @@
"type": "boolean",
"tags": [],
"label": "userCanChangeSettings",
"description": [
"Is the user allowed to change the opt-in/out status?"
],
"description": ["Is the user allowed to change the opt-in/out status?"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -258,9 +216,7 @@
"description": [
"Can phone-home telemetry calls be made? This depends on whether we have opted-in or if we are rendering a report"
],
"signature": [
"() => boolean"
],
"signature": ["() => boolean"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -273,12 +229,8 @@
"type": "Function",
"tags": [],
"label": "getCanChangeOptInStatus",
"description": [
"Is the cluster allowed to change the opt-in/out status?"
],
"signature": [
"() => boolean"
],
"description": ["Is the cluster allowed to change the opt-in/out status?"],
"signature": ["() => boolean"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -294,9 +246,7 @@
"description": [
"Fetches an unencrypted telemetry payload so we can show it to the user"
],
"signature": [
"() => Promise<unknown[]>"
],
"signature": ["() => Promise<unknown[]>"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -312,9 +262,7 @@
"description": [
"\nOverwrite the opt-in status.\nIt will send a final request to the remote telemetry cluster to report about the opt-in/out change."
],
"signature": [
"(optedIn: boolean) => Promise<boolean>"
],
"signature": ["(optedIn: boolean) => Promise<boolean>"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -325,12 +273,8 @@
"type": "boolean",
"tags": [],
"label": "optedIn",
"description": [
"Whether the user is opting-in (`true`) or out (`false`)."
],
"signature": [
"boolean"
],
"description": ["Whether the user is opting-in (`true`) or out (`false`)."],
"signature": ["boolean"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -363,9 +307,7 @@
"type": "Object",
"tags": [],
"label": "telemetryService",
"description": [
"{@link TelemetryServicePublicApis}"
],
"description": ["{@link TelemetryServicePublicApis}"],
"signature": [
{
"pluginId": "telemetry",
@ -385,12 +327,8 @@
"type": "Object",
"tags": [],
"label": "telemetryNotifications",
"description": [
"Notification helpers"
],
"signature": [
"{ setOptedInNoticeSeen: () => Promise<void>; }"
],
"description": ["Notification helpers"],
"signature": ["{ setOptedInNoticeSeen: () => Promise<void>; }"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false
@ -401,9 +339,7 @@
"type": "Object",
"tags": [],
"label": "telemetryConstants",
"description": [
"Set of publicly exposed telemetry constants"
],
"description": ["Set of publicly exposed telemetry constants"],
"signature": [
{
"pluginId": "telemetry",
@ -427,9 +363,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryPluginSetup",
"description": [
"\nPublic's setup exposed APIs by the telemetry plugin"
],
"description": ["\nPublic's setup exposed APIs by the telemetry plugin"],
"path": "src/plugins/telemetry/public/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -440,9 +374,7 @@
"type": "Object",
"tags": [],
"label": "telemetryService",
"description": [
"{@link TelemetryService}"
],
"description": ["{@link TelemetryService}"],
"signature": [
{
"pluginId": "telemetry",
@ -471,9 +403,7 @@
"type": "Interface",
"tags": [],
"label": "DataTelemetryBasePayload",
"description": [
"\nCommon counters for the {@link DataTelemetryDocument}s"
],
"description": ["\nCommon counters for the {@link DataTelemetryDocument}s"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false,
@ -484,9 +414,7 @@
"type": "number",
"tags": [],
"label": "index_count",
"description": [
"How many indices match the declared pattern"
],
"description": ["How many indices match the declared pattern"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -497,12 +425,8 @@
"type": "number",
"tags": [],
"label": "ecs_index_count",
"description": [
"How many indices match the declared pattern follow ECS conventions"
],
"signature": [
"number | undefined"
],
"description": ["How many indices match the declared pattern follow ECS conventions"],
"signature": ["number | undefined"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -513,12 +437,8 @@
"type": "number",
"tags": [],
"label": "doc_count",
"description": [
"How many documents are among all the identified indices"
],
"signature": [
"number | undefined"
],
"description": ["How many documents are among all the identified indices"],
"signature": ["number | undefined"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -529,12 +449,8 @@
"type": "number",
"tags": [],
"label": "size_in_bytes",
"description": [
"Total size in bytes among all the identified indices"
],
"signature": [
"number | undefined"
],
"description": ["Total size in bytes among all the identified indices"],
"signature": ["number | undefined"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -578,9 +494,7 @@
"type": "Object",
"tags": [],
"label": "data_stream",
"description": [
"For data-stream indices. Reporting their details"
],
"description": ["For data-stream indices. Reporting their details"],
"signature": [
"{ dataset?: string | undefined; type?: string | undefined; } | undefined"
],
@ -594,12 +508,8 @@
"type": "Object",
"tags": [],
"label": "package",
"description": [
"When available, reporting the package details"
],
"signature": [
"{ name: string; } | undefined"
],
"description": ["When available, reporting the package details"],
"signature": ["{ name: string; } | undefined"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -613,9 +523,7 @@
"description": [
"What's the process indexing the data? (i.e.: \"beats\", \"logstash\")"
],
"signature": [
"string | undefined"
],
"signature": ["string | undefined"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts",
"deprecated": false,
"trackAdoption": false
@ -669,9 +577,7 @@
"type": "string",
"tags": [],
"label": "node_id",
"description": [
"\nThe Node ID as reported by ES"
],
"description": ["\nThe Node ID as reported by ES"],
"path": "src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts",
"deprecated": false,
"trackAdoption": false
@ -741,9 +647,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryPluginSetup",
"description": [
"\nServer's setup exposed APIs by the telemetry plugin"
],
"description": ["\nServer's setup exposed APIs by the telemetry plugin"],
"path": "src/plugins/telemetry/server/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -757,11 +661,7 @@
"description": [
"\nResolves into the telemetry Url used to send telemetry.\nThe url is wrapped with node's [URL constructor](https://nodejs.org/api/url.html)."
],
"signature": [
"() => Promise<",
"URL",
">"
],
"signature": ["() => Promise<", "URL", ">"],
"path": "src/plugins/telemetry/server/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -778,9 +678,7 @@
"type": "Interface",
"tags": [],
"label": "TelemetryPluginStart",
"description": [
"\nServer's start exposed APIs by the telemetry plugin"
],
"description": ["\nServer's start exposed APIs by the telemetry plugin"],
"path": "src/plugins/telemetry/server/plugin.ts",
"deprecated": false,
"trackAdoption": false,
@ -789,16 +687,12 @@
"parentPluginId": "telemetry",
"id": "def-server.TelemetryPluginStart.getIsOptedIn",
"type": "Function",
"tags": [
"track-adoption"
],
"tags": ["track-adoption"],
"label": "getIsOptedIn",
"description": [
"\nResolves `true` if sending usage to Elastic is enabled.\nResolves `false` if the user explicitly opted out of sending usage data to Elastic\nor did not choose to opt-in or out -yet- after a minor or major upgrade (only when previously opted-out).\n"
],
"signature": [
"() => Promise<boolean>"
],
"signature": ["() => Promise<boolean>"],
"path": "src/plugins/telemetry/server/plugin.ts",
"deprecated": false,
"trackAdoption": true,
@ -817,7 +711,7 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/telemetry/sender.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/telemetry/sender.ts"
},
{
"plugin": "fleet",
@ -829,11 +723,11 @@
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/telemetry/sender.test.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/telemetry/sender.test.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/telemetry/sender.test.ts"
"path": "x-pack/plugins/observability_solution/synthetics/server/telemetry/sender.test.ts"
},
{
"plugin": "securitySolution",
@ -856,4 +750,4 @@
"misc": [],
"objects": []
}
}
}

View file

@ -809,7 +809,7 @@ routes, etc.
|The stack_connectors plugin provides connector types shipped with Kibana, built on top of the framework provided in the actions plugin.
|{kib-repo}blob/{branch}/x-pack/plugins/synthetics/README.md[synthetics]
|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/synthetics/README.md[synthetics]
|The purpose of this plugin is to provide users of Heartbeat more visibility of what's happening
in their infrastructure.

View file

@ -787,7 +787,7 @@
"@kbn/status-plugin-a-plugin": "link:test/server_integration/plugins/status_plugin_a",
"@kbn/status-plugin-b-plugin": "link:test/server_integration/plugins/status_plugin_b",
"@kbn/std": "link:packages/kbn-std",
"@kbn/synthetics-plugin": "link:x-pack/plugins/synthetics",
"@kbn/synthetics-plugin": "link:x-pack/plugins/observability_solution/synthetics",
"@kbn/task-manager-fixture-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture",
"@kbn/task-manager-performance-plugin": "link:x-pack/test/plugin_api_perf/plugins/task_manager_performance",
"@kbn/task-manager-plugin": "link:x-pack/plugins/task_manager",

View file

@ -14,7 +14,7 @@ module.exports = {
USES_STYLED_COMPONENTS: [
/packages[\/\\]kbn-ui-shared-deps-(npm|src)[\/\\]/,
/src[\/\\]plugins[\/\\](kibana_react)[\/\\]/,
/x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|observability_solution\/observability_shared|observability_solution\/exploratory_view|security_solution|timelines|synthetics|observability_solution\/ux|uptime)[\/\\]/,
/x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|observability_solution\/observability_shared|observability_solution\/exploratory_view|security_solution|timelines|observability_solution\/synthetics|observability_solution\/ux|uptime)[\/\\]/,
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
/x-pack[\/\\]packages[\/\\]security-solution[\/\\]ecs_data_quality_dashboard[\/\\]/,

View file

@ -15,7 +15,7 @@ const testMap = [
['x-pack/plugins/apm/common/components/app/correlations/correlations_table.tsx', 'xpack.apm'],
['x-pack/plugins/cases/server/components/foo.tsx', 'xpack.cases'],
[
'x-pack/plugins/synthetics/public/apps/synthetics/components/alerts/toggle_alert_flyout_button.tsx',
'x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/alerts/toggle_alert_flyout_button.tsx',
'xpack.synthetics',
],
['src/plugins/vis_types/gauge/public/editor/collections.ts', 'visTypeGauge'],

View file

@ -1574,8 +1574,8 @@
"@kbn/stdio-dev-helpers/*": ["packages/kbn-stdio-dev-helpers/*"],
"@kbn/storybook": ["packages/kbn-storybook"],
"@kbn/storybook/*": ["packages/kbn-storybook/*"],
"@kbn/synthetics-plugin": ["x-pack/plugins/synthetics"],
"@kbn/synthetics-plugin/*": ["x-pack/plugins/synthetics/*"],
"@kbn/synthetics-plugin": ["x-pack/plugins/observability_solution/synthetics"],
"@kbn/synthetics-plugin/*": ["x-pack/plugins/observability_solution/synthetics/*"],
"@kbn/task-manager-fixture-plugin": ["x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture"],
"@kbn/task-manager-fixture-plugin/*": ["x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture/*"],
"@kbn/task-manager-performance-plugin": ["x-pack/test/plugin_api_perf/plugins/task_manager_performance"],

View file

@ -98,7 +98,7 @@
"xpack.transform": "plugins/transform",
"xpack.triggersActionsUI": "plugins/triggers_actions_ui",
"xpack.upgradeAssistant": "plugins/upgrade_assistant",
"xpack.synthetics": ["plugins/synthetics"],
"xpack.synthetics": ["plugins/observability_solution/synthetics"],
"xpack.ux": ["plugins/observability_solution/ux"],
"xpack.uptime": ["plugins/uptime"],
"xpack.urlDrilldown": "plugins/drilldowns/url_drilldown",

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
UUID="$(cat /proc/sys/kernel/random/uuid)"
export UUID
node x-pack/plugins/observability_solution/synthetics/.buildkite/pipelines/flaky.js | buildkite-agent pipeline upload

View file

@ -45,7 +45,7 @@ There's also a `rest_api` folder that defines the structure of the RESTful API e
Documentation: https://www.elastic.co/guide/en/kibana/current/development-tests.html#_unit_testing
```
yarn test:jest x-pack/plugins/synthetics
yarn test:jest x-pack/plugins/observability_solution/synthetics
```
### Functional tests

Some files were not shown because too many files have changed in this diff Show more