diff --git a/.buildkite/pipeline-resource-definitions/kibana-package-registry.yml b/.buildkite/pipeline-resource-definitions/kibana-package-registry.yml index 0efa8f2cfe803..bde46b4050221 100644 --- a/.buildkite/pipeline-resource-definitions/kibana-package-registry.yml +++ b/.buildkite/pipeline-resource-definitions/kibana-package-registry.yml @@ -21,6 +21,7 @@ spec: env: SLACK_NOTIFICATIONS_CHANNEL: "#kibana-operations-alerts" ELASTIC_SLACK_NOTIFICATIONS_ENABLED: "true" + REPORT_FAILED_TESTS_TO_GITHUB: 'true' repository: elastic/kibana branch_configuration: main default_branch: main diff --git a/.buildkite/pipelines/build_api_docs.yml b/.buildkite/pipelines/build_api_docs.yml index cf75ab2d82025..a7b6b7ccfcb52 100644 --- a/.buildkite/pipelines/build_api_docs.yml +++ b/.buildkite/pipelines/build_api_docs.yml @@ -18,7 +18,7 @@ steps: image: family/kibana-ubuntu-2004 imageProject: elastic-images-prod provider: gcp - machineType: n2-standard-4 + machineType: n2-highmem-4 preemptible: true key: build_api_docs timeout_in_minutes: 50 diff --git a/.buildkite/pipelines/fleet/package_registry.yml b/.buildkite/pipelines/fleet/package_registry.yml index 4843fdd3d0d75..5343f87c9872f 100644 --- a/.buildkite/pipelines/fleet/package_registry.yml +++ b/.buildkite/pipelines/fleet/package_registry.yml @@ -90,7 +90,7 @@ steps: depends_on: - ftr-configs - jest-integration - - defend-worfklows-stateful + - defend-workflows-stateful - defend-workflows-serverless - wait: ~ diff --git a/.buildkite/pipelines/on_merge.yml b/.buildkite/pipelines/on_merge.yml index b5bf31a1e1dfe..2557492eee9ea 100644 --- a/.buildkite/pipelines/on_merge.yml +++ b/.buildkite/pipelines/on_merge.yml @@ -133,7 +133,7 @@ steps: image: family/kibana-ubuntu-2004 imageProject: elastic-images-prod provider: gcp - machineType: n2-standard-4 + machineType: n2-highmem-4 preemptible: true diskSizeGb: 75 timeout_in_minutes: 80 diff --git a/.buildkite/pipelines/pull_request/base.yml b/.buildkite/pipelines/pull_request/base.yml index 9e2e781dfd03a..cb60baac91011 100644 --- a/.buildkite/pipelines/pull_request/base.yml +++ b/.buildkite/pipelines/pull_request/base.yml @@ -136,7 +136,7 @@ steps: - command: .buildkite/scripts/steps/api_docs/build_api_docs.sh label: 'Build API Docs' agents: - machineType: n2-standard-4 + machineType: n2-highmem-4 preemptible: true diskSizeGb: 75 key: build_api_docs diff --git a/.buildkite/scripts/steps/api_docs/build_api_docs.sh b/.buildkite/scripts/steps/api_docs/build_api_docs.sh index 6bf566c36e43c..51a2b29bb31dd 100755 --- a/.buildkite/scripts/steps/api_docs/build_api_docs.sh +++ b/.buildkite/scripts/steps/api_docs/build_api_docs.sh @@ -5,7 +5,7 @@ set -euo pipefail .buildkite/scripts/bootstrap.sh echo "--- Build API Docs" -node --max-old-space-size=12000 scripts/build_api_docs +node --max-old-space-size=24000 scripts/build_api_docs if [[ "${PUBLISH_API_DOCS_CHANGES:-}" == "true" ]]; then echo "--- Store API Docs changes in Buildkite" diff --git a/.buildkite/scripts/steps/checks/baseline_plugin_public_api_docs.sh b/.buildkite/scripts/steps/checks/baseline_plugin_public_api_docs.sh index 5b8bc210ca725..97f43eb2d6d2d 100755 --- a/.buildkite/scripts/steps/checks/baseline_plugin_public_api_docs.sh +++ b/.buildkite/scripts/steps/checks/baseline_plugin_public_api_docs.sh @@ -5,4 +5,4 @@ set -euo pipefail source .buildkite/scripts/common/util.sh echo --- Building api docs -node --max-old-space-size=12000 scripts/build_api_docs +node --max-old-space-size=24000 scripts/build_api_docs diff --git a/.buildkite/scripts/steps/on_merge_api_docs.sh b/.buildkite/scripts/steps/on_merge_api_docs.sh index 4ed14093a2108..10ff18dd4a2db 100755 --- a/.buildkite/scripts/steps/on_merge_api_docs.sh +++ b/.buildkite/scripts/steps/on_merge_api_docs.sh @@ -7,4 +7,4 @@ export DISABLE_BOOTSTRAP_VALIDATION=true .buildkite/scripts/bootstrap.sh echo "--- Build API Docs" -node --max-old-space-size=12000 scripts/build_api_docs +node --max-old-space-size=24000 scripts/build_api_docs diff --git a/.eslintrc.js b/.eslintrc.js index 2af845e77b0c1..8cbdce3344511 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1024,6 +1024,20 @@ module.exports = { ], }, }, + { + files: [ + 'x-pack/solutions/observability/plugins/apm/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/apm_data_access/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/infra/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/inventory/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/metrics_data_access/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/profiling/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/observability/plugins/profiling_data_access/**/*.{js,mjs,ts,tsx}', + ], + rules: { + '@typescript-eslint/consistent-type-imports': 'error', + }, + }, /** * Fleet overrides diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 15d4839ce74bd..1ccc6201f0041 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -493,7 +493,6 @@ src/platform/packages/private/kbn-repo-packages @elastic/kibana-operations src/platform/packages/private/kbn-ui-shared-deps-npm @elastic/kibana-operations src/platform/packages/private/kbn-ui-shared-deps-src @elastic/kibana-operations src/platform/packages/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery -src/platform/packages/private/response-ops/rule_params @elastic/response-ops src/platform/packages/shared/analytics/browser @elastic/kibana-core src/platform/packages/shared/analytics/server @elastic/kibana-core src/platform/packages/shared/application/browser @elastic/kibana-core @@ -601,6 +600,7 @@ src/platform/packages/shared/kbn-zod @elastic/kibana-core src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/presentation/presentation_containers @elastic/kibana-presentation src/platform/packages/shared/presentation/presentation_publishing @elastic/kibana-presentation +src/platform/packages/shared/response-ops/rule_params @elastic/response-ops src/platform/packages/shared/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/private/ftr_apis @elastic/kibana-core @@ -3325,7 +3325,7 @@ x-pack/solutions/observability/plugins/observability @elastic/obs-ux-management- x-pack/solutions/observability/plugins/observability_ai_assistant_app @elastic/obs-ai-assistant x-pack/solutions/observability/plugins/observability_ai_assistant_management @elastic/obs-ai-assistant x-pack/solutions/observability/plugins/observability_logs_explorer @elastic/obs-ux-logs-team -x-pack/solutions/observability/plugins/observability_onboarding @elastic/obs-ux-logs-team @elastic/obs-ux-onboarding-team +x-pack/solutions/observability/plugins/observability_onboarding @elastic/obs-ux-logs-team x-pack/solutions/observability/plugins/observability_shared @elastic/observability-ui x-pack/solutions/observability/plugins/profiling @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/profiling_data_access @elastic/obs-ux-infra_services-team diff --git a/api_docs/actions.mdx b/api_docs/actions.mdx index 09fe6f9d95eac..a4a07e49d7507 100644 --- a/api_docs/actions.mdx +++ b/api_docs/actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions title: "actions" image: https://source.unsplash.com/400x175/?github description: API docs for the actions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions'] --- import actionsObj from './actions.devdocs.json'; diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index b982c1e8e795f..e5635850f4687 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings title: "advancedSettings" image: https://source.unsplash.com/400x175/?github description: API docs for the advancedSettings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings'] --- import advancedSettingsObj from './advanced_settings.devdocs.json'; diff --git a/api_docs/ai_assistant_management_selection.mdx b/api_docs/ai_assistant_management_selection.mdx index 7f0cbb876d8e1..2772f52b072db 100644 --- a/api_docs/ai_assistant_management_selection.mdx +++ b/api_docs/ai_assistant_management_selection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiAssistantManagementSelection title: "aiAssistantManagementSelection" image: https://source.unsplash.com/400x175/?github description: API docs for the aiAssistantManagementSelection plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiAssistantManagementSelection'] --- import aiAssistantManagementSelectionObj from './ai_assistant_management_selection.devdocs.json'; diff --git a/api_docs/aiops.mdx b/api_docs/aiops.mdx index 500abfa3a782e..0691d00bac8c6 100644 --- a/api_docs/aiops.mdx +++ b/api_docs/aiops.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops title: "aiops" image: https://source.unsplash.com/400x175/?github description: API docs for the aiops plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops'] --- import aiopsObj from './aiops.devdocs.json'; diff --git a/api_docs/alerting.mdx b/api_docs/alerting.mdx index dcbb9df1b11a3..1d65932290c85 100644 --- a/api_docs/alerting.mdx +++ b/api_docs/alerting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting title: "alerting" image: https://source.unsplash.com/400x175/?github description: API docs for the alerting plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting'] --- import alertingObj from './alerting.devdocs.json'; diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index e4e9293dd4c8d..7e02c999734b8 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apm title: "apm" image: https://source.unsplash.com/400x175/?github description: API docs for the apm plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm'] --- import apmObj from './apm.devdocs.json'; diff --git a/api_docs/apm_data_access.mdx b/api_docs/apm_data_access.mdx index 4266a3c5cf9ca..f54dc8fe77212 100644 --- a/api_docs/apm_data_access.mdx +++ b/api_docs/apm_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apmDataAccess title: "apmDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the apmDataAccess plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apmDataAccess'] --- import apmDataAccessObj from './apm_data_access.devdocs.json'; diff --git a/api_docs/asset_inventory.mdx b/api_docs/asset_inventory.mdx index f71144fd8bb8f..f00e89ef6546b 100644 --- a/api_docs/asset_inventory.mdx +++ b/api_docs/asset_inventory.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/assetInventory title: "assetInventory" image: https://source.unsplash.com/400x175/?github description: API docs for the assetInventory plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'assetInventory'] --- import assetInventoryObj from './asset_inventory.devdocs.json'; diff --git a/api_docs/banners.mdx b/api_docs/banners.mdx index 48808ce996fe3..3f8f3561c9909 100644 --- a/api_docs/banners.mdx +++ b/api_docs/banners.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/banners title: "banners" image: https://source.unsplash.com/400x175/?github description: API docs for the banners plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners'] --- import bannersObj from './banners.devdocs.json'; diff --git a/api_docs/canvas.mdx b/api_docs/canvas.mdx index 9b4a4247315a7..c20f784b8074c 100644 --- a/api_docs/canvas.mdx +++ b/api_docs/canvas.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/canvas title: "canvas" image: https://source.unsplash.com/400x175/?github description: API docs for the canvas plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas'] --- import canvasObj from './canvas.devdocs.json'; diff --git a/api_docs/cases.devdocs.json b/api_docs/cases.devdocs.json index 5e2b04ba5eae3..fdc8be046c711 100644 --- a/api_docs/cases.devdocs.json +++ b/api_docs/cases.devdocs.json @@ -317,7 +317,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -325,7 +325,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -539,7 +539,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -547,7 +547,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2004,7 +2004,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2012,7 +2012,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2208,7 +2208,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2216,7 +2216,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2309,7 +2309,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2317,7 +2317,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2402,7 +2402,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2410,7 +2410,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2653,7 +2653,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2661,7 +2661,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -2842,7 +2842,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; name: string; } | { id: string; type: ", + ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; additionalFields?: string | null | undefined; } | null; name: string; } | { id: string; type: ", { "pluginId": "cases", "scope": "common", @@ -2850,7 +2850,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; name: string; } | { id: string; type: ", + ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; additionalFields?: string | null | undefined; } | null; name: string; } | { id: string; type: ", { "pluginId": "cases", "scope": "common", @@ -3052,7 +3052,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; name: string; } | { id: string; type: ", + ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; additionalFields?: string | null | undefined; } | null; name: string; } | { id: string; type: ", { "pluginId": "cases", "scope": "common", @@ -3060,7 +3060,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; name: string; } | { id: string; type: ", + ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; additionalFields?: string | null | undefined; } | null; name: string; } | { id: string; type: ", { "pluginId": "cases", "scope": "common", @@ -3658,7 +3658,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -3666,7 +3666,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -3728,7 +3728,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowITSM; fields: { impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowITSM; fields: ({ impact: string | null; severity: string | null; urgency: string | null; category: string | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", @@ -3736,7 +3736,7 @@ "section": "def-common.ConnectorTypes", "text": "ConnectorTypes" }, - ".serviceNowSIR; fields: { category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } | null; } & { name: string; }) | ({ type: ", + ".serviceNowSIR; fields: ({ category: string | null; destIp: boolean | null; malwareHash: boolean | null; malwareUrl: boolean | null; priority: string | null; sourceIp: boolean | null; subcategory: string | null; } & { additionalFields?: string | null | undefined; }) | null; } & { name: string; }) | ({ type: ", { "pluginId": "cases", "scope": "common", diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index 94eee12163057..079d9fe1ae6f1 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cases title: "cases" image: https://source.unsplash.com/400x175/?github description: API docs for the cases plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases'] --- import casesObj from './cases.devdocs.json'; diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index 5b64df6173818..a142321a34c7e 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/charts title: "charts" image: https://source.unsplash.com/400x175/?github description: API docs for the charts plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts'] --- import chartsObj from './charts.devdocs.json'; diff --git a/api_docs/cloud.mdx b/api_docs/cloud.mdx index b30290f640425..5437ee22113c2 100644 --- a/api_docs/cloud.mdx +++ b/api_docs/cloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloud title: "cloud" image: https://source.unsplash.com/400x175/?github description: API docs for the cloud plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud'] --- import cloudObj from './cloud.devdocs.json'; diff --git a/api_docs/cloud_data_migration.mdx b/api_docs/cloud_data_migration.mdx index 033220185131c..9fbe87064eb2b 100644 --- a/api_docs/cloud_data_migration.mdx +++ b/api_docs/cloud_data_migration.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudDataMigration title: "cloudDataMigration" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudDataMigration plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudDataMigration'] --- import cloudDataMigrationObj from './cloud_data_migration.devdocs.json'; diff --git a/api_docs/cloud_defend.mdx b/api_docs/cloud_defend.mdx index 22a0a93a96521..4be29952b0d5d 100644 --- a/api_docs/cloud_defend.mdx +++ b/api_docs/cloud_defend.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudDefend title: "cloudDefend" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudDefend plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudDefend'] --- import cloudDefendObj from './cloud_defend.devdocs.json'; diff --git a/api_docs/cloud_security_posture.mdx b/api_docs/cloud_security_posture.mdx index c02a4fe19e587..0245aff5cb58a 100644 --- a/api_docs/cloud_security_posture.mdx +++ b/api_docs/cloud_security_posture.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudSecurityPosture title: "cloudSecurityPosture" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudSecurityPosture plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudSecurityPosture'] --- import cloudSecurityPostureObj from './cloud_security_posture.devdocs.json'; diff --git a/api_docs/console.mdx b/api_docs/console.mdx index 55496b20ee0cb..178a1f8c40380 100644 --- a/api_docs/console.mdx +++ b/api_docs/console.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/console title: "console" image: https://source.unsplash.com/400x175/?github description: API docs for the console plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'console'] --- import consoleObj from './console.devdocs.json'; diff --git a/api_docs/content_management.mdx b/api_docs/content_management.mdx index b1dcdaa710ec5..a5f173d46313a 100644 --- a/api_docs/content_management.mdx +++ b/api_docs/content_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/contentManagement title: "contentManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the contentManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'contentManagement'] --- import contentManagementObj from './content_management.devdocs.json'; diff --git a/api_docs/controls.mdx b/api_docs/controls.mdx index 8d3b096e7c01b..7250ad66a5d15 100644 --- a/api_docs/controls.mdx +++ b/api_docs/controls.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/controls title: "controls" image: https://source.unsplash.com/400x175/?github description: API docs for the controls plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'controls'] --- import controlsObj from './controls.devdocs.json'; diff --git a/api_docs/custom_integrations.mdx b/api_docs/custom_integrations.mdx index f5d459d6fd6c8..b1c4d5d00b34b 100644 --- a/api_docs/custom_integrations.mdx +++ b/api_docs/custom_integrations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/customIntegrations title: "customIntegrations" image: https://source.unsplash.com/400x175/?github description: API docs for the customIntegrations plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'customIntegrations'] --- import customIntegrationsObj from './custom_integrations.devdocs.json'; diff --git a/api_docs/dashboard.devdocs.json b/api_docs/dashboard.devdocs.json index e7d6baaa597ef..9b18588cdaabf 100644 --- a/api_docs/dashboard.devdocs.json +++ b/api_docs/dashboard.devdocs.json @@ -660,79 +660,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "dashboard", - "id": "def-public.IProvidesLegacyPanelPlacementSettings", - "type": "Interface", - "tags": [], - "label": "IProvidesLegacyPanelPlacementSettings", - "description": [], - "signature": [ - { - "pluginId": "dashboard", - "scope": "public", - "docId": "kibDashboardPluginApi", - "section": "def-public.IProvidesLegacyPanelPlacementSettings", - "text": "IProvidesLegacyPanelPlacementSettings" - }, - "" - ], - "path": "src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "dashboard", - "id": "def-public.IProvidesLegacyPanelPlacementSettings.getLegacyPanelPlacementSettings", - "type": "Function", - "tags": [], - "label": "getLegacyPanelPlacementSettings", - "description": [], - "signature": [ - "(input: InputType, attributes?: AttributesType | undefined) => Partial<", - "PanelPlacementSettings", - ">" - ], - "path": "src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "dashboard", - "id": "def-public.IProvidesLegacyPanelPlacementSettings.getLegacyPanelPlacementSettings.$1", - "type": "Uncategorized", - "tags": [], - "label": "input", - "description": [], - "signature": [ - "InputType" - ], - "path": "src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "dashboard", - "id": "def-public.IProvidesLegacyPanelPlacementSettings.getLegacyPanelPlacementSettings.$2", - "type": "Uncategorized", - "tags": [], - "label": "attributes", - "description": [], - "signature": [ - "AttributesType | undefined" - ], - "path": "src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - } - ], - "initialIsOpen": false - }, { "parentPluginId": "dashboard", "id": "def-public.SearchDashboardsResponse", @@ -1224,39 +1151,7 @@ "section": "def-common.Filter", "text": "Filter" }, - "[] | undefined>; untilEmbeddableLoaded: (id: string) => Promise<", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.IEmbeddable", - "text": "IEmbeddable" - }, - "<", - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.EmbeddableInput", - "text": "EmbeddableInput" - }, - ", ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableOutput", - "text": "EmbeddableOutput" - }, - ", any> | ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ErrorEmbeddable", - "text": "ErrorEmbeddable" - }, - ">; }" + "[] | undefined>; untilEmbeddableLoaded: (id: string) => Promise; }" ], "path": "src/platform/plugins/shared/dashboard/public/dashboard_api/types.ts", "deprecated": false, diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index 508dee3013def..42b93598a4f9e 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboard title: "dashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboard plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboard'] --- import dashboardObj from './dashboard.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kib | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 117 | 0 | 113 | 13 | +| 113 | 0 | 109 | 12 | ## Client diff --git a/api_docs/dashboard_enhanced.mdx b/api_docs/dashboard_enhanced.mdx index 6721789adc89c..3e2b95947ddfb 100644 --- a/api_docs/dashboard_enhanced.mdx +++ b/api_docs/dashboard_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboardEnhanced title: "dashboardEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboardEnhanced plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboardEnhanced'] --- import dashboardEnhancedObj from './dashboard_enhanced.devdocs.json'; diff --git a/api_docs/data.mdx b/api_docs/data.mdx index 58b2fddd2b790..ffb08eda87885 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data title: "data" image: https://source.unsplash.com/400x175/?github description: API docs for the data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data'] --- import dataObj from './data.devdocs.json'; diff --git a/api_docs/data_quality.mdx b/api_docs/data_quality.mdx index 8e6bd7c581c1e..a80243193d98e 100644 --- a/api_docs/data_quality.mdx +++ b/api_docs/data_quality.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataQuality title: "dataQuality" image: https://source.unsplash.com/400x175/?github description: API docs for the dataQuality plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataQuality'] --- import dataQualityObj from './data_quality.devdocs.json'; diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index d405f61cd2a7c..ffd03746f6071 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-query title: "data.query" image: https://source.unsplash.com/400x175/?github description: API docs for the data.query plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.query'] --- import dataQueryObj from './data_query.devdocs.json'; diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index 8c47119341dce..1ee43a0a0b3f6 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-search title: "data.search" image: https://source.unsplash.com/400x175/?github description: API docs for the data.search plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.search'] --- import dataSearchObj from './data_search.devdocs.json'; diff --git a/api_docs/data_usage.mdx b/api_docs/data_usage.mdx index 93016ad8534b2..4f909229a3f54 100644 --- a/api_docs/data_usage.mdx +++ b/api_docs/data_usage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataUsage title: "dataUsage" image: https://source.unsplash.com/400x175/?github description: API docs for the dataUsage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataUsage'] --- import dataUsageObj from './data_usage.devdocs.json'; diff --git a/api_docs/data_view_editor.mdx b/api_docs/data_view_editor.mdx index a8065a7023854..22c9ab2223bf0 100644 --- a/api_docs/data_view_editor.mdx +++ b/api_docs/data_view_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewEditor title: "dataViewEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewEditor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewEditor'] --- import dataViewEditorObj from './data_view_editor.devdocs.json'; diff --git a/api_docs/data_view_field_editor.mdx b/api_docs/data_view_field_editor.mdx index fc22bb62a35a2..7f5ca5fb1b070 100644 --- a/api_docs/data_view_field_editor.mdx +++ b/api_docs/data_view_field_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewFieldEditor title: "dataViewFieldEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewFieldEditor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewFieldEditor'] --- import dataViewFieldEditorObj from './data_view_field_editor.devdocs.json'; diff --git a/api_docs/data_view_management.mdx b/api_docs/data_view_management.mdx index b287a04a8a940..030cc66f7c77b 100644 --- a/api_docs/data_view_management.mdx +++ b/api_docs/data_view_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewManagement title: "dataViewManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewManagement'] --- import dataViewManagementObj from './data_view_management.devdocs.json'; diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx index 57831742390bd..e494332ad1ae3 100644 --- a/api_docs/data_views.mdx +++ b/api_docs/data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViews title: "dataViews" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViews plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViews'] --- import dataViewsObj from './data_views.devdocs.json'; diff --git a/api_docs/data_visualizer.mdx b/api_docs/data_visualizer.mdx index f8be0e4ccf52e..fd83cf185b745 100644 --- a/api_docs/data_visualizer.mdx +++ b/api_docs/data_visualizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataVisualizer title: "dataVisualizer" image: https://source.unsplash.com/400x175/?github description: API docs for the dataVisualizer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataVisualizer'] --- import dataVisualizerObj from './data_visualizer.devdocs.json'; diff --git a/api_docs/dataset_quality.mdx b/api_docs/dataset_quality.mdx index 046c85cc35f5c..1f9078261d91b 100644 --- a/api_docs/dataset_quality.mdx +++ b/api_docs/dataset_quality.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/datasetQuality title: "datasetQuality" image: https://source.unsplash.com/400x175/?github description: API docs for the datasetQuality plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'datasetQuality'] --- import datasetQualityObj from './dataset_quality.devdocs.json'; diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 117c0a2d66e69..f28bd0eb82d46 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByApi slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-api title: Deprecated API usage by API description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -51,7 +51,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | @kbn/core-saved-objects-common, @kbn/core-saved-objects-server, @kbn/core, actions, @kbn/alerting-types, alerting, savedSearch, canvas, securitySolution, taskManager, enterpriseSearch, @kbn/core-saved-objects-server-internal, @kbn/core-saved-objects-api-server | - | | | @kbn/core-saved-objects-api-browser, @kbn/core-saved-objects-browser-internal, @kbn/core-saved-objects-api-server, @kbn/core-saved-objects-browser-mocks, @kbn/core, home, savedObjectsTagging, canvas, @kbn/core-saved-objects-import-export-server-internal, savedObjectsTaggingOss, upgradeAssistant, securitySolution, lists, savedObjectsManagement, @kbn/core-ui-settings-server-internal | - | | | @kbn/core-saved-objects-migration-server-internal, dataViews, data, graph, lens, actions, alerting, dashboard, savedSearch, savedObjectsTagging, canvas, cases, maps, lists, securitySolution, visualizations, @kbn/core-test-helpers-so-type-serializer | - | -| | integrationAssistant, @kbn/ecs-data-quality-dashboard, securitySolution, observabilityAIAssistantApp | - | | | security, cloudLinks, securitySolution, cases | - | | | security, cases, securitySolution, searchPlayground | - | | | lists, securitySolution, @kbn/securitysolution-io-ts-list-types | - | @@ -122,7 +121,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | dataViews, dataViewManagement | - | | | dataViews, dataViewManagement | - | | | maps | - | -| | maps | - | | | lens, dashboard, maps | - | | | dataViewManagement | - | | | dataViewManagement | - | @@ -152,6 +150,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | aiAssistantManagementSelection, observabilityAiAssistantManagement | - | | | @kbn/react-kibana-context-styled, kibanaReact | - | | | indexLifecycleManagement | - | +| | observabilityAIAssistantApp | - | | | dashboard | - | | | dashboard | - | | | @kbn/reporting-public, discover | - | @@ -202,7 +201,6 @@ Safe to remove. | | data | | | data | | | data | -| | embeddable | | | expressionGauge | | | expressionGauge | | | expressions | @@ -237,6 +235,7 @@ Safe to remove. | | serverless | | | taskManager | | | taskManager | +| | visualizations | | | @kbn/core-saved-objects-api-browser | | | @kbn/core-saved-objects-api-browser | | | @kbn/esql-validation-autocomplete | diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index 26b59dcbf4f21..e99bad1cec056 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByPlugin slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-plugin title: Deprecated API usage by plugin description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -386,14 +386,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] -## @kbn/ecs-data-quality-dashboard - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx#:~:text=AssistantAvatar) | - | - - - ## @kbn/esql-utils | Deprecated API | Reference location(s) | Remove By | @@ -1038,14 +1030,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] -## integrationAssistant - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [integration_assistant_card.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx#:~:text=AssistantAvatar), [integration_assistant_card.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx#:~:text=AssistantAvatar), [header.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx#:~:text=AssistantAvatar), [header.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx#:~:text=AssistantAvatar) | - | - - - ## interactiveSetup | Deprecated API | Reference location(s) | Remove By | @@ -1161,7 +1145,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | | | [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=title) | - | -| | [is_legacy_map.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts#:~:text=VisualizeEmbeddable), [is_legacy_map.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts#:~:text=VisualizeEmbeddable), [is_legacy_map.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts#:~:text=VisualizeEmbeddable) | - | | | [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=ResolvedSimpleSavedObject), [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=ResolvedSimpleSavedObject), [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=ResolvedSimpleSavedObject), [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=ResolvedSimpleSavedObject) | - | | | [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=SavedObjectReference), [load_from_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/load_from_library.ts#:~:text=SavedObjectReference), [save_to_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/save_to_library.ts#:~:text=SavedObjectReference), [save_to_library.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/save_to_library.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/common/migrations/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/common/migrations/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/common/migrations/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/common/migrations/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/common/migrations/references.ts#:~:text=SavedObjectReference) | - | | | [setup_saved_objects.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/maps/server/saved_objects/setup_saved_objects.ts#:~:text=migrations) | - | @@ -1459,7 +1442,6 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/ | | [host_risk_score_dashboards.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/risk_score/prebuilt_saved_objects/saved_object/host_risk_score_dashboards.ts#:~:text=SavedObject), [host_risk_score_dashboards.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/risk_score/prebuilt_saved_objects/saved_object/host_risk_score_dashboards.ts#:~:text=SavedObject), [user_risk_score_dashboards.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/risk_score/prebuilt_saved_objects/saved_object/user_risk_score_dashboards.ts#:~:text=SavedObject), [user_risk_score_dashboards.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/risk_score/prebuilt_saved_objects/saved_object/user_risk_score_dashboards.ts#:~:text=SavedObject) | - | | | [timelines.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/timelines.ts#:~:text=migrations), [notes.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/notes.ts#:~:text=migrations), [pinned_events.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/pinned_events.ts#:~:text=migrations), [legacy_saved_object_mappings.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_actions_legacy/logic/rule_actions/legacy_saved_object_mappings.ts#:~:text=migrations), [saved_object_mappings.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/endpoint/lib/artifacts/saved_object_mappings.ts#:~:text=migrations) | - | | | [timelines.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/timelines.ts#:~:text=convertToMultiNamespaceTypeVersion), [notes.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/notes.ts#:~:text=convertToMultiNamespaceTypeVersion), [pinned_events.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object_mappings/pinned_events.ts#:~:text=convertToMultiNamespaceTypeVersion), [legacy_saved_object_mappings.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_actions_legacy/logic/rule_actions/legacy_saved_object_mappings.ts#:~:text=convertToMultiNamespaceTypeVersion) | - | -| | [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx#:~:text=AssistantAvatar), [header_link.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx#:~:text=AssistantAvatar), [header_link.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx#:~:text=AssistantAvatar), [workflow_insights_scan.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx#:~:text=AssistantAvatar), [workflow_insights_scan.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx#:~:text=AssistantAvatar)+ 15 more | - | | | [links.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/management/links.ts#:~:text=authc), [hooks.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/common/lib/kibana/hooks.ts#:~:text=authc) | - | | | [use_bulk_get_user_profiles.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_bulk_get_user_profiles.tsx#:~:text=userProfiles), [use_get_current_user_profile.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_get_current_user_profile.tsx#:~:text=userProfiles) | - | | | [request_context_factory.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/request_context_factory.ts#:~:text=audit), [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/plugin.ts#:~:text=audit), [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/server/plugin.ts#:~:text=audit) | - | diff --git a/api_docs/deprecations_by_team.mdx b/api_docs/deprecations_by_team.mdx index e4f4ea6be77a8..ef8d560fa4bcd 100644 --- a/api_docs/deprecations_by_team.mdx +++ b/api_docs/deprecations_by_team.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsDueByTeam slug: /kibana-dev-docs/api-meta/deprecations-due-by-team title: Deprecated APIs due to be removed, by team description: Lists the teams that are referencing deprecated APIs with a remove by date. -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- diff --git a/api_docs/dev_tools.mdx b/api_docs/dev_tools.mdx index a92bb3d99315d..b9bd17f60e99e 100644 --- a/api_docs/dev_tools.mdx +++ b/api_docs/dev_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/devTools title: "devTools" image: https://source.unsplash.com/400x175/?github description: API docs for the devTools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'devTools'] --- import devToolsObj from './dev_tools.devdocs.json'; diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index 96084f73c88a9..f62e500eb0ba2 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discover title: "discover" image: https://source.unsplash.com/400x175/?github description: API docs for the discover plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discover'] --- import discoverObj from './discover.devdocs.json'; diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index 8bba4a9ba5ca7..fc5c702e80cec 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discoverEnhanced title: "discoverEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the discoverEnhanced plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverEnhanced'] --- import discoverEnhancedObj from './discover_enhanced.devdocs.json'; diff --git a/api_docs/discover_shared.mdx b/api_docs/discover_shared.mdx index bb67f3139f31b..cb3863bfbf8fc 100644 --- a/api_docs/discover_shared.mdx +++ b/api_docs/discover_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discoverShared title: "discoverShared" image: https://source.unsplash.com/400x175/?github description: API docs for the discoverShared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverShared'] --- import discoverSharedObj from './discover_shared.devdocs.json'; diff --git a/api_docs/ecs_data_quality_dashboard.mdx b/api_docs/ecs_data_quality_dashboard.mdx index 6b0b6377a9144..29804770ba089 100644 --- a/api_docs/ecs_data_quality_dashboard.mdx +++ b/api_docs/ecs_data_quality_dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ecsDataQualityDashboard title: "ecsDataQualityDashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the ecsDataQualityDashboard plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ecsDataQualityDashboard'] --- import ecsDataQualityDashboardObj from './ecs_data_quality_dashboard.devdocs.json'; diff --git a/api_docs/elastic_assistant.mdx b/api_docs/elastic_assistant.mdx index 851fc55bd9d27..b3affe198fbf4 100644 --- a/api_docs/elastic_assistant.mdx +++ b/api_docs/elastic_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/elasticAssistant title: "elasticAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the elasticAssistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'elasticAssistant'] --- import elasticAssistantObj from './elastic_assistant.devdocs.json'; diff --git a/api_docs/embeddable.devdocs.json b/api_docs/embeddable.devdocs.json index d5a2d3a3eb310..ca5cfc3f00151 100644 --- a/api_docs/embeddable.devdocs.json +++ b/api_docs/embeddable.devdocs.json @@ -4,164 +4,31 @@ "classes": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable", + "id": "def-public.EmbeddableStateTransfer", "type": "Class", "tags": [], - "label": "Embeddable", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.Embeddable", - "text": "Embeddable" - }, - " implements ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.IEmbeddable", - "text": "IEmbeddable" - }, - "" + "label": "EmbeddableStateTransfer", + "description": [ + "\nA wrapper around the session storage which provides strongly typed helper methods\nfor common incoming and outgoing states used by the embeddable infrastructure.\n" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.runtimeId", - "type": "number", - "tags": [], - "label": "runtimeId", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.runtimeId", - "type": "number", - "tags": [], - "label": "runtimeId", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.deferEmbeddableLoad", - "type": "boolean", - "tags": [], - "label": "deferEmbeddableLoad", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.fatalError", - "type": "Object", - "tags": [], - "label": "fatalError", - "description": [], - "signature": [ - "Error | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.output", - "type": "Uncategorized", - "tags": [], - "label": "output", - "description": [], - "signature": [ - "TEmbeddableOutput" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.input", - "type": "Uncategorized", - "tags": [], - "label": "input", - "description": [], - "signature": [ - "TEmbeddableInput" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.renderComplete", - "type": "Object", - "tags": [], - "label": "renderComplete", - "description": [], - "signature": [ - { - "pluginId": "kibanaUtils", - "scope": "public", - "docId": "kibKibanaUtilsPluginApi", - "section": "def-public.RenderCompleteDispatcher", - "text": "RenderCompleteDispatcher" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.destroyed", + "id": "def-public.EmbeddableStateTransfer.isTransferInProgress", "type": "boolean", "tags": [], - "label": "destroyed", + "label": "isTransferInProgress", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.Unnamed", + "id": "def-public.EmbeddableStateTransfer.Unnamed", "type": "Function", "tags": [], "label": "Constructor", @@ -169,502 +36,531 @@ "signature": [ "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.Unnamed.$1", - "type": "Uncategorized", + "id": "def-public.EmbeddableStateTransfer.Unnamed.$1", + "type": "Function", "tags": [], - "label": "input", + "label": "navigateToApp", "description": [], "signature": [ - "TEmbeddableInput" + "(appId: string, options?: ", + "NavigateToAppOptions", + " | undefined) => Promise" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.Unnamed.$2", - "type": "Uncategorized", + "id": "def-public.EmbeddableStateTransfer.Unnamed.$2", + "type": "Object", "tags": [], - "label": "output", + "label": "currentAppId$", "description": [], "signature": [ - "TEmbeddableOutput" + "Observable", + "" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.Unnamed.$3", + "type": "Object", + "tags": [], + "label": "appList", + "description": [], + "signature": [ + "ReadonlyMap | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.Unnamed.$4", + "type": "Object", + "tags": [], + "label": "customStorage", + "description": [], + "signature": [ + { + "pluginId": "kibanaUtils", + "scope": "public", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-public.Storage", + "text": "Storage" + }, + " | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": false } ], "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getEditHref", + "id": "def-public.EmbeddableStateTransfer.getAppNameFromId", "type": "Function", "tags": [], - "label": "getEditHref", - "description": [], - "signature": [ - "() => Promise" + "label": "getAppNameFromId", + "description": [ + "\nFetches an internationalized app title when given an appId." ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.reportsEmbeddableLoad", - "type": "Function", - "tags": [], - "label": "reportsEmbeddableLoad", - "description": [], "signature": [ - "() => boolean" + "(appId: string) => string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, - "children": [], + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.getAppNameFromId.$1", + "type": "string", + "tags": [], + "label": "appId", + "description": [ + "- The id of the app to fetch the title for" + ], + "signature": [ + "string" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.reload", + "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState", "type": "Function", "tags": [], - "label": "reload", + "label": "getIncomingEditorState", "description": [ - "\nReload will be called when there is a request to refresh the data or view, even if the\ninput data did not change.\n\nIn case if input data did change and reload is requested input$ and output$ would still emit before `reload` is called\n\nThe order would be as follows:\ninput$\noutput$\nreload()\n----\nupdated$" + "\nFetches an {@link EmbeddableEditorState | editor state} from the sessionStorage for the provided app id\n" ], "signature": [ - "() => void" + "(appId: string, removeAfterFetch?: boolean | undefined) => ", + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddableEditorState", + "text": "EmbeddableEditorState" + }, + " | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, - "children": [], + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState.$1", + "type": "string", + "tags": [], + "label": "appId", + "description": [ + "- The app to fetch incomingEditorState for" + ], + "signature": [ + "string" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState.$2", + "type": "CompoundType", + "tags": [], + "label": "removeAfterFetch", + "description": [ + "- Whether to remove the package state after fetch to prevent duplicates." + ], + "signature": [ + "boolean | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": false + } + ], "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getUpdated$", + "id": "def-public.EmbeddableStateTransfer.clearEditorState", "type": "Function", "tags": [], - "label": "getUpdated$", + "label": "clearEditorState", "description": [ - "\nMerges input$ and output$ streams and debounces emit till next macro-task.\nCould be useful to batch reactions to input$ and output$ updates that happen separately but synchronously.\nIn case corresponding state change triggered `reload` this stream is guarantied to emit later,\nwhich allows to skip state handling in case `reload` already handled it." + "\nClears the {@link EmbeddableEditorState | editor state} from the sessionStorage for the provided app id\n" ], "signature": [ - "() => Readonly<", - "Observable", - ">" + "(appId?: string | undefined) => void" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getInput$", - "type": "Function", - "tags": [], - "label": "getInput$", - "description": [], - "signature": [ - "() => Readonly<", - "Observable", - ">" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getOutput$", - "type": "Function", - "tags": [], - "label": "getOutput$", - "description": [], - "signature": [ - "() => Readonly<", - "Observable", - ">" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getOutput", - "type": "Function", - "tags": [], - "label": "getOutput", - "description": [], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getExplicitInputIsEqual", - "type": "Function", - "tags": [], - "label": "getExplicitInputIsEqual", - "description": [], - "signature": [ - "(lastExplicitInput: Partial) => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getExplicitInputIsEqual.$1", - "type": "Object", + "id": "def-public.EmbeddableStateTransfer.clearEditorState.$1", + "type": "string", "tags": [], - "label": "lastExplicitInput", - "description": [], + "label": "appId", + "description": [ + "- The app to fetch incomingEditorState for" + ], "signature": [ - "Partial" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, - "isRequired": true + "isRequired": false } ], "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getExplicitInput", - "type": "Function", - "tags": [], - "label": "getExplicitInput", - "description": [], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getPersistableInput", - "type": "Function", - "tags": [], - "label": "getPersistableInput", - "description": [], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getInput", - "type": "Function", - "tags": [], - "label": "getInput", - "description": [], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getTitle", - "type": "Function", - "tags": [], - "label": "getTitle", - "description": [], - "signature": [ - "() => string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getDescription", + "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage", "type": "Function", "tags": [], - "label": "getDescription", - "description": [], - "signature": [ - "() => string" + "label": "getIncomingEmbeddablePackage", + "description": [ + "\nFetches an {@link EmbeddablePackageState | embeddable package} from the sessionStorage for the given AppId\n" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.updateInput", - "type": "Function", - "tags": [], - "label": "updateInput", - "description": [], "signature": [ - "(changes: Partial) => void" + "(appId: string, removeAfterFetch?: boolean | undefined) => ", + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddablePackageState", + "text": "EmbeddablePackageState" + }, + " | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.updateInput.$1", - "type": "Object", + "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage.$1", + "type": "string", "tags": [], - "label": "changes", - "description": [], + "label": "appId", + "description": [ + "- The app to fetch EmbeddablePackageState for" + ], "signature": [ - "Partial" + "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.render", - "type": "Function", - "tags": [], - "label": "render", - "description": [], - "signature": [ - "(el: HTMLElement) => void | TNode" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ + }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.render.$1", - "type": "Object", + "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage.$2", + "type": "CompoundType", "tags": [], - "label": "el", - "description": [], + "label": "removeAfterFetch", + "description": [ + "- Whether to remove the package state after fetch to prevent duplicates." + ], "signature": [ - "HTMLElement" + "boolean | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, - "isRequired": true + "isRequired": false } ], "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.getInspectorAdapters", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor", "type": "Function", - "tags": [ - "return" - ], - "label": "getInspectorAdapters", + "tags": [], + "label": "navigateToEditor", "description": [ - "\nAn embeddable can return inspector adapters if it want the inspector to be\navailable via the context menu of that panel." + "\nA wrapper around the {@link ApplicationStart.navigateToApp} method which navigates to the specified appId\nwith {@link EmbeddableEditorState | embeddable editor state}" ], "signature": [ - "() => ", + "(appId: string, options?: { path?: string | undefined; openInNewTab?: boolean | undefined; skipAppLeave?: boolean | undefined; state: ", { - "pluginId": "inspector", - "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddableEditorState", + "text": "EmbeddableEditorState" }, - " | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [ - "Inspector adapters that will be used to open an inspector for." - ] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.destroy", - "type": "Function", - "tags": [], - "label": "destroy", - "description": [ - "\nCalled when this embeddable is no longer used, this should be the place for\nimplementors to add additional clean up tasks, like un-mounting and unsubscribing." - ], - "signature": [ - "() => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.untilInitializationFinished", - "type": "Function", - "tags": [], - "label": "untilInitializationFinished", - "description": [], - "signature": [ - "() => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.setInitializationFinished", - "type": "Function", - "tags": [], - "label": "setInitializationFinished", - "description": [ - "\ncommunicate to the parent embeddable that this embeddable's initialization is finished.\nThis only applies to embeddables which defer their loading state with deferEmbeddableLoad." - ], - "signature": [ - "() => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.updateOutput", - "type": "Function", - "tags": [], - "label": "updateOutput", - "description": [], - "signature": [ - "(outputChanges: Partial) => void" + "; } | undefined) => Promise" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.updateOutput.$1", - "type": "Object", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$1", + "type": "string", "tags": [], - "label": "outputChanges", + "label": "appId", "description": [], "signature": [ - "Partial" + "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.Embeddable.onFatalError", - "type": "Function", - "tags": [], - "label": "onFatalError", - "description": [ - "\nCall this **only** when your embeddable has encountered a non-recoverable error; recoverable errors\nshould be handled by the individual embeddable types" - ], - "signature": [ - "(e: Error) => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ + }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.onFatalError.$1", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2", "type": "Object", "tags": [], - "label": "e", - "description": [ - "The fatal, unrecoverable Error that was thrown" - ], + "label": "options", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.path", + "type": "string", + "tags": [], + "label": "path", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.openInNewTab", + "type": "CompoundType", + "tags": [], + "label": "openInNewTab", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.skipAppLeave", + "type": "CompoundType", + "tags": [], + "label": "skipAppLeave", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.state", + "type": "Object", + "tags": [], + "label": "state", + "description": [], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddableEditorState", + "text": "EmbeddableEditorState" + } + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + } + ] + } + ], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage", + "type": "Function", + "tags": [], + "label": "navigateToWithEmbeddablePackage", + "description": [ + "\nA wrapper around the {@link ApplicationStart.navigateToApp} method which navigates to the specified appId\nwith {@link EmbeddablePackageState | embeddable package state}" + ], + "signature": [ + "(appId: string, options?: { path?: string | undefined; state: ", + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddablePackageState", + "text": "EmbeddablePackageState" + }, + "; } | undefined) => Promise" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$1", + "type": "string", + "tags": [], + "label": "appId", + "description": [], "signature": [ - "Error" + "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2.path", + "type": "string", + "tags": [], + "label": "path", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2.state", + "type": "Object", + "tags": [], + "label": "state", + "description": [], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EmbeddablePackageState", + "text": "EmbeddablePackageState" + } + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "deprecated": false, + "trackAdoption": false + } + ] } ], "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.PanelIncompatibleError", + "type": "Class", + "tags": [], + "label": "PanelIncompatibleError", + "description": [], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.PanelIncompatibleError", + "text": "PanelIncompatibleError" + }, + " extends Error" + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.PanelIncompatibleError.code", + "type": "string", + "tags": [], + "label": "code", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "deprecated": false, + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.Embeddable.supportedTriggers", + "id": "def-public.PanelIncompatibleError.Unnamed", "type": "Function", "tags": [], - "label": "supportedTriggers", + "label": "Constructor", "description": [], "signature": [ - "() => string[]" + "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx", + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -675,31 +571,39 @@ }, { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer", + "id": "def-public.PanelNotFoundError", "type": "Class", "tags": [], - "label": "EmbeddableStateTransfer", - "description": [ - "\nA wrapper around the session storage which provides strongly typed helper methods\nfor common incoming and outgoing states used by the embeddable infrastructure.\n" + "label": "PanelNotFoundError", + "description": [], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.PanelNotFoundError", + "text": "PanelNotFoundError" + }, + " extends Error" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.isTransferInProgress", - "type": "boolean", + "id": "def-public.PanelNotFoundError.code", + "type": "string", "tags": [], - "label": "isTransferInProgress", + "label": "code", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", "deprecated": false, "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.Unnamed", + "id": "def-public.PanelNotFoundError.Unnamed", "type": "Function", "tags": [], "label": "Constructor", @@ -707,2506 +611,867 @@ "signature": [ "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", "deprecated": false, "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.Unnamed.$1", - "type": "Function", - "tags": [], - "label": "navigateToApp", - "description": [], - "signature": [ - "(appId: string, options?: ", - "NavigateToAppOptions", - " | undefined) => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.Unnamed.$2", - "type": "Object", - "tags": [], - "label": "currentAppId$", - "description": [], - "signature": [ - "Observable", - "" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.Unnamed.$3", - "type": "Object", - "tags": [], - "label": "appList", - "description": [], - "signature": [ - "ReadonlyMap | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.Unnamed.$4", - "type": "Object", - "tags": [], - "label": "customStorage", - "description": [], - "signature": [ - { - "pluginId": "kibanaUtils", - "scope": "public", - "docId": "kibKibanaUtilsPluginApi", - "section": "def-public.Storage", - "text": "Storage" - }, - " | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getAppNameFromId", - "type": "Function", - "tags": [], - "label": "getAppNameFromId", - "description": [ - "\nFetches an internationalized app title when given an appId." - ], - "signature": [ - "(appId: string) => string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getAppNameFromId.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [ - "- The id of the app to fetch the title for" - ], - "signature": [ - "string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState", - "type": "Function", - "tags": [], - "label": "getIncomingEditorState", - "description": [ - "\nFetches an {@link EmbeddableEditorState | editor state} from the sessionStorage for the provided app id\n" - ], - "signature": [ - "(appId: string, removeAfterFetch?: boolean | undefined) => ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableEditorState", - "text": "EmbeddableEditorState" - }, - " | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [ - "- The app to fetch incomingEditorState for" - ], - "signature": [ - "string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEditorState.$2", - "type": "CompoundType", - "tags": [], - "label": "removeAfterFetch", - "description": [ - "- Whether to remove the package state after fetch to prevent duplicates." - ], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.clearEditorState", - "type": "Function", - "tags": [], - "label": "clearEditorState", - "description": [ - "\nClears the {@link EmbeddableEditorState | editor state} from the sessionStorage for the provided app id\n" - ], - "signature": [ - "(appId?: string | undefined) => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.clearEditorState.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [ - "- The app to fetch incomingEditorState for" - ], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage", - "type": "Function", - "tags": [], - "label": "getIncomingEmbeddablePackage", - "description": [ - "\nFetches an {@link EmbeddablePackageState | embeddable package} from the sessionStorage for the given AppId\n" - ], - "signature": [ - "(appId: string, removeAfterFetch?: boolean | undefined) => ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddablePackageState", - "text": "EmbeddablePackageState" - }, - " | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [ - "- The app to fetch EmbeddablePackageState for" - ], - "signature": [ - "string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.getIncomingEmbeddablePackage.$2", - "type": "CompoundType", - "tags": [], - "label": "removeAfterFetch", - "description": [ - "- Whether to remove the package state after fetch to prevent duplicates." - ], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor", - "type": "Function", - "tags": [], - "label": "navigateToEditor", - "description": [ - "\nA wrapper around the {@link ApplicationStart.navigateToApp} method which navigates to the specified appId\nwith {@link EmbeddableEditorState | embeddable editor state}" - ], - "signature": [ - "(appId: string, options?: { path?: string | undefined; openInNewTab?: boolean | undefined; skipAppLeave?: boolean | undefined; state: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableEditorState", - "text": "EmbeddableEditorState" - }, - "; } | undefined) => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [], - "signature": [ - "string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2", - "type": "Object", - "tags": [], - "label": "options", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.path", - "type": "string", - "tags": [], - "label": "path", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.openInNewTab", - "type": "CompoundType", - "tags": [], - "label": "openInNewTab", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.skipAppLeave", - "type": "CompoundType", - "tags": [], - "label": "skipAppLeave", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToEditor.$2.state", - "type": "Object", - "tags": [], - "label": "state", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableEditorState", - "text": "EmbeddableEditorState" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - } - ] - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage", - "type": "Function", - "tags": [], - "label": "navigateToWithEmbeddablePackage", - "description": [ - "\nA wrapper around the {@link ApplicationStart.navigateToApp} method which navigates to the specified appId\nwith {@link EmbeddablePackageState | embeddable package state}" - ], - "signature": [ - "(appId: string, options?: { path?: string | undefined; state: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddablePackageState", - "text": "EmbeddablePackageState" - }, - "; } | undefined) => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$1", - "type": "string", - "tags": [], - "label": "appId", - "description": [], - "signature": [ - "string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2", - "type": "Object", - "tags": [], - "label": "options", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2.path", - "type": "string", - "tags": [], - "label": "path", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableStateTransfer.navigateToWithEmbeddablePackage.$2.state", - "type": "Object", - "tags": [], - "label": "state", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddablePackageState", - "text": "EmbeddablePackageState" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", - "deprecated": false, - "trackAdoption": false - } - ] - } - ], - "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable", - "type": "Class", - "tags": [], - "label": "ErrorEmbeddable", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ErrorEmbeddable", - "text": "ErrorEmbeddable" - }, - " extends ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.Embeddable", - "text": "Embeddable" - }, - "<", - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.EmbeddableInput", - "text": "EmbeddableInput" - }, - ", ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableOutput", - "text": "EmbeddableOutput" - }, - ", React.ReactNode>" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "signature": [ - "\"error\"" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.error", - "type": "CompoundType", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "string | Error" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.Unnamed", - "type": "Function", - "tags": [], - "label": "Constructor", - "description": [], - "signature": [ - "any" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.Unnamed.$1", - "type": "CompoundType", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "string | Error" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.Unnamed.$2", - "type": "Object", - "tags": [], - "label": "input", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.EmbeddableInput", - "text": "EmbeddableInput" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.reload", - "type": "Function", - "tags": [], - "label": "reload", - "description": [], - "signature": [ - "() => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ErrorEmbeddable.render", - "type": "Function", - "tags": [], - "label": "render", - "description": [], - "signature": [ - "() => React.JSX.Element" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PanelIncompatibleError", - "type": "Class", - "tags": [], - "label": "PanelIncompatibleError", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.PanelIncompatibleError", - "text": "PanelIncompatibleError" - }, - " extends Error" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.PanelIncompatibleError.code", - "type": "string", - "tags": [], - "label": "code", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PanelIncompatibleError.Unnamed", - "type": "Function", - "tags": [], - "label": "Constructor", - "description": [], - "signature": [ - "any" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PanelNotFoundError", - "type": "Class", - "tags": [], - "label": "PanelNotFoundError", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.PanelNotFoundError", - "text": "PanelNotFoundError" - }, - " extends Error" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.PanelNotFoundError.code", - "type": "string", - "tags": [], - "label": "code", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PanelNotFoundError.Unnamed", - "type": "Function", - "tags": [], - "label": "Constructor", - "description": [], - "signature": [ - "any" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - } - ], - "functions": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isContextMenuTriggerContext", - "type": "Function", - "tags": [], - "label": "isContextMenuTriggerContext", - "description": [], - "signature": [ - "(context: unknown) => context is ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableContext", - "text": "EmbeddableContext" - }, - "<", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.IEmbeddable", - "text": "IEmbeddable" - }, - "<", - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.EmbeddableInput", - "text": "EmbeddableInput" - }, - ", ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableOutput", - "text": "EmbeddableOutput" - }, - ", any>>" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isContextMenuTriggerContext.$1", - "type": "Unknown", - "tags": [], - "label": "context", - "description": [], - "signature": [ - "unknown" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.isMultiValueClickTriggerContext", - "type": "Function", - "tags": [], - "label": "isMultiValueClickTriggerContext", - "description": [], - "signature": [ - "(context: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - }, - ") => context is ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.MultiValueClickContext", - "text": "MultiValueClickContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isMultiValueClickTriggerContext.$1", - "type": "CompoundType", - "tags": [], - "label": "context", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.isRangeSelectTriggerContext", - "type": "Function", - "tags": [], - "label": "isRangeSelectTriggerContext", - "description": [], - "signature": [ - "(context: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - }, - ") => context is ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.RangeSelectContext", - "text": "RangeSelectContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isRangeSelectTriggerContext.$1", - "type": "CompoundType", - "tags": [], - "label": "context", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.isRowClickTriggerContext", - "type": "Function", - "tags": [], - "label": "isRowClickTriggerContext", - "description": [], - "signature": [ - "(context: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - }, - ") => context is ", - { - "pluginId": "@kbn/ui-actions-browser", - "scope": "common", - "docId": "kibKbnUiActionsBrowserPluginApi", - "section": "def-common.RowClickContext", - "text": "RowClickContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isRowClickTriggerContext.$1", - "type": "CompoundType", - "tags": [], - "label": "context", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.isValueClickTriggerContext", - "type": "Function", - "tags": [], - "label": "isValueClickTriggerContext", - "description": [], - "signature": [ - "(context: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - }, - ") => context is ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ValueClickContext", - "text": "ValueClickContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.isValueClickTriggerContext.$1", - "type": "CompoundType", - "tags": [], - "label": "context", - "description": [], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ChartActionContext", - "text": "ChartActionContext" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.openAddFromLibraryFlyout", - "type": "Function", - "tags": [], - "label": "openAddFromLibraryFlyout", - "description": [], - "signature": [ - "({ container, onClose, }: { container: ", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.CanAddNewPanel", - "text": "CanAddNewPanel" - }, - "; onClose?: (() => void) | undefined; }) => ", - { - "pluginId": "@kbn/core-mount-utils-browser", - "scope": "public", - "docId": "kibKbnCoreMountUtilsBrowserPluginApi", - "section": "def-public.OverlayRef", - "text": "OverlayRef" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.openAddFromLibraryFlyout.$1", - "type": "Object", - "tags": [], - "label": "{\n container,\n onClose,\n}", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.openAddFromLibraryFlyout.$1.container", - "type": "Object", - "tags": [], - "label": "container", - "description": [], - "signature": [ - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.CanAddNewPanel", - "text": "CanAddNewPanel" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.openAddFromLibraryFlyout.$1.onClose", - "type": "Function", - "tags": [], - "label": "onClose", - "description": [], - "signature": [ - "(() => void) | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - } - ] - } - ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer", - "type": "Function", - "tags": [], - "label": "ReactEmbeddableRenderer", - "description": [ - "\nRenders a component from the React Embeddable registry into a Presentation Panel.\n\nTODO: Rename this to simply `Embeddable` when the legacy Embeddable system is removed." - ], - "signature": [ - " = ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.DefaultEmbeddableApi", - "text": "DefaultEmbeddableApi" - }, - ", ParentApi extends ", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.HasSerializedChildState", - "text": "HasSerializedChildState" - }, - " = ", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.HasSerializedChildState", - "text": "HasSerializedChildState" - }, - ">({ type, maybeId, getParentApi, panelProps, onAnyStateChange, onApiAvailable, hidePanelChrome, }: { type: string; maybeId?: string | undefined; getParentApi: () => ParentApi; onApiAvailable?: ((api: Api) => void) | undefined; panelProps?: Pick<", - { - "pluginId": "presentationPanel", - "scope": "public", - "docId": "kibPresentationPanelPluginApi", - "section": "def-public.PresentationPanelProps", - "text": "PresentationPanelProps" - }, - ", \"showShadow\" | \"showBorder\" | \"showBadges\" | \"showNotifications\" | \"hideLoader\" | \"hideHeader\" | \"hideInspector\" | \"getActions\" | \"setDragHandles\"> | undefined; hidePanelChrome?: boolean | undefined; onAnyStateChange?: ((state: ", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.SerializedPanelState", - "text": "SerializedPanelState" - }, - ") => void) | undefined; }) => React.JSX.Element" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1", - "type": "Object", - "tags": [], - "label": "{\n type,\n maybeId,\n getParentApi,\n panelProps,\n onAnyStateChange,\n onApiAvailable,\n hidePanelChrome,\n}", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.maybeId", - "type": "string", - "tags": [], - "label": "maybeId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.getParentApi", - "type": "Function", - "tags": [], - "label": "getParentApi", - "description": [], - "signature": [ - "() => ParentApi" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.onApiAvailable", - "type": "Function", - "tags": [], - "label": "onApiAvailable", - "description": [], - "signature": [ - "((api: Api) => void) | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.onApiAvailable.$1", - "type": "Uncategorized", - "tags": [], - "label": "api", - "description": [], - "signature": [ - "Api" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.panelProps", - "type": "Object", - "tags": [], - "label": "panelProps", - "description": [], - "signature": [ - "Pick<", - { - "pluginId": "presentationPanel", - "scope": "public", - "docId": "kibPresentationPanelPluginApi", - "section": "def-public.PresentationPanelProps", - "text": "PresentationPanelProps" - }, - ", \"showShadow\" | \"showBorder\" | \"showBadges\" | \"showNotifications\" | \"hideLoader\" | \"hideHeader\" | \"hideInspector\" | \"getActions\" | \"setDragHandles\"> | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.hidePanelChrome", - "type": "CompoundType", - "tags": [], - "label": "hidePanelChrome", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.onAnyStateChange", - "type": "Function", - "tags": [], - "label": "onAnyStateChange", - "description": [ - "\nThis `onAnyStateChange` callback allows the parent to keep track of the state of the embeddable\nas it changes. This is **not** expected to change over the lifetime of the component." - ], - "signature": [ - "((state: ", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.SerializedPanelState", - "text": "SerializedPanelState" - }, - ") => void) | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.ReactEmbeddableRenderer.$1.onAnyStateChange.$1", - "type": "Object", - "tags": [], - "label": "state", - "description": [], - "signature": [ - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.SerializedPanelState", - "text": "SerializedPanelState" - }, - "" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - } - ] + "children": [], + "returnComment": [] } ], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.useAddFromLibraryTypes", - "type": "Function", - "tags": [], - "label": "useAddFromLibraryTypes", - "description": [], - "signature": [ - "() => ", - { - "pluginId": "savedObjectsFinder", - "scope": "public", - "docId": "kibSavedObjectsFinderPluginApi", - "section": "def-public.SavedObjectMetaData", - "text": "SavedObjectMetaData" - }, - "<", - { - "pluginId": "savedObjectsFinder", - "scope": "common", - "docId": "kibSavedObjectsFinderPluginApi", - "section": "def-common.FinderAttributes", - "text": "FinderAttributes" - }, - ">[]" - ], - "path": "src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - } - ], - "interfaces": [ - { - "parentPluginId": "embeddable", - "id": "def-public.DefaultEmbeddableApi", - "type": "Interface", - "tags": [], - "label": "DefaultEmbeddableApi", - "description": [ - "\nThe default embeddable API that all Embeddables must implement.\n\nBefore adding anything to this interface, please be certain that it belongs in *every* embeddable." - ], - "signature": [ - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.DefaultEmbeddableApi", - "text": "DefaultEmbeddableApi" - }, - " extends ", - "DefaultPresentationPanelApi", - ",", - { - "pluginId": "@kbn/presentation-publishing", - "scope": "public", - "docId": "kibKbnPresentationPublishingPluginApi", - "section": "def-public.HasType", - "text": "HasType" - }, - ",", - { - "pluginId": "@kbn/presentation-publishing", - "scope": "public", - "docId": "kibKbnPresentationPublishingPluginApi", - "section": "def-public.PublishesPhaseEvents", - "text": "PublishesPhaseEvents" - }, - ",Partial<", - { - "pluginId": "@kbn/presentation-publishing", - "scope": "public", - "docId": "kibKbnPresentationPublishingPluginApi", - "section": "def-public.PublishesUnsavedChanges", - "text": "PublishesUnsavedChanges" - }, - ">,", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.HasSerializableState", - "text": "HasSerializableState" - }, - ",", - { - "pluginId": "@kbn/presentation-containers", - "scope": "public", - "docId": "kibKbnPresentationContainersPluginApi", - "section": "def-public.HasSnapshottableState", - "text": "HasSnapshottableState" - }, - "" - ], - "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], "initialIsOpen": false - }, + } + ], + "functions": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableContext", - "type": "Interface", - "tags": [ - "deprecated" - ], - "label": "EmbeddableContext", + "id": "def-public.isMultiValueClickTriggerContext", + "type": "Function", + "tags": [], + "label": "isMultiValueClickTriggerContext", "description": [], "signature": [ + "(context: ", { "pluginId": "embeddable", "scope": "public", "docId": "kibEmbeddablePluginApi", - "section": "def-public.EmbeddableContext", - "text": "EmbeddableContext" + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" }, - "" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": true, - "trackAdoption": false, - "references": [], - "children": [ + ") => context is ", { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableContext.embeddable", - "type": "Uncategorized", - "tags": [], - "label": "embeddable", - "description": [], - "signature": [ - "T" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.MultiValueClickContext", + "text": "MultiValueClickContext" } ], - "initialIsOpen": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState", - "type": "Interface", - "tags": [], - "label": "EmbeddableEditorState", - "description": [ - "\nA state package that contains information an editor will need to create or edit an embeddable then redirect back." - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState.originatingApp", - "type": "string", - "tags": [], - "label": "originatingApp", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState.originatingPath", - "type": "string", - "tags": [], - "label": "originatingPath", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState.embeddableId", - "type": "string", - "tags": [], - "label": "embeddableId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState.valueInput", - "type": "Uncategorized", + "id": "def-public.isMultiValueClickTriggerContext.$1", + "type": "CompoundType", "tags": [], - "label": "valueInput", + "label": "context", "description": [], "signature": [ - "object | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableEditorState.searchSessionId", - "type": "string", - "tags": [], - "label": "searchSessionId", - "description": [ - "\nPass current search session id when navigating to an editor,\nEditors could use it continue previous search session" - ], - "signature": [ - "string | undefined" + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" + } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, - "trackAdoption": false + "trackAdoption": false, + "isRequired": true } ], + "returnComment": [], "initialIsOpen": false }, { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput", - "type": "Interface", + "id": "def-public.isRangeSelectTriggerContext", + "type": "Function", "tags": [], - "label": "EmbeddableOutput", + "label": "isRangeSelectTriggerContext", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.loading", - "type": "CompoundType", - "tags": [], - "label": "loading", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.rendered", - "type": "CompoundType", - "tags": [], - "label": "rendered", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.error", - "type": "CompoundType", - "tags": [], - "label": "error", - "description": [], - "signature": [ - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ErrorLike", - "text": "ErrorLike" - }, - " | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.editUrl", - "type": "string", - "tags": [], - "label": "editUrl", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.editApp", - "type": "string", - "tags": [], - "label": "editApp", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.editPath", - "type": "string", - "tags": [], - "label": "editPath", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.defaultTitle", - "type": "string", - "tags": [], - "label": "defaultTitle", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.defaultDescription", - "type": "string", - "tags": [], - "label": "defaultDescription", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.title", - "type": "string", - "tags": [], - "label": "title", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.editable", - "type": "CompoundType", - "tags": [], - "label": "editable", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, + "signature": [ + "(context: ", { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.inlineEditable", - "type": "CompoundType", - "tags": [], - "label": "inlineEditable", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" }, + ") => context is ", { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.editableWithExplicitInput", - "type": "CompoundType", - "tags": [], - "label": "editableWithExplicitInput", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.RangeSelectContext", + "text": "RangeSelectContext" + } + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddableOutput.savedObjectId", - "type": "string", + "id": "def-public.isRangeSelectTriggerContext.$1", + "type": "CompoundType", "tags": [], - "label": "savedObjectId", + "label": "context", "description": [], "signature": [ - "string | undefined" + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" + } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, - "trackAdoption": false + "trackAdoption": false, + "isRequired": true } ], + "returnComment": [], "initialIsOpen": false }, { "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState", - "type": "Interface", + "id": "def-public.isRowClickTriggerContext", + "type": "Function", "tags": [], - "label": "EmbeddablePackageState", - "description": [ - "\nA state package that contains all fields necessary to create or update an embeddable by reference or by value in a container." + "label": "isRowClickTriggerContext", + "description": [], + "signature": [ + "(context: ", + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" + }, + ") => context is ", + { + "pluginId": "@kbn/ui-actions-browser", + "scope": "common", + "docId": "kibKbnUiActionsBrowserPluginApi", + "section": "def-common.RowClickContext", + "text": "RowClickContext" + } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState.type", - "type": "string", + "id": "def-public.isRowClickTriggerContext.$1", + "type": "CompoundType", "tags": [], - "label": "type", + "label": "context", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState.input", - "type": "Uncategorized", - "tags": [], - "label": "input", - "description": [ - "\nFor react embeddables, this input must be runtime state." - ], "signature": [ - "object" + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" + } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, - "trackAdoption": false - }, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.isValueClickTriggerContext", + "type": "Function", + "tags": [], + "label": "isValueClickTriggerContext", + "description": [], + "signature": [ + "(context: ", { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState.embeddableId", - "type": "string", - "tags": [], - "label": "embeddableId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" }, + ") => context is ", { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState.size", - "type": "Object", - "tags": [], - "label": "size", - "description": [], - "signature": [ - "{ width?: number | undefined; height?: number | undefined; } | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", - "deprecated": false, - "trackAdoption": false - }, + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ValueClickContext", + "text": "ValueClickContext" + } + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EmbeddablePackageState.searchSessionId", - "type": "string", + "id": "def-public.isValueClickTriggerContext.$1", + "type": "CompoundType", "tags": [], - "label": "searchSessionId", - "description": [ - "\nPass current search session id when navigating to an editor,\nEditors could use it continue previous search session" - ], + "label": "context", + "description": [], "signature": [ - "string | undefined" + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.ChartActionContext", + "text": "ChartActionContext" + } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", "deprecated": false, - "trackAdoption": false + "trackAdoption": false, + "isRequired": true } ], + "returnComment": [], "initialIsOpen": false }, { "parentPluginId": "embeddable", - "id": "def-public.EnhancementRegistryDefinition", - "type": "Interface", + "id": "def-public.openAddFromLibraryFlyout", + "type": "Function", "tags": [], - "label": "EnhancementRegistryDefinition", + "label": "openAddFromLibraryFlyout", "description": [], "signature": [ + "({ container, onClose, }: { container: ", { - "pluginId": "embeddable", + "pluginId": "@kbn/presentation-containers", "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.EnhancementRegistryDefinition", - "text": "EnhancementRegistryDefinition" + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.CanAddNewPanel", + "text": "CanAddNewPanel" }, - "

extends Partial<", + "; onClose?: (() => void) | undefined; }) => ", { - "pluginId": "kibanaUtils", - "scope": "common", - "docId": "kibKibanaUtilsPluginApi", - "section": "def-common.PersistableState", - "text": "PersistableState" - }, - "

>" + "pluginId": "@kbn/core-mount-utils-browser", + "scope": "public", + "docId": "kibKbnCoreMountUtilsBrowserPluginApi", + "section": "def-public.OverlayRef", + "text": "OverlayRef" + } ], - "path": "src/platform/plugins/shared/embeddable/public/enhancements/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.EnhancementRegistryDefinition.id", - "type": "string", + "id": "def-public.openAddFromLibraryFlyout.$1", + "type": "Object", "tags": [], - "label": "id", + "label": "{\n container,\n onClose,\n}", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/enhancements/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", "deprecated": false, - "trackAdoption": false + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.openAddFromLibraryFlyout.$1.container", + "type": "Object", + "tags": [], + "label": "container", + "description": [], + "signature": [ + { + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.CanAddNewPanel", + "text": "CanAddNewPanel" + } + ], + "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.openAddFromLibraryFlyout.$1.onClose", + "type": "Function", + "tags": [], + "label": "onClose", + "description": [], + "signature": [ + "(() => void) | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/add_from_library/open_add_from_library_flyout.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [] + } + ] } ], + "returnComment": [], "initialIsOpen": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable", - "type": "Interface", + "id": "def-public.ReactEmbeddableRenderer", + "type": "Function", "tags": [], - "label": "IEmbeddable", - "description": [], + "label": "ReactEmbeddableRenderer", + "description": [ + "\nRenders a component from the React Embeddable registry into a Presentation Panel.\n\nTODO: Rename this to simply `Embeddable` when the legacy Embeddable system is removed." + ], "signature": [ + "" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ + " = ", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.type", - "type": "string", - "tags": [], - "label": "type", - "description": [ - "\nThe type of embeddable, this is what will be used to take a serialized\nembeddable and find the correct factory for which to create an instance of it." - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.DefaultEmbeddableApi", + "text": "DefaultEmbeddableApi" }, + ", ParentApi extends ", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.id", - "type": "string", - "tags": [], - "label": "id", - "description": [ - "\nA unique identifier for this embeddable. Mainly only used by containers to map their\nPanel States to a child embeddable instance." - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.HasSerializedChildState", + "text": "HasSerializedChildState" }, + " = ", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.deferEmbeddableLoad", - "type": "boolean", - "tags": [], - "label": "deferEmbeddableLoad", - "description": [ - "\nIf set to true, defer embeddable load tells the container that this embeddable\ntype isn't completely loaded when the constructor returns. This embeddable\nwill have to manually call setChildLoaded on its parent when all of its initial\noutput is finalized. For instance, after loading a saved object." - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.HasSerializedChildState", + "text": "HasSerializedChildState" }, + ">({ type, maybeId, getParentApi, panelProps, onAnyStateChange, onApiAvailable, hidePanelChrome, }: { type: string; maybeId?: string | undefined; getParentApi: () => ParentApi; onApiAvailable?: ((api: Api) => void) | undefined; panelProps?: Pick<", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.runtimeId", - "type": "number", - "tags": [], - "label": "runtimeId", - "description": [ - "\nUnique ID an embeddable is assigned each time it is initialized. This ID\nis different for different instances of the same embeddable. For example,\nif the same dashboard is rendered twice on the screen, all embeddable\ninstances will have a unique `runtimeId`." - ], - "signature": [ - "number | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "presentationPanel", + "scope": "public", + "docId": "kibPresentationPanelPluginApi", + "section": "def-public.PresentationPanelProps", + "text": "PresentationPanelProps" }, + ", \"showShadow\" | \"showBorder\" | \"showBadges\" | \"showNotifications\" | \"hideLoader\" | \"hideHeader\" | \"hideInspector\" | \"getActions\" | \"setDragHandles\"> | undefined; hidePanelChrome?: boolean | undefined; onAnyStateChange?: ((state: ", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.enhancements", - "type": "Uncategorized", - "tags": [], - "label": "enhancements", - "description": [ - "\nExtra abilities added to Embeddable by `*_enhanced` plugins." - ], - "signature": [ - "object | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.SerializedPanelState", + "text": "SerializedPanelState" }, + ") => void) | undefined; }) => React.JSX.Element" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.fatalError", + "id": "def-public.ReactEmbeddableRenderer.$1", "type": "Object", "tags": [], - "label": "fatalError", - "description": [ - "\nIf this embeddable has encountered a fatal error, that error will be stored here" - ], - "signature": [ - "Error | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.reportsEmbeddableLoad", - "type": "Function", - "tags": [], - "label": "reportsEmbeddableLoad", - "description": [ - "\nThis method returns false by default.\nIt should be set to true for any embeddable type that utilizes the `loading` and `rendered`\noutput variables to notify a container of their loading progress. If set to false, a container should assume\nthe embeddable is loaded immediately." - ], - "signature": [ - "() => boolean" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getInput", - "type": "Function", - "tags": [], - "label": "getInput", - "description": [ - "\nGet the input used to instantiate this embeddable. The input is a serialized representation of\nthis embeddable instance and can be used to clone or re-instantiate it. Input state:\n\n- Can be updated externally\n- Can change multiple times for a single embeddable instance.\n\nExamples: title, pie slice colors, custom search columns and sort order." - ], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getExplicitInput", - "type": "Function", - "tags": [], - "label": "getExplicitInput", - "description": [ - "\nBecause embeddables can inherit input from their parents, they also need a way to separate their own\ninput from input which is inherited. If the embeddable does not have a parent, getExplicitInput\nand getInput should return the same." - ], - "signature": [ - "() => Readonly>" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getPersistableInput", - "type": "Function", - "tags": [], - "label": "getPersistableInput", - "description": [ - "\nSome embeddables contain input that should not be persisted anywhere beyond their own state. This method\nis a way for containers to separate input to store from input which can be ephemeral. In most cases, this\nwill be the same as getExplicitInput" - ], - "signature": [ - "() => Readonly>" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getOutput", - "type": "Function", - "tags": [], - "label": "getOutput", - "description": [ - "\nOutput state is:\n\n- State that should not change once the embeddable is instantiated, or\n- State that is derived from the input state, or\n- State that only the embeddable instance itself knows about, or the factory.\n\nExamples: editUrl, title taken from a saved object, if your input state was first name and\n last name, your output state could be greeting." - ], - "signature": [ - "() => Readonly" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.updateInput", - "type": "Function", - "tags": [], - "label": "updateInput", - "description": [ - "\nUpdates input state with the given changes." - ], - "signature": [ - "(changes: Partial) => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "label": "{\n type,\n maybeId,\n getParentApi,\n panelProps,\n onAnyStateChange,\n onApiAvailable,\n hidePanelChrome,\n}", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.updateInput.$1", + "id": "def-public.ReactEmbeddableRenderer.$1.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.maybeId", + "type": "string", + "tags": [], + "label": "maybeId", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.getParentApi", + "type": "Function", + "tags": [], + "label": "getParentApi", + "description": [], + "signature": [ + "() => ParentApi" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.onApiAvailable", + "type": "Function", + "tags": [], + "label": "onApiAvailable", + "description": [], + "signature": [ + "((api: Api) => void) | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.onApiAvailable.$1", + "type": "Uncategorized", + "tags": [], + "label": "api", + "description": [], + "signature": [ + "Api" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.panelProps", "type": "Object", "tags": [], - "label": "changes", + "label": "panelProps", "description": [], "signature": [ - "Partial" + "Pick<", + { + "pluginId": "presentationPanel", + "scope": "public", + "docId": "kibPresentationPanelPluginApi", + "section": "def-public.PresentationPanelProps", + "text": "PresentationPanelProps" + }, + ", \"showShadow\" | \"showBorder\" | \"showBadges\" | \"showNotifications\" | \"hideLoader\" | \"hideHeader\" | \"hideInspector\" | \"getActions\" | \"setDragHandles\"> | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.updateOutput", - "type": "Function", - "tags": [], - "label": "updateOutput", - "description": [ - "\nUpdates output state with the given changes." - ], - "signature": [ - "(changes: Partial) => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ + "trackAdoption": false + }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.updateOutput.$1", - "type": "Object", + "id": "def-public.ReactEmbeddableRenderer.$1.hidePanelChrome", + "type": "CompoundType", "tags": [], - "label": "changes", + "label": "hidePanelChrome", "description": [], "signature": [ - "Partial" + "boolean | undefined" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.onAnyStateChange", + "type": "Function", + "tags": [], + "label": "onAnyStateChange", + "description": [ + "\nThis `onAnyStateChange` callback allows the parent to keep track of the state of the embeddable\nas it changes. This is **not** expected to change over the lifetime of the component." + ], + "signature": [ + "((state: ", + { + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.SerializedPanelState", + "text": "SerializedPanelState" + }, + ") => void) | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", "deprecated": false, "trackAdoption": false, - "isRequired": true + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.ReactEmbeddableRenderer.$1.onAnyStateChange.$1", + "type": "Object", + "tags": [], + "label": "state", + "description": [], + "signature": [ + { + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.SerializedPanelState", + "text": "SerializedPanelState" + }, + "" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/react_embeddable_renderer.tsx", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [] } - ], - "returnComment": [] + ] + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.useAddFromLibraryTypes", + "type": "Function", + "tags": [], + "label": "useAddFromLibraryTypes", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "savedObjectsFinder", + "scope": "public", + "docId": "kibSavedObjectsFinderPluginApi", + "section": "def-public.SavedObjectMetaData", + "text": "SavedObjectMetaData" }, + "<", { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getInput$", - "type": "Function", - "tags": [], - "label": "getInput$", - "description": [ - "\nReturns an observable which will be notified when input state changes." - ], - "signature": [ - "() => Readonly<", - "Observable", - ">" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "pluginId": "savedObjectsFinder", + "scope": "common", + "docId": "kibSavedObjectsFinderPluginApi", + "section": "def-common.FinderAttributes", + "text": "FinderAttributes" + }, + ">[]" + ], + "path": "src/platform/plugins/shared/embeddable/public/add_from_library/registry.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + } + ], + "interfaces": [ + { + "parentPluginId": "embeddable", + "id": "def-public.DefaultEmbeddableApi", + "type": "Interface", + "tags": [], + "label": "DefaultEmbeddableApi", + "description": [ + "\nThe default embeddable API that all Embeddables must implement.\n\nBefore adding anything to this interface, please be certain that it belongs in *every* embeddable." + ], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.DefaultEmbeddableApi", + "text": "DefaultEmbeddableApi" + }, + " extends ", + "DefaultPresentationPanelApi", + ",", + { + "pluginId": "@kbn/presentation-publishing", + "scope": "public", + "docId": "kibKbnPresentationPublishingPluginApi", + "section": "def-public.HasType", + "text": "HasType" + }, + ",", + { + "pluginId": "@kbn/presentation-publishing", + "scope": "public", + "docId": "kibKbnPresentationPublishingPluginApi", + "section": "def-public.PublishesPhaseEvents", + "text": "PublishesPhaseEvents" + }, + ",Partial<", + { + "pluginId": "@kbn/presentation-publishing", + "scope": "public", + "docId": "kibKbnPresentationPublishingPluginApi", + "section": "def-public.PublishesUnsavedChanges", + "text": "PublishesUnsavedChanges" }, + ">,", + { + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.HasSerializableState", + "text": "HasSerializableState" + }, + ",", + { + "pluginId": "@kbn/presentation-containers", + "scope": "public", + "docId": "kibKbnPresentationContainersPluginApi", + "section": "def-public.HasSnapshottableState", + "text": "HasSnapshottableState" + }, + "" + ], + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/types.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddableEditorState", + "type": "Interface", + "tags": [], + "label": "EmbeddableEditorState", + "description": [ + "\nA state package that contains information an editor will need to create or edit an embeddable then redirect back." + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getOutput$", - "type": "Function", + "id": "def-public.EmbeddableEditorState.originatingApp", + "type": "string", "tags": [], - "label": "getOutput$", - "description": [ - "\nReturns an observable which will be notified when output state changes." - ], - "signature": [ - "() => Readonly<", - "Observable", - ">" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "label": "originatingApp", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getTitle", - "type": "Function", + "id": "def-public.EmbeddableEditorState.originatingPath", + "type": "string", "tags": [], - "label": "getTitle", - "description": [ - "\nReturns the title of this embeddable." - ], + "label": "originatingPath", + "description": [], "signature": [ - "() => string | undefined" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getDescription", - "type": "Function", + "id": "def-public.EmbeddableEditorState.embeddableId", + "type": "string", "tags": [], - "label": "getDescription", - "description": [ - "\nReturns the description of this embeddable." - ], + "label": "embeddableId", + "description": [], "signature": [ - "() => string | undefined" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.render", - "type": "Function", + "id": "def-public.EmbeddableEditorState.valueInput", + "type": "Uncategorized", "tags": [], - "label": "render", - "description": [ - "\nRenders the embeddable at the given node." - ], + "label": "valueInput", + "description": [], "signature": [ - "(domNode: HTMLElement | Element) => void | N" + "object | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.render.$1", - "type": "CompoundType", - "tags": [], - "label": "domNode", - "description": [], - "signature": [ - "HTMLElement | Element" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [ - "A React node to mount or void in the case when rendering is done without React." - ] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.catchError", - "type": "Function", + "id": "def-public.EmbeddableEditorState.searchSessionId", + "type": "string", "tags": [], - "label": "catchError", + "label": "searchSessionId", "description": [ - "\nRenders a custom embeddable error at the given node." + "\nPass current search session id when navigating to an editor,\nEditors could use it continue previous search session" ], "signature": [ - "((error: ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ErrorLike", - "text": "ErrorLike" - }, - ", domNode: HTMLElement | Element) => N | (() => void)) | undefined" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.catchError.$1", - "type": "CompoundType", - "tags": [], - "label": "error", - "description": [], - "signature": [ - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ErrorLike", - "text": "ErrorLike" - } - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - }, - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.catchError.$2", - "type": "CompoundType", - "tags": [], - "label": "domNode", - "description": [], - "signature": [ - "HTMLElement | Element" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [ - "A React node or callback that will be called on error destroy." - ] - }, + "trackAdoption": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EmbeddablePackageState", + "type": "Interface", + "tags": [], + "label": "EmbeddablePackageState", + "description": [ + "\nA state package that contains all fields necessary to create or update an embeddable by reference or by value in a container." + ], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.reload", - "type": "Function", + "id": "def-public.EmbeddablePackageState.type", + "type": "string", "tags": [], - "label": "reload", - "description": [ - "\nReload the embeddable so output and rendering is up to date. Especially relevant\nif the embeddable takes relative time as input (e.g. now to now-15)" - ], - "signature": [ - "() => void" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "label": "type", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getInspectorAdapters", - "type": "Function", - "tags": [ - "return" - ], - "label": "getInspectorAdapters", + "id": "def-public.EmbeddablePackageState.input", + "type": "Uncategorized", + "tags": [], + "label": "input", "description": [ - "\nAn embeddable can return inspector adapters if it wants the inspector to be\navailable via the context menu of that panel." + "\nFor react embeddables, this input must be runtime state." ], "signature": [ - "() => ", - { - "pluginId": "inspector", - "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" - }, - " | undefined" + "object" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [ - "Inspector adapters that will be used to open an inspector for." - ] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.destroy", - "type": "Function", + "id": "def-public.EmbeddablePackageState.embeddableId", + "type": "string", "tags": [], - "label": "destroy", - "description": [ - "\nCleans up subscriptions, destroy nodes mounted from calls to render." - ], + "label": "embeddableId", + "description": [], "signature": [ - "() => void" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.supportedTriggers", - "type": "Function", + "id": "def-public.EmbeddablePackageState.size", + "type": "Object", "tags": [], - "label": "supportedTriggers", - "description": [ - "\nList of triggers that this embeddable will execute." - ], + "label": "size", + "description": [], "signature": [ - "() => string[]" + "{ width?: number | undefined; height?: number | undefined; } | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getExplicitInputIsEqual", - "type": "Function", + "id": "def-public.EmbeddablePackageState.searchSessionId", + "type": "string", "tags": [], - "label": "getExplicitInputIsEqual", + "label": "searchSessionId", "description": [ - "\nUsed to diff explicit embeddable input" + "\nPass current search session id when navigating to an editor,\nEditors could use it continue previous search session" ], "signature": [ - "(lastInput: Partial) => Promise" + "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.getExplicitInputIsEqual.$1", - "type": "Object", - "tags": [], - "label": "lastInput", - "description": [], - "signature": [ - "Partial" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] + "trackAdoption": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.EnhancementRegistryDefinition", + "type": "Interface", + "tags": [], + "label": "EnhancementRegistryDefinition", + "description": [], + "signature": [ + { + "pluginId": "embeddable", + "scope": "public", + "docId": "kibEmbeddablePluginApi", + "section": "def-public.EnhancementRegistryDefinition", + "text": "EnhancementRegistryDefinition" + }, + "

extends Partial<", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.PersistableState", + "text": "PersistableState" }, + "

>" + ], + "path": "src/platform/plugins/shared/embeddable/public/enhancements/types.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ { "parentPluginId": "embeddable", - "id": "def-public.IEmbeddable.untilInitializationFinished", - "type": "Function", + "id": "def-public.EnhancementRegistryDefinition.id", + "type": "string", "tags": [], - "label": "untilInitializationFinished", + "label": "id", "description": [], - "signature": [ - "() => Promise" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts", + "path": "src/platform/plugins/shared/embeddable/public/enhancements/types.ts", "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] + "trackAdoption": false } ], "initialIsOpen": false @@ -3650,45 +1915,6 @@ "trackAdoption": false, "initialIsOpen": false }, - { - "parentPluginId": "embeddable", - "id": "def-public.EmbeddableInput", - "type": "Type", - "tags": [], - "label": "EmbeddableInput", - "description": [], - "signature": [ - "{ version?: string | undefined; viewMode?: ", - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.ViewMode", - "text": "ViewMode" - }, - " | undefined; title?: string | undefined; description?: string | undefined; id: string; lastReloadRequestTime?: number | undefined; hidePanelTitles?: boolean | undefined; enhancements?: ", - { - "pluginId": "@kbn/utility-types", - "scope": "common", - "docId": "kibKbnUtilityTypesPluginApi", - "section": "def-common.SerializableRecord", - "text": "SerializableRecord" - }, - " | undefined; disabledActions?: string[] | undefined; disableTriggers?: boolean | undefined; searchSessionId?: string | undefined; syncColors?: boolean | undefined; syncCursor?: boolean | undefined; syncTooltips?: boolean | undefined; executionContext?: ", - { - "pluginId": "@kbn/core-execution-context-common", - "scope": "common", - "docId": "kibKbnCoreExecutionContextCommonPluginApi", - "section": "def-common.KibanaExecutionContext", - "text": "KibanaExecutionContext" - }, - " | undefined; }" - ], - "path": "src/platform/plugins/shared/embeddable/common/types.ts", - "deprecated": false, - "trackAdoption": false, - "initialIsOpen": false - }, { "parentPluginId": "embeddable", "id": "def-public.MULTI_VALUE_CLICK_TRIGGER", diff --git a/api_docs/embeddable.mdx b/api_docs/embeddable.mdx index 3e9b866bdda76..dd9b7cec7a879 100644 --- a/api_docs/embeddable.mdx +++ b/api_docs/embeddable.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddable title: "embeddable" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddable plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddable'] --- import embeddableObj from './embeddable.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kib | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 280 | 0 | 222 | 2 | +| 179 | 0 | 152 | 2 | ## Client diff --git a/api_docs/embeddable_enhanced.mdx b/api_docs/embeddable_enhanced.mdx index 35381b36da1f5..4b77107a7928b 100644 --- a/api_docs/embeddable_enhanced.mdx +++ b/api_docs/embeddable_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddableEnhanced title: "embeddableEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddableEnhanced plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddableEnhanced'] --- import embeddableEnhancedObj from './embeddable_enhanced.devdocs.json'; diff --git a/api_docs/encrypted_saved_objects.mdx b/api_docs/encrypted_saved_objects.mdx index c4af8a80b8491..95c9eea08b9e1 100644 --- a/api_docs/encrypted_saved_objects.mdx +++ b/api_docs/encrypted_saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/encryptedSavedObjects title: "encryptedSavedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the encryptedSavedObjects plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'encryptedSavedObjects'] --- import encryptedSavedObjectsObj from './encrypted_saved_objects.devdocs.json'; diff --git a/api_docs/enterprise_search.mdx b/api_docs/enterprise_search.mdx index e00676e8f04d3..8bd08707b12c3 100644 --- a/api_docs/enterprise_search.mdx +++ b/api_docs/enterprise_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/enterpriseSearch title: "enterpriseSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the enterpriseSearch plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'enterpriseSearch'] --- import enterpriseSearchObj from './enterprise_search.devdocs.json'; diff --git a/api_docs/entities_data_access.mdx b/api_docs/entities_data_access.mdx index 670c4d6568c1c..e46289dd60a40 100644 --- a/api_docs/entities_data_access.mdx +++ b/api_docs/entities_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/entitiesDataAccess title: "entitiesDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the entitiesDataAccess plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'entitiesDataAccess'] --- import entitiesDataAccessObj from './entities_data_access.devdocs.json'; diff --git a/api_docs/entity_manager.mdx b/api_docs/entity_manager.mdx index 63d36f7041199..4809a1042a406 100644 --- a/api_docs/entity_manager.mdx +++ b/api_docs/entity_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/entityManager title: "entityManager" image: https://source.unsplash.com/400x175/?github description: API docs for the entityManager plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'entityManager'] --- import entityManagerObj from './entity_manager.devdocs.json'; diff --git a/api_docs/es_ui_shared.mdx b/api_docs/es_ui_shared.mdx index 6240557311c29..fddc409a194eb 100644 --- a/api_docs/es_ui_shared.mdx +++ b/api_docs/es_ui_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esUiShared title: "esUiShared" image: https://source.unsplash.com/400x175/?github description: API docs for the esUiShared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esUiShared'] --- import esUiSharedObj from './es_ui_shared.devdocs.json'; diff --git a/api_docs/esql.mdx b/api_docs/esql.mdx index ce777a92158dd..00f39d9a55ce6 100644 --- a/api_docs/esql.mdx +++ b/api_docs/esql.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esql title: "esql" image: https://source.unsplash.com/400x175/?github description: API docs for the esql plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esql'] --- import esqlObj from './esql.devdocs.json'; diff --git a/api_docs/esql_data_grid.mdx b/api_docs/esql_data_grid.mdx index 1eae8acb373b0..7afbff7bd289e 100644 --- a/api_docs/esql_data_grid.mdx +++ b/api_docs/esql_data_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esqlDataGrid title: "esqlDataGrid" image: https://source.unsplash.com/400x175/?github description: API docs for the esqlDataGrid plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esqlDataGrid'] --- import esqlDataGridObj from './esql_data_grid.devdocs.json'; diff --git a/api_docs/event_annotation.mdx b/api_docs/event_annotation.mdx index 4ece175f1f20e..38f77a55ecfa4 100644 --- a/api_docs/event_annotation.mdx +++ b/api_docs/event_annotation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventAnnotation title: "eventAnnotation" image: https://source.unsplash.com/400x175/?github description: API docs for the eventAnnotation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventAnnotation'] --- import eventAnnotationObj from './event_annotation.devdocs.json'; diff --git a/api_docs/event_annotation_listing.mdx b/api_docs/event_annotation_listing.mdx index 4057eb3b81ff2..430132f96832f 100644 --- a/api_docs/event_annotation_listing.mdx +++ b/api_docs/event_annotation_listing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventAnnotationListing title: "eventAnnotationListing" image: https://source.unsplash.com/400x175/?github description: API docs for the eventAnnotationListing plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventAnnotationListing'] --- import eventAnnotationListingObj from './event_annotation_listing.devdocs.json'; diff --git a/api_docs/event_log.mdx b/api_docs/event_log.mdx index 261c5328cc9b1..e6656be4a4d3d 100644 --- a/api_docs/event_log.mdx +++ b/api_docs/event_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventLog title: "eventLog" image: https://source.unsplash.com/400x175/?github description: API docs for the eventLog plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventLog'] --- import eventLogObj from './event_log.devdocs.json'; diff --git a/api_docs/exploratory_view.mdx b/api_docs/exploratory_view.mdx index 92eb8e80df613..81e4df188dfda 100644 --- a/api_docs/exploratory_view.mdx +++ b/api_docs/exploratory_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/exploratoryView title: "exploratoryView" image: https://source.unsplash.com/400x175/?github description: API docs for the exploratoryView plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'exploratoryView'] --- import exploratoryViewObj from './exploratory_view.devdocs.json'; diff --git a/api_docs/expression_error.mdx b/api_docs/expression_error.mdx index 487fac36b414d..d0aab17078aaf 100644 --- a/api_docs/expression_error.mdx +++ b/api_docs/expression_error.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionError title: "expressionError" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionError plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionError'] --- import expressionErrorObj from './expression_error.devdocs.json'; diff --git a/api_docs/expression_gauge.mdx b/api_docs/expression_gauge.mdx index e0361f1abeeb5..1cf6e072eb9ec 100644 --- a/api_docs/expression_gauge.mdx +++ b/api_docs/expression_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionGauge title: "expressionGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionGauge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionGauge'] --- import expressionGaugeObj from './expression_gauge.devdocs.json'; diff --git a/api_docs/expression_heatmap.mdx b/api_docs/expression_heatmap.mdx index dba7ed8d67738..58baec59f36bf 100644 --- a/api_docs/expression_heatmap.mdx +++ b/api_docs/expression_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionHeatmap title: "expressionHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionHeatmap plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionHeatmap'] --- import expressionHeatmapObj from './expression_heatmap.devdocs.json'; diff --git a/api_docs/expression_image.mdx b/api_docs/expression_image.mdx index 93b8fdff41f41..60074adf3444f 100644 --- a/api_docs/expression_image.mdx +++ b/api_docs/expression_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionImage title: "expressionImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionImage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionImage'] --- import expressionImageObj from './expression_image.devdocs.json'; diff --git a/api_docs/expression_legacy_metric_vis.mdx b/api_docs/expression_legacy_metric_vis.mdx index 5d06b12c59d99..55a4db94f0469 100644 --- a/api_docs/expression_legacy_metric_vis.mdx +++ b/api_docs/expression_legacy_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionLegacyMetricVis title: "expressionLegacyMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionLegacyMetricVis plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionLegacyMetricVis'] --- import expressionLegacyMetricVisObj from './expression_legacy_metric_vis.devdocs.json'; diff --git a/api_docs/expression_metric.mdx b/api_docs/expression_metric.mdx index a7893f3e278db..3d8bb99400928 100644 --- a/api_docs/expression_metric.mdx +++ b/api_docs/expression_metric.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetric title: "expressionMetric" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetric plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetric'] --- import expressionMetricObj from './expression_metric.devdocs.json'; diff --git a/api_docs/expression_metric_vis.mdx b/api_docs/expression_metric_vis.mdx index 5189e4abcca75..d482c93dda9f9 100644 --- a/api_docs/expression_metric_vis.mdx +++ b/api_docs/expression_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetricVis title: "expressionMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetricVis plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetricVis'] --- import expressionMetricVisObj from './expression_metric_vis.devdocs.json'; diff --git a/api_docs/expression_partition_vis.mdx b/api_docs/expression_partition_vis.mdx index f30d16bdc3d12..2beced89bf8be 100644 --- a/api_docs/expression_partition_vis.mdx +++ b/api_docs/expression_partition_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionPartitionVis title: "expressionPartitionVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionPartitionVis plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPartitionVis'] --- import expressionPartitionVisObj from './expression_partition_vis.devdocs.json'; diff --git a/api_docs/expression_repeat_image.mdx b/api_docs/expression_repeat_image.mdx index 798cc9cdd547b..c71b277d91fe6 100644 --- a/api_docs/expression_repeat_image.mdx +++ b/api_docs/expression_repeat_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRepeatImage title: "expressionRepeatImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRepeatImage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRepeatImage'] --- import expressionRepeatImageObj from './expression_repeat_image.devdocs.json'; diff --git a/api_docs/expression_reveal_image.mdx b/api_docs/expression_reveal_image.mdx index e3d74c038afb9..5830e89e2209b 100644 --- a/api_docs/expression_reveal_image.mdx +++ b/api_docs/expression_reveal_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRevealImage title: "expressionRevealImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRevealImage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRevealImage'] --- import expressionRevealImageObj from './expression_reveal_image.devdocs.json'; diff --git a/api_docs/expression_shape.mdx b/api_docs/expression_shape.mdx index d071944004d58..1c99608ff39e8 100644 --- a/api_docs/expression_shape.mdx +++ b/api_docs/expression_shape.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionShape title: "expressionShape" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionShape plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionShape'] --- import expressionShapeObj from './expression_shape.devdocs.json'; diff --git a/api_docs/expression_tagcloud.mdx b/api_docs/expression_tagcloud.mdx index 5144cbb0583d8..8014003b51ad4 100644 --- a/api_docs/expression_tagcloud.mdx +++ b/api_docs/expression_tagcloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionTagcloud title: "expressionTagcloud" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionTagcloud plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionTagcloud'] --- import expressionTagcloudObj from './expression_tagcloud.devdocs.json'; diff --git a/api_docs/expression_x_y.mdx b/api_docs/expression_x_y.mdx index 8b8348540e479..30b1987ac2abc 100644 --- a/api_docs/expression_x_y.mdx +++ b/api_docs/expression_x_y.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionXY title: "expressionXY" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionXY plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionXY'] --- import expressionXYObj from './expression_x_y.devdocs.json'; diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index 5a9eb66c8e44f..457d3ea6975c5 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressions title: "expressions" image: https://source.unsplash.com/400x175/?github description: API docs for the expressions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressions'] --- import expressionsObj from './expressions.devdocs.json'; diff --git a/api_docs/features.mdx b/api_docs/features.mdx index 8cc73b3e589f9..19c4ce5e612a7 100644 --- a/api_docs/features.mdx +++ b/api_docs/features.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/features title: "features" image: https://source.unsplash.com/400x175/?github description: API docs for the features plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'features'] --- import featuresObj from './features.devdocs.json'; diff --git a/api_docs/field_formats.mdx b/api_docs/field_formats.mdx index 578e40ac4d481..639d0ac8ce404 100644 --- a/api_docs/field_formats.mdx +++ b/api_docs/field_formats.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fieldFormats title: "fieldFormats" image: https://source.unsplash.com/400x175/?github description: API docs for the fieldFormats plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldFormats'] --- import fieldFormatsObj from './field_formats.devdocs.json'; diff --git a/api_docs/fields_metadata.mdx b/api_docs/fields_metadata.mdx index 05bebf90e1dd8..b91bf548d803b 100644 --- a/api_docs/fields_metadata.mdx +++ b/api_docs/fields_metadata.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fieldsMetadata title: "fieldsMetadata" image: https://source.unsplash.com/400x175/?github description: API docs for the fieldsMetadata plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldsMetadata'] --- import fieldsMetadataObj from './fields_metadata.devdocs.json'; diff --git a/api_docs/file_upload.mdx b/api_docs/file_upload.mdx index 2ab826886204b..b6cc276745024 100644 --- a/api_docs/file_upload.mdx +++ b/api_docs/file_upload.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fileUpload title: "fileUpload" image: https://source.unsplash.com/400x175/?github description: API docs for the fileUpload plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fileUpload'] --- import fileUploadObj from './file_upload.devdocs.json'; diff --git a/api_docs/files.mdx b/api_docs/files.mdx index 65a30e3455a98..cd82363ce9665 100644 --- a/api_docs/files.mdx +++ b/api_docs/files.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/files title: "files" image: https://source.unsplash.com/400x175/?github description: API docs for the files plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'files'] --- import filesObj from './files.devdocs.json'; diff --git a/api_docs/files_management.mdx b/api_docs/files_management.mdx index 61ba46869f5e9..a32098b0900b4 100644 --- a/api_docs/files_management.mdx +++ b/api_docs/files_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/filesManagement title: "filesManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the filesManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'filesManagement'] --- import filesManagementObj from './files_management.devdocs.json'; diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index 5b3effafe1629..6375ce295c380 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fleet title: "fleet" image: https://source.unsplash.com/400x175/?github description: API docs for the fleet plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fleet'] --- import fleetObj from './fleet.devdocs.json'; diff --git a/api_docs/global_search.mdx b/api_docs/global_search.mdx index 222910f4e4288..0ee32a37aa6f2 100644 --- a/api_docs/global_search.mdx +++ b/api_docs/global_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/globalSearch title: "globalSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the globalSearch plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'globalSearch'] --- import globalSearchObj from './global_search.devdocs.json'; diff --git a/api_docs/guided_onboarding.mdx b/api_docs/guided_onboarding.mdx index 2d18c0815ee6d..bc12764883bea 100644 --- a/api_docs/guided_onboarding.mdx +++ b/api_docs/guided_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/guidedOnboarding title: "guidedOnboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the guidedOnboarding plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'guidedOnboarding'] --- import guidedOnboardingObj from './guided_onboarding.devdocs.json'; diff --git a/api_docs/home.mdx b/api_docs/home.mdx index e86f607b2e1c6..85ca5a8f58f78 100644 --- a/api_docs/home.mdx +++ b/api_docs/home.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/home title: "home" image: https://source.unsplash.com/400x175/?github description: API docs for the home plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'home'] --- import homeObj from './home.devdocs.json'; diff --git a/api_docs/image_embeddable.mdx b/api_docs/image_embeddable.mdx index 7a2515414dee0..ce899771a303b 100644 --- a/api_docs/image_embeddable.mdx +++ b/api_docs/image_embeddable.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/imageEmbeddable title: "imageEmbeddable" image: https://source.unsplash.com/400x175/?github description: API docs for the imageEmbeddable plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'imageEmbeddable'] --- import imageEmbeddableObj from './image_embeddable.devdocs.json'; diff --git a/api_docs/index_lifecycle_management.mdx b/api_docs/index_lifecycle_management.mdx index a6b68c62d0c3f..028e7f37f4ffa 100644 --- a/api_docs/index_lifecycle_management.mdx +++ b/api_docs/index_lifecycle_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexLifecycleManagement title: "indexLifecycleManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexLifecycleManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexLifecycleManagement'] --- import indexLifecycleManagementObj from './index_lifecycle_management.devdocs.json'; diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index 4c162f551ab4d..56072ddc04bc7 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexManagement title: "indexManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexManagement'] --- import indexManagementObj from './index_management.devdocs.json'; diff --git a/api_docs/inference.mdx b/api_docs/inference.mdx index c7aa1e3c96d74..c23a771eeb91f 100644 --- a/api_docs/inference.mdx +++ b/api_docs/inference.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inference title: "inference" image: https://source.unsplash.com/400x175/?github description: API docs for the inference plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inference'] --- import inferenceObj from './inference.devdocs.json'; diff --git a/api_docs/infra.mdx b/api_docs/infra.mdx index 4f56189114ced..9ac140c5c819e 100644 --- a/api_docs/infra.mdx +++ b/api_docs/infra.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/infra title: "infra" image: https://source.unsplash.com/400x175/?github description: API docs for the infra plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'infra'] --- import infraObj from './infra.devdocs.json'; diff --git a/api_docs/ingest_pipelines.mdx b/api_docs/ingest_pipelines.mdx index 913e2c683f16d..6b3c1e6828f17 100644 --- a/api_docs/ingest_pipelines.mdx +++ b/api_docs/ingest_pipelines.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ingestPipelines title: "ingestPipelines" image: https://source.unsplash.com/400x175/?github description: API docs for the ingestPipelines plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ingestPipelines'] --- import ingestPipelinesObj from './ingest_pipelines.devdocs.json'; diff --git a/api_docs/inspector.mdx b/api_docs/inspector.mdx index 0a32b5d2b7933..588392987defa 100644 --- a/api_docs/inspector.mdx +++ b/api_docs/inspector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inspector title: "inspector" image: https://source.unsplash.com/400x175/?github description: API docs for the inspector plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inspector'] --- import inspectorObj from './inspector.devdocs.json'; diff --git a/api_docs/integration_assistant.mdx b/api_docs/integration_assistant.mdx index ea1dd6fd45507..8a6d5f0228f20 100644 --- a/api_docs/integration_assistant.mdx +++ b/api_docs/integration_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/integrationAssistant title: "integrationAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the integrationAssistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'integrationAssistant'] --- import integrationAssistantObj from './integration_assistant.devdocs.json'; diff --git a/api_docs/interactive_setup.mdx b/api_docs/interactive_setup.mdx index 144128243fb02..abffe9b4565e2 100644 --- a/api_docs/interactive_setup.mdx +++ b/api_docs/interactive_setup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/interactiveSetup title: "interactiveSetup" image: https://source.unsplash.com/400x175/?github description: API docs for the interactiveSetup plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'interactiveSetup'] --- import interactiveSetupObj from './interactive_setup.devdocs.json'; diff --git a/api_docs/inventory.mdx b/api_docs/inventory.mdx index 875b5c8e7fbc1..e2e47fe149a16 100644 --- a/api_docs/inventory.mdx +++ b/api_docs/inventory.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inventory title: "inventory" image: https://source.unsplash.com/400x175/?github description: API docs for the inventory plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inventory'] --- import inventoryObj from './inventory.devdocs.json'; diff --git a/api_docs/investigate.mdx b/api_docs/investigate.mdx index 1a757866a7b9d..9388ee5b4405c 100644 --- a/api_docs/investigate.mdx +++ b/api_docs/investigate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/investigate title: "investigate" image: https://source.unsplash.com/400x175/?github description: API docs for the investigate plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'investigate'] --- import investigateObj from './investigate.devdocs.json'; diff --git a/api_docs/investigate_app.mdx b/api_docs/investigate_app.mdx index 297d43c754c6e..7c1c37441456d 100644 --- a/api_docs/investigate_app.mdx +++ b/api_docs/investigate_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/investigateApp title: "investigateApp" image: https://source.unsplash.com/400x175/?github description: API docs for the investigateApp plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'investigateApp'] --- import investigateAppObj from './investigate_app.devdocs.json'; diff --git a/api_docs/kbn_actions_types.mdx b/api_docs/kbn_actions_types.mdx index d22d4480404c2..69989a63be56a 100644 --- a/api_docs/kbn_actions_types.mdx +++ b/api_docs/kbn_actions_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-actions-types title: "@kbn/actions-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/actions-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/actions-types'] --- import kbnActionsTypesObj from './kbn_actions_types.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant.mdx b/api_docs/kbn_ai_assistant.mdx index 805e1367064ee..f5558238f1023 100644 --- a/api_docs/kbn_ai_assistant.mdx +++ b/api_docs/kbn_ai_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant title: "@kbn/ai-assistant" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant'] --- import kbnAiAssistantObj from './kbn_ai_assistant.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant_common.mdx b/api_docs/kbn_ai_assistant_common.mdx index ea56e31732504..35ef391de1c05 100644 --- a/api_docs/kbn_ai_assistant_common.mdx +++ b/api_docs/kbn_ai_assistant_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant-common title: "@kbn/ai-assistant-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant-common'] --- import kbnAiAssistantCommonObj from './kbn_ai_assistant_common.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant_icon.devdocs.json b/api_docs/kbn_ai_assistant_icon.devdocs.json index b1c0efe9df4e6..b3f7c08de3b5f 100644 --- a/api_docs/kbn_ai_assistant_icon.devdocs.json +++ b/api_docs/kbn_ai_assistant_icon.devdocs.json @@ -13,7 +13,7 @@ "\nA `EuiAvatar` component customized for the AI Assistant." ], "signature": [ - "({ css, color, size, ...props }: ", + "({ color, size, ...props }: ", { "pluginId": "@kbn/ai-assistant-icon", "scope": "public", @@ -32,7 +32,7 @@ "id": "def-public.AssistantAvatar.$1", "type": "Object", "tags": [], - "label": "{\n css,\n color = 'plain',\n size = 'm',\n ...props\n}", + "label": "{\n color = 'plain',\n size = 'm',\n ...props\n}", "description": [], "signature": [ { diff --git a/api_docs/kbn_ai_assistant_icon.mdx b/api_docs/kbn_ai_assistant_icon.mdx index 4e85289206c7c..00aacfe929099 100644 --- a/api_docs/kbn_ai_assistant_icon.mdx +++ b/api_docs/kbn_ai_assistant_icon.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant-icon title: "@kbn/ai-assistant-icon" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant-icon plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant-icon'] --- import kbnAiAssistantIconObj from './kbn_ai_assistant_icon.devdocs.json'; diff --git a/api_docs/kbn_aiops_components.mdx b/api_docs/kbn_aiops_components.mdx index 233c749577568..e6ad627a53399 100644 --- a/api_docs/kbn_aiops_components.mdx +++ b/api_docs/kbn_aiops_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-components title: "@kbn/aiops-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-components'] --- import kbnAiopsComponentsObj from './kbn_aiops_components.devdocs.json'; diff --git a/api_docs/kbn_aiops_log_pattern_analysis.mdx b/api_docs/kbn_aiops_log_pattern_analysis.mdx index 54da7a4249618..65865801e6ba1 100644 --- a/api_docs/kbn_aiops_log_pattern_analysis.mdx +++ b/api_docs/kbn_aiops_log_pattern_analysis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-log-pattern-analysis title: "@kbn/aiops-log-pattern-analysis" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-log-pattern-analysis plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-log-pattern-analysis'] --- import kbnAiopsLogPatternAnalysisObj from './kbn_aiops_log_pattern_analysis.devdocs.json'; diff --git a/api_docs/kbn_aiops_log_rate_analysis.mdx b/api_docs/kbn_aiops_log_rate_analysis.mdx index 06ab7acd96cfa..57e3c3da03dfa 100644 --- a/api_docs/kbn_aiops_log_rate_analysis.mdx +++ b/api_docs/kbn_aiops_log_rate_analysis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-log-rate-analysis title: "@kbn/aiops-log-rate-analysis" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-log-rate-analysis plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-log-rate-analysis'] --- import kbnAiopsLogRateAnalysisObj from './kbn_aiops_log_rate_analysis.devdocs.json'; diff --git a/api_docs/kbn_alerting_api_integration_helpers.mdx b/api_docs/kbn_alerting_api_integration_helpers.mdx index 5feff803687e3..b07f8864ac6cf 100644 --- a/api_docs/kbn_alerting_api_integration_helpers.mdx +++ b/api_docs/kbn_alerting_api_integration_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-api-integration-helpers title: "@kbn/alerting-api-integration-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-api-integration-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-api-integration-helpers'] --- import kbnAlertingApiIntegrationHelpersObj from './kbn_alerting_api_integration_helpers.devdocs.json'; diff --git a/api_docs/kbn_alerting_comparators.mdx b/api_docs/kbn_alerting_comparators.mdx index b0861bae8f02b..5e6e32e5064cf 100644 --- a/api_docs/kbn_alerting_comparators.mdx +++ b/api_docs/kbn_alerting_comparators.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-comparators title: "@kbn/alerting-comparators" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-comparators plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-comparators'] --- import kbnAlertingComparatorsObj from './kbn_alerting_comparators.devdocs.json'; diff --git a/api_docs/kbn_alerting_state_types.mdx b/api_docs/kbn_alerting_state_types.mdx index 096d0f6f02420..518ea53372f38 100644 --- a/api_docs/kbn_alerting_state_types.mdx +++ b/api_docs/kbn_alerting_state_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-state-types title: "@kbn/alerting-state-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-state-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-state-types'] --- import kbnAlertingStateTypesObj from './kbn_alerting_state_types.devdocs.json'; diff --git a/api_docs/kbn_alerting_types.mdx b/api_docs/kbn_alerting_types.mdx index ba02c78ed39bf..7e1e38e44b3db 100644 --- a/api_docs/kbn_alerting_types.mdx +++ b/api_docs/kbn_alerting_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-types title: "@kbn/alerting-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-types'] --- import kbnAlertingTypesObj from './kbn_alerting_types.devdocs.json'; diff --git a/api_docs/kbn_alerts_as_data_utils.mdx b/api_docs/kbn_alerts_as_data_utils.mdx index f07c600e7c03d..be017059454a9 100644 --- a/api_docs/kbn_alerts_as_data_utils.mdx +++ b/api_docs/kbn_alerts_as_data_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-as-data-utils title: "@kbn/alerts-as-data-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-as-data-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-as-data-utils'] --- import kbnAlertsAsDataUtilsObj from './kbn_alerts_as_data_utils.devdocs.json'; diff --git a/api_docs/kbn_alerts_grouping.mdx b/api_docs/kbn_alerts_grouping.mdx index 66f3ef3ecdd4b..abfa696466d15 100644 --- a/api_docs/kbn_alerts_grouping.mdx +++ b/api_docs/kbn_alerts_grouping.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-grouping title: "@kbn/alerts-grouping" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-grouping plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-grouping'] --- import kbnAlertsGroupingObj from './kbn_alerts_grouping.devdocs.json'; diff --git a/api_docs/kbn_alerts_ui_shared.mdx b/api_docs/kbn_alerts_ui_shared.mdx index 6edf4f7099ab5..395bfe3b87497 100644 --- a/api_docs/kbn_alerts_ui_shared.mdx +++ b/api_docs/kbn_alerts_ui_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-ui-shared title: "@kbn/alerts-ui-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-ui-shared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-ui-shared'] --- import kbnAlertsUiSharedObj from './kbn_alerts_ui_shared.devdocs.json'; diff --git a/api_docs/kbn_analytics.mdx b/api_docs/kbn_analytics.mdx index 3ccf783d755b8..e62cf359560c6 100644 --- a/api_docs/kbn_analytics.mdx +++ b/api_docs/kbn_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics title: "@kbn/analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics'] --- import kbnAnalyticsObj from './kbn_analytics.devdocs.json'; diff --git a/api_docs/kbn_analytics_collection_utils.mdx b/api_docs/kbn_analytics_collection_utils.mdx index 99ae5c2f04922..c8fa0eb44167c 100644 --- a/api_docs/kbn_analytics_collection_utils.mdx +++ b/api_docs/kbn_analytics_collection_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-collection-utils title: "@kbn/analytics-collection-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-collection-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-collection-utils'] --- import kbnAnalyticsCollectionUtilsObj from './kbn_analytics_collection_utils.devdocs.json'; diff --git a/api_docs/kbn_apm_config_loader.mdx b/api_docs/kbn_apm_config_loader.mdx index 91e38e7b88a46..324ce1d0fcb8c 100644 --- a/api_docs/kbn_apm_config_loader.mdx +++ b/api_docs/kbn_apm_config_loader.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-config-loader title: "@kbn/apm-config-loader" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-config-loader plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-config-loader'] --- import kbnApmConfigLoaderObj from './kbn_apm_config_loader.devdocs.json'; diff --git a/api_docs/kbn_apm_data_view.mdx b/api_docs/kbn_apm_data_view.mdx index 482b6d89d2e82..c0e98b7d96b24 100644 --- a/api_docs/kbn_apm_data_view.mdx +++ b/api_docs/kbn_apm_data_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-data-view title: "@kbn/apm-data-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-data-view plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-data-view'] --- import kbnApmDataViewObj from './kbn_apm_data_view.devdocs.json'; diff --git a/api_docs/kbn_apm_synthtrace.mdx b/api_docs/kbn_apm_synthtrace.mdx index 4c2ced7cdb20d..9a952d65d7959 100644 --- a/api_docs/kbn_apm_synthtrace.mdx +++ b/api_docs/kbn_apm_synthtrace.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-synthtrace title: "@kbn/apm-synthtrace" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-synthtrace plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-synthtrace'] --- import kbnApmSynthtraceObj from './kbn_apm_synthtrace.devdocs.json'; diff --git a/api_docs/kbn_apm_synthtrace_client.mdx b/api_docs/kbn_apm_synthtrace_client.mdx index f84cd94d864fb..d67a609fb9f99 100644 --- a/api_docs/kbn_apm_synthtrace_client.mdx +++ b/api_docs/kbn_apm_synthtrace_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-synthtrace-client title: "@kbn/apm-synthtrace-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-synthtrace-client plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-synthtrace-client'] --- import kbnApmSynthtraceClientObj from './kbn_apm_synthtrace_client.devdocs.json'; diff --git a/api_docs/kbn_apm_types.mdx b/api_docs/kbn_apm_types.mdx index da656d8919260..7f876b244bb96 100644 --- a/api_docs/kbn_apm_types.mdx +++ b/api_docs/kbn_apm_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-types title: "@kbn/apm-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-types'] --- import kbnApmTypesObj from './kbn_apm_types.devdocs.json'; diff --git a/api_docs/kbn_apm_utils.mdx b/api_docs/kbn_apm_utils.mdx index 1adc0959a0b2e..f60619742336a 100644 --- a/api_docs/kbn_apm_utils.mdx +++ b/api_docs/kbn_apm_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-utils title: "@kbn/apm-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-utils'] --- import kbnApmUtilsObj from './kbn_apm_utils.devdocs.json'; diff --git a/api_docs/kbn_avc_banner.mdx b/api_docs/kbn_avc_banner.mdx index b02aba1f98d20..bff2af07fca8a 100644 --- a/api_docs/kbn_avc_banner.mdx +++ b/api_docs/kbn_avc_banner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-avc-banner title: "@kbn/avc-banner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/avc-banner plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/avc-banner'] --- import kbnAvcBannerObj from './kbn_avc_banner.devdocs.json'; diff --git a/api_docs/kbn_axe_config.mdx b/api_docs/kbn_axe_config.mdx index 20d3bd7f49b19..99768f41d0a0f 100644 --- a/api_docs/kbn_axe_config.mdx +++ b/api_docs/kbn_axe_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-axe-config title: "@kbn/axe-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/axe-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/axe-config'] --- import kbnAxeConfigObj from './kbn_axe_config.devdocs.json'; diff --git a/api_docs/kbn_calculate_auto.mdx b/api_docs/kbn_calculate_auto.mdx index b2187f6d18891..466f38db0341e 100644 --- a/api_docs/kbn_calculate_auto.mdx +++ b/api_docs/kbn_calculate_auto.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-calculate-auto title: "@kbn/calculate-auto" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/calculate-auto plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/calculate-auto'] --- import kbnCalculateAutoObj from './kbn_calculate_auto.devdocs.json'; diff --git a/api_docs/kbn_calculate_width_from_char_count.mdx b/api_docs/kbn_calculate_width_from_char_count.mdx index a0b7cd608fe4e..96261ae22907a 100644 --- a/api_docs/kbn_calculate_width_from_char_count.mdx +++ b/api_docs/kbn_calculate_width_from_char_count.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-calculate-width-from-char-count title: "@kbn/calculate-width-from-char-count" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/calculate-width-from-char-count plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/calculate-width-from-char-count'] --- import kbnCalculateWidthFromCharCountObj from './kbn_calculate_width_from_char_count.devdocs.json'; diff --git a/api_docs/kbn_cases_components.mdx b/api_docs/kbn_cases_components.mdx index a4b490bb8bf85..fb72fa22dc8bb 100644 --- a/api_docs/kbn_cases_components.mdx +++ b/api_docs/kbn_cases_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cases-components title: "@kbn/cases-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cases-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cases-components'] --- import kbnCasesComponentsObj from './kbn_cases_components.devdocs.json'; diff --git a/api_docs/kbn_cbor.mdx b/api_docs/kbn_cbor.mdx index 34fed554a21a3..73b60fa1d6f90 100644 --- a/api_docs/kbn_cbor.mdx +++ b/api_docs/kbn_cbor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cbor title: "@kbn/cbor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cbor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cbor'] --- import kbnCborObj from './kbn_cbor.devdocs.json'; diff --git a/api_docs/kbn_cell_actions.mdx b/api_docs/kbn_cell_actions.mdx index d64e0d0bf35ef..2113d308d4f04 100644 --- a/api_docs/kbn_cell_actions.mdx +++ b/api_docs/kbn_cell_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cell-actions title: "@kbn/cell-actions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cell-actions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cell-actions'] --- import kbnCellActionsObj from './kbn_cell_actions.devdocs.json'; diff --git a/api_docs/kbn_chart_expressions_common.mdx b/api_docs/kbn_chart_expressions_common.mdx index 2964236655b40..d9f99410800f5 100644 --- a/api_docs/kbn_chart_expressions_common.mdx +++ b/api_docs/kbn_chart_expressions_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-chart-expressions-common title: "@kbn/chart-expressions-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/chart-expressions-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/chart-expressions-common'] --- import kbnChartExpressionsCommonObj from './kbn_chart_expressions_common.devdocs.json'; diff --git a/api_docs/kbn_chart_icons.mdx b/api_docs/kbn_chart_icons.mdx index ec322783534bb..8dc837e4aa40a 100644 --- a/api_docs/kbn_chart_icons.mdx +++ b/api_docs/kbn_chart_icons.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-chart-icons title: "@kbn/chart-icons" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/chart-icons plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/chart-icons'] --- import kbnChartIconsObj from './kbn_chart_icons.devdocs.json'; diff --git a/api_docs/kbn_charts_theme.mdx b/api_docs/kbn_charts_theme.mdx index 88954ad59bacd..fd51992c77192 100644 --- a/api_docs/kbn_charts_theme.mdx +++ b/api_docs/kbn_charts_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-charts-theme title: "@kbn/charts-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/charts-theme plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/charts-theme'] --- import kbnChartsThemeObj from './kbn_charts_theme.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_core.mdx b/api_docs/kbn_ci_stats_core.mdx index f14b883c1c752..26b8ebdd1b357 100644 --- a/api_docs/kbn_ci_stats_core.mdx +++ b/api_docs/kbn_ci_stats_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-core title: "@kbn/ci-stats-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-core plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-core'] --- import kbnCiStatsCoreObj from './kbn_ci_stats_core.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_performance_metrics.mdx b/api_docs/kbn_ci_stats_performance_metrics.mdx index eeba19c374a4f..e4c32c26a02ab 100644 --- a/api_docs/kbn_ci_stats_performance_metrics.mdx +++ b/api_docs/kbn_ci_stats_performance_metrics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-performance-metrics title: "@kbn/ci-stats-performance-metrics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-performance-metrics plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-performance-metrics'] --- import kbnCiStatsPerformanceMetricsObj from './kbn_ci_stats_performance_metrics.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_reporter.mdx b/api_docs/kbn_ci_stats_reporter.mdx index e1655bb38b024..73af316e083c3 100644 --- a/api_docs/kbn_ci_stats_reporter.mdx +++ b/api_docs/kbn_ci_stats_reporter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-reporter title: "@kbn/ci-stats-reporter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-reporter plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-reporter'] --- import kbnCiStatsReporterObj from './kbn_ci_stats_reporter.devdocs.json'; diff --git a/api_docs/kbn_cli_dev_mode.mdx b/api_docs/kbn_cli_dev_mode.mdx index bfb55e9604803..c412ed0335d62 100644 --- a/api_docs/kbn_cli_dev_mode.mdx +++ b/api_docs/kbn_cli_dev_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cli-dev-mode title: "@kbn/cli-dev-mode" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cli-dev-mode plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cli-dev-mode'] --- import kbnCliDevModeObj from './kbn_cli_dev_mode.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture.mdx b/api_docs/kbn_cloud_security_posture.mdx index cd8815eb0da62..5ef322dbfcd42 100644 --- a/api_docs/kbn_cloud_security_posture.mdx +++ b/api_docs/kbn_cloud_security_posture.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture title: "@kbn/cloud-security-posture" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture'] --- import kbnCloudSecurityPostureObj from './kbn_cloud_security_posture.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture_common.mdx b/api_docs/kbn_cloud_security_posture_common.mdx index 2045e16fe4422..b5dadfff31055 100644 --- a/api_docs/kbn_cloud_security_posture_common.mdx +++ b/api_docs/kbn_cloud_security_posture_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture-common title: "@kbn/cloud-security-posture-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture-common'] --- import kbnCloudSecurityPostureCommonObj from './kbn_cloud_security_posture_common.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture_graph.mdx b/api_docs/kbn_cloud_security_posture_graph.mdx index 8e2467152ea7a..a3373daa5b2bd 100644 --- a/api_docs/kbn_cloud_security_posture_graph.mdx +++ b/api_docs/kbn_cloud_security_posture_graph.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture-graph title: "@kbn/cloud-security-posture-graph" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture-graph plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture-graph'] --- import kbnCloudSecurityPostureGraphObj from './kbn_cloud_security_posture_graph.devdocs.json'; diff --git a/api_docs/kbn_code_editor.mdx b/api_docs/kbn_code_editor.mdx index c306a1f213093..f67533d0547e5 100644 --- a/api_docs/kbn_code_editor.mdx +++ b/api_docs/kbn_code_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-editor title: "@kbn/code-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-editor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-editor'] --- import kbnCodeEditorObj from './kbn_code_editor.devdocs.json'; diff --git a/api_docs/kbn_code_editor_mock.mdx b/api_docs/kbn_code_editor_mock.mdx index d48fe1a8de461..0525f05b307f9 100644 --- a/api_docs/kbn_code_editor_mock.mdx +++ b/api_docs/kbn_code_editor_mock.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-editor-mock title: "@kbn/code-editor-mock" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-editor-mock plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-editor-mock'] --- import kbnCodeEditorMockObj from './kbn_code_editor_mock.devdocs.json'; diff --git a/api_docs/kbn_code_owners.mdx b/api_docs/kbn_code_owners.mdx index cd9caf01e578c..9e323849fcc41 100644 --- a/api_docs/kbn_code_owners.mdx +++ b/api_docs/kbn_code_owners.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-owners title: "@kbn/code-owners" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-owners plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-owners'] --- import kbnCodeOwnersObj from './kbn_code_owners.devdocs.json'; diff --git a/api_docs/kbn_coloring.mdx b/api_docs/kbn_coloring.mdx index d38666cbfe7ed..f4f01973a5ffb 100644 --- a/api_docs/kbn_coloring.mdx +++ b/api_docs/kbn_coloring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-coloring title: "@kbn/coloring" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/coloring plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/coloring'] --- import kbnColoringObj from './kbn_coloring.devdocs.json'; diff --git a/api_docs/kbn_config.mdx b/api_docs/kbn_config.mdx index d0f133e058a70..0b41ae520bbea 100644 --- a/api_docs/kbn_config.mdx +++ b/api_docs/kbn_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config title: "@kbn/config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config'] --- import kbnConfigObj from './kbn_config.devdocs.json'; diff --git a/api_docs/kbn_config_mocks.mdx b/api_docs/kbn_config_mocks.mdx index 5370cc8551908..879a7e7243c0e 100644 --- a/api_docs/kbn_config_mocks.mdx +++ b/api_docs/kbn_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-mocks title: "@kbn/config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-mocks'] --- import kbnConfigMocksObj from './kbn_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_config_schema.mdx b/api_docs/kbn_config_schema.mdx index fbee9e7243fed..35e959367361e 100644 --- a/api_docs/kbn_config_schema.mdx +++ b/api_docs/kbn_config_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-schema title: "@kbn/config-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-schema plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-schema'] --- import kbnConfigSchemaObj from './kbn_config_schema.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_editor.mdx b/api_docs/kbn_content_management_content_editor.mdx index f55dc2182099d..1bcee4f0c6e28 100644 --- a/api_docs/kbn_content_management_content_editor.mdx +++ b/api_docs/kbn_content_management_content_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-editor title: "@kbn/content-management-content-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-editor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-editor'] --- import kbnContentManagementContentEditorObj from './kbn_content_management_content_editor.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_insights_public.mdx b/api_docs/kbn_content_management_content_insights_public.mdx index af70c1dd3b144..d92ff3a220219 100644 --- a/api_docs/kbn_content_management_content_insights_public.mdx +++ b/api_docs/kbn_content_management_content_insights_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-insights-public title: "@kbn/content-management-content-insights-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-insights-public plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-insights-public'] --- import kbnContentManagementContentInsightsPublicObj from './kbn_content_management_content_insights_public.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_insights_server.mdx b/api_docs/kbn_content_management_content_insights_server.mdx index c4f109b5ed2df..b6dc76a95eb59 100644 --- a/api_docs/kbn_content_management_content_insights_server.mdx +++ b/api_docs/kbn_content_management_content_insights_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-insights-server title: "@kbn/content-management-content-insights-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-insights-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-insights-server'] --- import kbnContentManagementContentInsightsServerObj from './kbn_content_management_content_insights_server.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_common.mdx b/api_docs/kbn_content_management_favorites_common.mdx index 383fab12b2ba5..d648b3ffc2480 100644 --- a/api_docs/kbn_content_management_favorites_common.mdx +++ b/api_docs/kbn_content_management_favorites_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-common title: "@kbn/content-management-favorites-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-common'] --- import kbnContentManagementFavoritesCommonObj from './kbn_content_management_favorites_common.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_public.mdx b/api_docs/kbn_content_management_favorites_public.mdx index 9b23511f56402..5ff8ef17faeb2 100644 --- a/api_docs/kbn_content_management_favorites_public.mdx +++ b/api_docs/kbn_content_management_favorites_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-public title: "@kbn/content-management-favorites-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-public plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-public'] --- import kbnContentManagementFavoritesPublicObj from './kbn_content_management_favorites_public.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_server.mdx b/api_docs/kbn_content_management_favorites_server.mdx index 55281575de22e..b797e2a59e53c 100644 --- a/api_docs/kbn_content_management_favorites_server.mdx +++ b/api_docs/kbn_content_management_favorites_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-server title: "@kbn/content-management-favorites-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-server'] --- import kbnContentManagementFavoritesServerObj from './kbn_content_management_favorites_server.devdocs.json'; diff --git a/api_docs/kbn_content_management_tabbed_table_list_view.mdx b/api_docs/kbn_content_management_tabbed_table_list_view.mdx index e7f2b50cb22d7..39f316df4685d 100644 --- a/api_docs/kbn_content_management_tabbed_table_list_view.mdx +++ b/api_docs/kbn_content_management_tabbed_table_list_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-tabbed-table-list-view title: "@kbn/content-management-tabbed-table-list-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-tabbed-table-list-view plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-tabbed-table-list-view'] --- import kbnContentManagementTabbedTableListViewObj from './kbn_content_management_tabbed_table_list_view.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view.mdx b/api_docs/kbn_content_management_table_list_view.mdx index 12e974e568b57..07f8b1ae8e992 100644 --- a/api_docs/kbn_content_management_table_list_view.mdx +++ b/api_docs/kbn_content_management_table_list_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view title: "@kbn/content-management-table-list-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view'] --- import kbnContentManagementTableListViewObj from './kbn_content_management_table_list_view.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view_common.mdx b/api_docs/kbn_content_management_table_list_view_common.mdx index 99a5dace5728e..0269a67bbcc6d 100644 --- a/api_docs/kbn_content_management_table_list_view_common.mdx +++ b/api_docs/kbn_content_management_table_list_view_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view-common title: "@kbn/content-management-table-list-view-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view-common'] --- import kbnContentManagementTableListViewCommonObj from './kbn_content_management_table_list_view_common.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view_table.mdx b/api_docs/kbn_content_management_table_list_view_table.mdx index cc9f677706e9d..e83f492f0928a 100644 --- a/api_docs/kbn_content_management_table_list_view_table.mdx +++ b/api_docs/kbn_content_management_table_list_view_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view-table title: "@kbn/content-management-table-list-view-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view-table plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view-table'] --- import kbnContentManagementTableListViewTableObj from './kbn_content_management_table_list_view_table.devdocs.json'; diff --git a/api_docs/kbn_content_management_user_profiles.mdx b/api_docs/kbn_content_management_user_profiles.mdx index f4fb99ec93897..a0d218b844751 100644 --- a/api_docs/kbn_content_management_user_profiles.mdx +++ b/api_docs/kbn_content_management_user_profiles.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-user-profiles title: "@kbn/content-management-user-profiles" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-user-profiles plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-user-profiles'] --- import kbnContentManagementUserProfilesObj from './kbn_content_management_user_profiles.devdocs.json'; diff --git a/api_docs/kbn_content_management_utils.mdx b/api_docs/kbn_content_management_utils.mdx index dd1d9e683c5b7..8da97b13b1ba3 100644 --- a/api_docs/kbn_content_management_utils.mdx +++ b/api_docs/kbn_content_management_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-utils title: "@kbn/content-management-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-utils'] --- import kbnContentManagementUtilsObj from './kbn_content_management_utils.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser.mdx b/api_docs/kbn_core_analytics_browser.mdx index f0c821d07993f..94d30ab590ffe 100644 --- a/api_docs/kbn_core_analytics_browser.mdx +++ b/api_docs/kbn_core_analytics_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser title: "@kbn/core-analytics-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser'] --- import kbnCoreAnalyticsBrowserObj from './kbn_core_analytics_browser.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_internal.mdx b/api_docs/kbn_core_analytics_browser_internal.mdx index 8cccdcfb445bc..7a4a9e612abce 100644 --- a/api_docs/kbn_core_analytics_browser_internal.mdx +++ b/api_docs/kbn_core_analytics_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-internal title: "@kbn/core-analytics-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-internal'] --- import kbnCoreAnalyticsBrowserInternalObj from './kbn_core_analytics_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_mocks.mdx b/api_docs/kbn_core_analytics_browser_mocks.mdx index bcd7f08330d7d..22cdbb7a45e62 100644 --- a/api_docs/kbn_core_analytics_browser_mocks.mdx +++ b/api_docs/kbn_core_analytics_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-mocks title: "@kbn/core-analytics-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-mocks'] --- import kbnCoreAnalyticsBrowserMocksObj from './kbn_core_analytics_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server.mdx b/api_docs/kbn_core_analytics_server.mdx index d3072f1db0aae..210d04eb5fcc5 100644 --- a/api_docs/kbn_core_analytics_server.mdx +++ b/api_docs/kbn_core_analytics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server title: "@kbn/core-analytics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server'] --- import kbnCoreAnalyticsServerObj from './kbn_core_analytics_server.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_internal.mdx b/api_docs/kbn_core_analytics_server_internal.mdx index 36740c1e4309c..edf267280f0de 100644 --- a/api_docs/kbn_core_analytics_server_internal.mdx +++ b/api_docs/kbn_core_analytics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-internal title: "@kbn/core-analytics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-internal'] --- import kbnCoreAnalyticsServerInternalObj from './kbn_core_analytics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_mocks.mdx b/api_docs/kbn_core_analytics_server_mocks.mdx index 6a3cdece82ffb..30fe15ae82de7 100644 --- a/api_docs/kbn_core_analytics_server_mocks.mdx +++ b/api_docs/kbn_core_analytics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-mocks title: "@kbn/core-analytics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-mocks'] --- import kbnCoreAnalyticsServerMocksObj from './kbn_core_analytics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser.mdx b/api_docs/kbn_core_application_browser.mdx index 39280a39ce164..e1f5607989c18 100644 --- a/api_docs/kbn_core_application_browser.mdx +++ b/api_docs/kbn_core_application_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser title: "@kbn/core-application-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser'] --- import kbnCoreApplicationBrowserObj from './kbn_core_application_browser.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_internal.mdx b/api_docs/kbn_core_application_browser_internal.mdx index a2231cfa0e425..974de489dc09a 100644 --- a/api_docs/kbn_core_application_browser_internal.mdx +++ b/api_docs/kbn_core_application_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-internal title: "@kbn/core-application-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-internal'] --- import kbnCoreApplicationBrowserInternalObj from './kbn_core_application_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_mocks.mdx b/api_docs/kbn_core_application_browser_mocks.mdx index 1563eade00a1e..a0c751f8f517a 100644 --- a/api_docs/kbn_core_application_browser_mocks.mdx +++ b/api_docs/kbn_core_application_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-mocks title: "@kbn/core-application-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-mocks'] --- import kbnCoreApplicationBrowserMocksObj from './kbn_core_application_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_common.mdx b/api_docs/kbn_core_application_common.mdx index 26ee2438babec..b38c317b23b5d 100644 --- a/api_docs/kbn_core_application_common.mdx +++ b/api_docs/kbn_core_application_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-common title: "@kbn/core-application-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-common'] --- import kbnCoreApplicationCommonObj from './kbn_core_application_common.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_internal.mdx b/api_docs/kbn_core_apps_browser_internal.mdx index ef4f289883aaa..d0c4a4c9db493 100644 --- a/api_docs/kbn_core_apps_browser_internal.mdx +++ b/api_docs/kbn_core_apps_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-internal title: "@kbn/core-apps-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-internal'] --- import kbnCoreAppsBrowserInternalObj from './kbn_core_apps_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_mocks.mdx b/api_docs/kbn_core_apps_browser_mocks.mdx index a29713b88a265..7a6719121ab9b 100644 --- a/api_docs/kbn_core_apps_browser_mocks.mdx +++ b/api_docs/kbn_core_apps_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-mocks title: "@kbn/core-apps-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-mocks'] --- import kbnCoreAppsBrowserMocksObj from './kbn_core_apps_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_apps_server_internal.mdx b/api_docs/kbn_core_apps_server_internal.mdx index 6c85b7e2bd425..93ca21028f354 100644 --- a/api_docs/kbn_core_apps_server_internal.mdx +++ b/api_docs/kbn_core_apps_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-server-internal title: "@kbn/core-apps-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-server-internal'] --- import kbnCoreAppsServerInternalObj from './kbn_core_apps_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_base_browser_mocks.mdx b/api_docs/kbn_core_base_browser_mocks.mdx index c9dae744c2fc6..f19690024cff5 100644 --- a/api_docs/kbn_core_base_browser_mocks.mdx +++ b/api_docs/kbn_core_base_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-browser-mocks title: "@kbn/core-base-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-browser-mocks'] --- import kbnCoreBaseBrowserMocksObj from './kbn_core_base_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_base_common.mdx b/api_docs/kbn_core_base_common.mdx index 633bc4005a86e..6f2cb60c0ac02 100644 --- a/api_docs/kbn_core_base_common.mdx +++ b/api_docs/kbn_core_base_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-common title: "@kbn/core-base-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-common'] --- import kbnCoreBaseCommonObj from './kbn_core_base_common.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_internal.mdx b/api_docs/kbn_core_base_server_internal.mdx index 3b903fa5ffa5d..e438123f88f9d 100644 --- a/api_docs/kbn_core_base_server_internal.mdx +++ b/api_docs/kbn_core_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-internal title: "@kbn/core-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-internal'] --- import kbnCoreBaseServerInternalObj from './kbn_core_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_mocks.mdx b/api_docs/kbn_core_base_server_mocks.mdx index e72d000c43848..490f9a301cfc6 100644 --- a/api_docs/kbn_core_base_server_mocks.mdx +++ b/api_docs/kbn_core_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-mocks title: "@kbn/core-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-mocks'] --- import kbnCoreBaseServerMocksObj from './kbn_core_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_browser_mocks.mdx b/api_docs/kbn_core_capabilities_browser_mocks.mdx index 95104ad92dfd4..111af59f19957 100644 --- a/api_docs/kbn_core_capabilities_browser_mocks.mdx +++ b/api_docs/kbn_core_capabilities_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-browser-mocks title: "@kbn/core-capabilities-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-browser-mocks'] --- import kbnCoreCapabilitiesBrowserMocksObj from './kbn_core_capabilities_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_common.mdx b/api_docs/kbn_core_capabilities_common.mdx index 50d4b554c25ee..0c61e7160ad17 100644 --- a/api_docs/kbn_core_capabilities_common.mdx +++ b/api_docs/kbn_core_capabilities_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-common title: "@kbn/core-capabilities-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-common'] --- import kbnCoreCapabilitiesCommonObj from './kbn_core_capabilities_common.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server.mdx b/api_docs/kbn_core_capabilities_server.mdx index 06773483cfc5f..0fb25f1321a68 100644 --- a/api_docs/kbn_core_capabilities_server.mdx +++ b/api_docs/kbn_core_capabilities_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server title: "@kbn/core-capabilities-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server'] --- import kbnCoreCapabilitiesServerObj from './kbn_core_capabilities_server.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server_mocks.mdx b/api_docs/kbn_core_capabilities_server_mocks.mdx index 39b88bbbc739e..85424a2cb0235 100644 --- a/api_docs/kbn_core_capabilities_server_mocks.mdx +++ b/api_docs/kbn_core_capabilities_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server-mocks title: "@kbn/core-capabilities-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server-mocks'] --- import kbnCoreCapabilitiesServerMocksObj from './kbn_core_capabilities_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser.mdx b/api_docs/kbn_core_chrome_browser.mdx index 39227d942b131..42c45185d827d 100644 --- a/api_docs/kbn_core_chrome_browser.mdx +++ b/api_docs/kbn_core_chrome_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser title: "@kbn/core-chrome-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser'] --- import kbnCoreChromeBrowserObj from './kbn_core_chrome_browser.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser_mocks.mdx b/api_docs/kbn_core_chrome_browser_mocks.mdx index e523793a95e66..47e341cafdf56 100644 --- a/api_docs/kbn_core_chrome_browser_mocks.mdx +++ b/api_docs/kbn_core_chrome_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser-mocks title: "@kbn/core-chrome-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser-mocks'] --- import kbnCoreChromeBrowserMocksObj from './kbn_core_chrome_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_config_server_internal.mdx b/api_docs/kbn_core_config_server_internal.mdx index d319ea81420d9..3555ebb43e7c4 100644 --- a/api_docs/kbn_core_config_server_internal.mdx +++ b/api_docs/kbn_core_config_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-config-server-internal title: "@kbn/core-config-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-config-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-config-server-internal'] --- import kbnCoreConfigServerInternalObj from './kbn_core_config_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser.mdx b/api_docs/kbn_core_custom_branding_browser.mdx index 872427673d3a6..f406804487a86 100644 --- a/api_docs/kbn_core_custom_branding_browser.mdx +++ b/api_docs/kbn_core_custom_branding_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser title: "@kbn/core-custom-branding-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser'] --- import kbnCoreCustomBrandingBrowserObj from './kbn_core_custom_branding_browser.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser_internal.mdx b/api_docs/kbn_core_custom_branding_browser_internal.mdx index 587b7e22d32c6..34c140b20e5aa 100644 --- a/api_docs/kbn_core_custom_branding_browser_internal.mdx +++ b/api_docs/kbn_core_custom_branding_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser-internal title: "@kbn/core-custom-branding-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser-internal'] --- import kbnCoreCustomBrandingBrowserInternalObj from './kbn_core_custom_branding_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser_mocks.mdx b/api_docs/kbn_core_custom_branding_browser_mocks.mdx index c51d814a31709..8ed50c243ed11 100644 --- a/api_docs/kbn_core_custom_branding_browser_mocks.mdx +++ b/api_docs/kbn_core_custom_branding_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser-mocks title: "@kbn/core-custom-branding-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser-mocks'] --- import kbnCoreCustomBrandingBrowserMocksObj from './kbn_core_custom_branding_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_common.mdx b/api_docs/kbn_core_custom_branding_common.mdx index 39182c2ad6614..7a2eb00c42fc4 100644 --- a/api_docs/kbn_core_custom_branding_common.mdx +++ b/api_docs/kbn_core_custom_branding_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-common title: "@kbn/core-custom-branding-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-common'] --- import kbnCoreCustomBrandingCommonObj from './kbn_core_custom_branding_common.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_server.mdx b/api_docs/kbn_core_custom_branding_server.mdx index 99539c140c445..b01ab5380c1ed 100644 --- a/api_docs/kbn_core_custom_branding_server.mdx +++ b/api_docs/kbn_core_custom_branding_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server title: "@kbn/core-custom-branding-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server'] --- import kbnCoreCustomBrandingServerObj from './kbn_core_custom_branding_server.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_server_internal.mdx b/api_docs/kbn_core_custom_branding_server_internal.mdx index ce826c05b6f1b..2566d461ad193 100644 --- a/api_docs/kbn_core_custom_branding_server_internal.mdx +++ b/api_docs/kbn_core_custom_branding_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server-internal title: "@kbn/core-custom-branding-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server-internal'] --- import kbnCoreCustomBrandingServerInternalObj from './kbn_core_custom_branding_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_server_mocks.mdx b/api_docs/kbn_core_custom_branding_server_mocks.mdx index 7786c2376e36a..7bcf4302f219c 100644 --- a/api_docs/kbn_core_custom_branding_server_mocks.mdx +++ b/api_docs/kbn_core_custom_branding_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server-mocks title: "@kbn/core-custom-branding-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server-mocks'] --- import kbnCoreCustomBrandingServerMocksObj from './kbn_core_custom_branding_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser.mdx b/api_docs/kbn_core_deprecations_browser.mdx index d64934d2176b5..15624a9ecaa4b 100644 --- a/api_docs/kbn_core_deprecations_browser.mdx +++ b/api_docs/kbn_core_deprecations_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser title: "@kbn/core-deprecations-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser'] --- import kbnCoreDeprecationsBrowserObj from './kbn_core_deprecations_browser.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_internal.mdx b/api_docs/kbn_core_deprecations_browser_internal.mdx index c9d02fc671b61..eba3ea6f364aa 100644 --- a/api_docs/kbn_core_deprecations_browser_internal.mdx +++ b/api_docs/kbn_core_deprecations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-internal title: "@kbn/core-deprecations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-internal'] --- import kbnCoreDeprecationsBrowserInternalObj from './kbn_core_deprecations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_mocks.mdx b/api_docs/kbn_core_deprecations_browser_mocks.mdx index ebc6193a0a890..905cf34bd3536 100644 --- a/api_docs/kbn_core_deprecations_browser_mocks.mdx +++ b/api_docs/kbn_core_deprecations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-mocks title: "@kbn/core-deprecations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-mocks'] --- import kbnCoreDeprecationsBrowserMocksObj from './kbn_core_deprecations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_common.mdx b/api_docs/kbn_core_deprecations_common.mdx index 7bede1f00227a..c3ac86c9267f1 100644 --- a/api_docs/kbn_core_deprecations_common.mdx +++ b/api_docs/kbn_core_deprecations_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-common title: "@kbn/core-deprecations-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-common'] --- import kbnCoreDeprecationsCommonObj from './kbn_core_deprecations_common.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server.mdx b/api_docs/kbn_core_deprecations_server.mdx index 53f16a536ccd9..7a6798aa9fcd4 100644 --- a/api_docs/kbn_core_deprecations_server.mdx +++ b/api_docs/kbn_core_deprecations_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server title: "@kbn/core-deprecations-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server'] --- import kbnCoreDeprecationsServerObj from './kbn_core_deprecations_server.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_internal.mdx b/api_docs/kbn_core_deprecations_server_internal.mdx index de22ce1206784..6bbfebbafba42 100644 --- a/api_docs/kbn_core_deprecations_server_internal.mdx +++ b/api_docs/kbn_core_deprecations_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-internal title: "@kbn/core-deprecations-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-internal'] --- import kbnCoreDeprecationsServerInternalObj from './kbn_core_deprecations_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_mocks.mdx b/api_docs/kbn_core_deprecations_server_mocks.mdx index 96e2ee87bf7df..372be70ca787b 100644 --- a/api_docs/kbn_core_deprecations_server_mocks.mdx +++ b/api_docs/kbn_core_deprecations_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-mocks title: "@kbn/core-deprecations-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-mocks'] --- import kbnCoreDeprecationsServerMocksObj from './kbn_core_deprecations_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser.mdx b/api_docs/kbn_core_doc_links_browser.mdx index f824ff311f24d..ae418c1985f56 100644 --- a/api_docs/kbn_core_doc_links_browser.mdx +++ b/api_docs/kbn_core_doc_links_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser title: "@kbn/core-doc-links-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser'] --- import kbnCoreDocLinksBrowserObj from './kbn_core_doc_links_browser.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser_mocks.mdx b/api_docs/kbn_core_doc_links_browser_mocks.mdx index 99bfd3cdab7b2..efe31723d88c8 100644 --- a/api_docs/kbn_core_doc_links_browser_mocks.mdx +++ b/api_docs/kbn_core_doc_links_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser-mocks title: "@kbn/core-doc-links-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser-mocks'] --- import kbnCoreDocLinksBrowserMocksObj from './kbn_core_doc_links_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server.mdx b/api_docs/kbn_core_doc_links_server.mdx index 4c5b2948c3d77..f8b7763b2ce93 100644 --- a/api_docs/kbn_core_doc_links_server.mdx +++ b/api_docs/kbn_core_doc_links_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server title: "@kbn/core-doc-links-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server'] --- import kbnCoreDocLinksServerObj from './kbn_core_doc_links_server.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server_mocks.mdx b/api_docs/kbn_core_doc_links_server_mocks.mdx index ce98f906603d9..e0777935c8418 100644 --- a/api_docs/kbn_core_doc_links_server_mocks.mdx +++ b/api_docs/kbn_core_doc_links_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server-mocks title: "@kbn/core-doc-links-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server-mocks'] --- import kbnCoreDocLinksServerMocksObj from './kbn_core_doc_links_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx index c115829007b64..197487e86b674 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-internal title: "@kbn/core-elasticsearch-client-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-internal'] --- import kbnCoreElasticsearchClientServerInternalObj from './kbn_core_elasticsearch_client_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx index 6f10858cde756..043d5c12ae4fb 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-mocks title: "@kbn/core-elasticsearch-client-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-mocks'] --- import kbnCoreElasticsearchClientServerMocksObj from './kbn_core_elasticsearch_client_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server.mdx b/api_docs/kbn_core_elasticsearch_server.mdx index f37c271152bf9..b730e4e2d9f56 100644 --- a/api_docs/kbn_core_elasticsearch_server.mdx +++ b/api_docs/kbn_core_elasticsearch_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server title: "@kbn/core-elasticsearch-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server'] --- import kbnCoreElasticsearchServerObj from './kbn_core_elasticsearch_server.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_internal.mdx b/api_docs/kbn_core_elasticsearch_server_internal.mdx index 07d949d3f9223..2771bb211723f 100644 --- a/api_docs/kbn_core_elasticsearch_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-internal title: "@kbn/core-elasticsearch-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-internal'] --- import kbnCoreElasticsearchServerInternalObj from './kbn_core_elasticsearch_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_server_mocks.mdx index 5346a2fcd9f39..c7e272592da42 100644 --- a/api_docs/kbn_core_elasticsearch_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-mocks title: "@kbn/core-elasticsearch-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-mocks'] --- import kbnCoreElasticsearchServerMocksObj from './kbn_core_elasticsearch_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_internal.mdx b/api_docs/kbn_core_environment_server_internal.mdx index 811a3031a256a..217132d91ebb3 100644 --- a/api_docs/kbn_core_environment_server_internal.mdx +++ b/api_docs/kbn_core_environment_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-internal title: "@kbn/core-environment-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-internal'] --- import kbnCoreEnvironmentServerInternalObj from './kbn_core_environment_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_mocks.mdx b/api_docs/kbn_core_environment_server_mocks.mdx index f8c94881d9c97..bf6c194b30701 100644 --- a/api_docs/kbn_core_environment_server_mocks.mdx +++ b/api_docs/kbn_core_environment_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-mocks title: "@kbn/core-environment-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-mocks'] --- import kbnCoreEnvironmentServerMocksObj from './kbn_core_environment_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser.mdx b/api_docs/kbn_core_execution_context_browser.mdx index 3a3871b6aae73..c17773430fa51 100644 --- a/api_docs/kbn_core_execution_context_browser.mdx +++ b/api_docs/kbn_core_execution_context_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser title: "@kbn/core-execution-context-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser'] --- import kbnCoreExecutionContextBrowserObj from './kbn_core_execution_context_browser.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_internal.mdx b/api_docs/kbn_core_execution_context_browser_internal.mdx index bd29bff05ce31..cc9240dcbd640 100644 --- a/api_docs/kbn_core_execution_context_browser_internal.mdx +++ b/api_docs/kbn_core_execution_context_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-internal title: "@kbn/core-execution-context-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-internal'] --- import kbnCoreExecutionContextBrowserInternalObj from './kbn_core_execution_context_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_mocks.mdx b/api_docs/kbn_core_execution_context_browser_mocks.mdx index 91fe352510bc1..ffd602f9ed50f 100644 --- a/api_docs/kbn_core_execution_context_browser_mocks.mdx +++ b/api_docs/kbn_core_execution_context_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-mocks title: "@kbn/core-execution-context-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-mocks'] --- import kbnCoreExecutionContextBrowserMocksObj from './kbn_core_execution_context_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_common.mdx b/api_docs/kbn_core_execution_context_common.mdx index aa48028e04662..fa0c02252a8fd 100644 --- a/api_docs/kbn_core_execution_context_common.mdx +++ b/api_docs/kbn_core_execution_context_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-common title: "@kbn/core-execution-context-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-common'] --- import kbnCoreExecutionContextCommonObj from './kbn_core_execution_context_common.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server.mdx b/api_docs/kbn_core_execution_context_server.mdx index fb4bc5b844450..57d98ea308eb9 100644 --- a/api_docs/kbn_core_execution_context_server.mdx +++ b/api_docs/kbn_core_execution_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server title: "@kbn/core-execution-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server'] --- import kbnCoreExecutionContextServerObj from './kbn_core_execution_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_internal.mdx b/api_docs/kbn_core_execution_context_server_internal.mdx index 2632b11121810..b1237b7d22f77 100644 --- a/api_docs/kbn_core_execution_context_server_internal.mdx +++ b/api_docs/kbn_core_execution_context_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-internal title: "@kbn/core-execution-context-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-internal'] --- import kbnCoreExecutionContextServerInternalObj from './kbn_core_execution_context_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_mocks.mdx b/api_docs/kbn_core_execution_context_server_mocks.mdx index e58a57a32265a..1e683adbc4999 100644 --- a/api_docs/kbn_core_execution_context_server_mocks.mdx +++ b/api_docs/kbn_core_execution_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-mocks title: "@kbn/core-execution-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-mocks'] --- import kbnCoreExecutionContextServerMocksObj from './kbn_core_execution_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser.mdx b/api_docs/kbn_core_fatal_errors_browser.mdx index 364dc4014f240..1f218e5db13b9 100644 --- a/api_docs/kbn_core_fatal_errors_browser.mdx +++ b/api_docs/kbn_core_fatal_errors_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser title: "@kbn/core-fatal-errors-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser'] --- import kbnCoreFatalErrorsBrowserObj from './kbn_core_fatal_errors_browser.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx index b29055558e2b9..b6b233dd846eb 100644 --- a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx +++ b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser-mocks title: "@kbn/core-fatal-errors-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser-mocks'] --- import kbnCoreFatalErrorsBrowserMocksObj from './kbn_core_fatal_errors_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser.mdx b/api_docs/kbn_core_feature_flags_browser.mdx index 3ce0ad5823069..870968d4a3ed5 100644 --- a/api_docs/kbn_core_feature_flags_browser.mdx +++ b/api_docs/kbn_core_feature_flags_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser title: "@kbn/core-feature-flags-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser'] --- import kbnCoreFeatureFlagsBrowserObj from './kbn_core_feature_flags_browser.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser_internal.mdx b/api_docs/kbn_core_feature_flags_browser_internal.mdx index 4ae0d34fdbdc3..0129543088670 100644 --- a/api_docs/kbn_core_feature_flags_browser_internal.mdx +++ b/api_docs/kbn_core_feature_flags_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser-internal title: "@kbn/core-feature-flags-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser-internal'] --- import kbnCoreFeatureFlagsBrowserInternalObj from './kbn_core_feature_flags_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser_mocks.mdx b/api_docs/kbn_core_feature_flags_browser_mocks.mdx index 3fd319b40bca0..fdb07a16cea80 100644 --- a/api_docs/kbn_core_feature_flags_browser_mocks.mdx +++ b/api_docs/kbn_core_feature_flags_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser-mocks title: "@kbn/core-feature-flags-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser-mocks'] --- import kbnCoreFeatureFlagsBrowserMocksObj from './kbn_core_feature_flags_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server.mdx b/api_docs/kbn_core_feature_flags_server.mdx index 49f571e977bbd..0960305486040 100644 --- a/api_docs/kbn_core_feature_flags_server.mdx +++ b/api_docs/kbn_core_feature_flags_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server title: "@kbn/core-feature-flags-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server'] --- import kbnCoreFeatureFlagsServerObj from './kbn_core_feature_flags_server.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server_internal.mdx b/api_docs/kbn_core_feature_flags_server_internal.mdx index aa560e98e0ba3..61202ae3ffd18 100644 --- a/api_docs/kbn_core_feature_flags_server_internal.mdx +++ b/api_docs/kbn_core_feature_flags_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server-internal title: "@kbn/core-feature-flags-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server-internal'] --- import kbnCoreFeatureFlagsServerInternalObj from './kbn_core_feature_flags_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server_mocks.mdx b/api_docs/kbn_core_feature_flags_server_mocks.mdx index bb1bfba062a2d..8bfe69c023bee 100644 --- a/api_docs/kbn_core_feature_flags_server_mocks.mdx +++ b/api_docs/kbn_core_feature_flags_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server-mocks title: "@kbn/core-feature-flags-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server-mocks'] --- import kbnCoreFeatureFlagsServerMocksObj from './kbn_core_feature_flags_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser.mdx b/api_docs/kbn_core_http_browser.mdx index d56a5bf8242c2..6e5a7ec8508fd 100644 --- a/api_docs/kbn_core_http_browser.mdx +++ b/api_docs/kbn_core_http_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser title: "@kbn/core-http-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser'] --- import kbnCoreHttpBrowserObj from './kbn_core_http_browser.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_internal.mdx b/api_docs/kbn_core_http_browser_internal.mdx index aa52cdf9be3b3..4047ecdbd4f66 100644 --- a/api_docs/kbn_core_http_browser_internal.mdx +++ b/api_docs/kbn_core_http_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-internal title: "@kbn/core-http-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-internal'] --- import kbnCoreHttpBrowserInternalObj from './kbn_core_http_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_mocks.mdx b/api_docs/kbn_core_http_browser_mocks.mdx index 5b6199b2ebb75..db22f5c042a94 100644 --- a/api_docs/kbn_core_http_browser_mocks.mdx +++ b/api_docs/kbn_core_http_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-mocks title: "@kbn/core-http-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-mocks'] --- import kbnCoreHttpBrowserMocksObj from './kbn_core_http_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_common.mdx b/api_docs/kbn_core_http_common.mdx index fbbb79fd0d949..fcc51bd938797 100644 --- a/api_docs/kbn_core_http_common.mdx +++ b/api_docs/kbn_core_http_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-common title: "@kbn/core-http-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-common'] --- import kbnCoreHttpCommonObj from './kbn_core_http_common.devdocs.json'; diff --git a/api_docs/kbn_core_http_context_server_mocks.mdx b/api_docs/kbn_core_http_context_server_mocks.mdx index c0063d3599efb..67ab0e68ba87b 100644 --- a/api_docs/kbn_core_http_context_server_mocks.mdx +++ b/api_docs/kbn_core_http_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-context-server-mocks title: "@kbn/core-http-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-context-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-context-server-mocks'] --- import kbnCoreHttpContextServerMocksObj from './kbn_core_http_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_request_handler_context_server.mdx b/api_docs/kbn_core_http_request_handler_context_server.mdx index 66feeed2405df..6a90c6e3706c4 100644 --- a/api_docs/kbn_core_http_request_handler_context_server.mdx +++ b/api_docs/kbn_core_http_request_handler_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-request-handler-context-server title: "@kbn/core-http-request-handler-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-request-handler-context-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-request-handler-context-server'] --- import kbnCoreHttpRequestHandlerContextServerObj from './kbn_core_http_request_handler_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server.mdx b/api_docs/kbn_core_http_resources_server.mdx index ecfc569baeea0..213c7c9ba1833 100644 --- a/api_docs/kbn_core_http_resources_server.mdx +++ b/api_docs/kbn_core_http_resources_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server title: "@kbn/core-http-resources-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server'] --- import kbnCoreHttpResourcesServerObj from './kbn_core_http_resources_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_internal.mdx b/api_docs/kbn_core_http_resources_server_internal.mdx index 0750392dcfe91..03f1edf006bb0 100644 --- a/api_docs/kbn_core_http_resources_server_internal.mdx +++ b/api_docs/kbn_core_http_resources_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-internal title: "@kbn/core-http-resources-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-internal'] --- import kbnCoreHttpResourcesServerInternalObj from './kbn_core_http_resources_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_mocks.mdx b/api_docs/kbn_core_http_resources_server_mocks.mdx index 80f42a8cdc0f6..00d35c6f550dc 100644 --- a/api_docs/kbn_core_http_resources_server_mocks.mdx +++ b/api_docs/kbn_core_http_resources_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-mocks title: "@kbn/core-http-resources-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-mocks'] --- import kbnCoreHttpResourcesServerMocksObj from './kbn_core_http_resources_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_internal.mdx b/api_docs/kbn_core_http_router_server_internal.mdx index db22340562d1f..4899d4046213a 100644 --- a/api_docs/kbn_core_http_router_server_internal.mdx +++ b/api_docs/kbn_core_http_router_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-internal title: "@kbn/core-http-router-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-internal'] --- import kbnCoreHttpRouterServerInternalObj from './kbn_core_http_router_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_mocks.mdx b/api_docs/kbn_core_http_router_server_mocks.mdx index 37a83b33ffbe0..d58fac2cba370 100644 --- a/api_docs/kbn_core_http_router_server_mocks.mdx +++ b/api_docs/kbn_core_http_router_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-mocks title: "@kbn/core-http-router-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-mocks'] --- import kbnCoreHttpRouterServerMocksObj from './kbn_core_http_router_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_server.mdx b/api_docs/kbn_core_http_server.mdx index d4f41b92d5a31..cf83e2a6c1b1b 100644 --- a/api_docs/kbn_core_http_server.mdx +++ b/api_docs/kbn_core_http_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server title: "@kbn/core-http-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server'] --- import kbnCoreHttpServerObj from './kbn_core_http_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_internal.mdx b/api_docs/kbn_core_http_server_internal.mdx index 58556c9056875..81dc776df8498 100644 --- a/api_docs/kbn_core_http_server_internal.mdx +++ b/api_docs/kbn_core_http_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-internal title: "@kbn/core-http-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-internal'] --- import kbnCoreHttpServerInternalObj from './kbn_core_http_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_mocks.mdx b/api_docs/kbn_core_http_server_mocks.mdx index 11fd5acaa07b7..67a2df8f96f77 100644 --- a/api_docs/kbn_core_http_server_mocks.mdx +++ b/api_docs/kbn_core_http_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-mocks title: "@kbn/core-http-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-mocks'] --- import kbnCoreHttpServerMocksObj from './kbn_core_http_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_utils.mdx b/api_docs/kbn_core_http_server_utils.mdx index 493ccf819182c..93d67398dbaa3 100644 --- a/api_docs/kbn_core_http_server_utils.mdx +++ b/api_docs/kbn_core_http_server_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-utils title: "@kbn/core-http-server-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-utils'] --- import kbnCoreHttpServerUtilsObj from './kbn_core_http_server_utils.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser.mdx b/api_docs/kbn_core_i18n_browser.mdx index 6722e5036f1b5..5d4b391fb3dfb 100644 --- a/api_docs/kbn_core_i18n_browser.mdx +++ b/api_docs/kbn_core_i18n_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser title: "@kbn/core-i18n-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser'] --- import kbnCoreI18nBrowserObj from './kbn_core_i18n_browser.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser_mocks.mdx b/api_docs/kbn_core_i18n_browser_mocks.mdx index b79a18f72938d..47e2f3bed42c6 100644 --- a/api_docs/kbn_core_i18n_browser_mocks.mdx +++ b/api_docs/kbn_core_i18n_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser-mocks title: "@kbn/core-i18n-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser-mocks'] --- import kbnCoreI18nBrowserMocksObj from './kbn_core_i18n_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server.mdx b/api_docs/kbn_core_i18n_server.mdx index 1043ee9855178..928482ef5a642 100644 --- a/api_docs/kbn_core_i18n_server.mdx +++ b/api_docs/kbn_core_i18n_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server title: "@kbn/core-i18n-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server'] --- import kbnCoreI18nServerObj from './kbn_core_i18n_server.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_internal.mdx b/api_docs/kbn_core_i18n_server_internal.mdx index e16cc440242ce..b1dd63a97f7e0 100644 --- a/api_docs/kbn_core_i18n_server_internal.mdx +++ b/api_docs/kbn_core_i18n_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-internal title: "@kbn/core-i18n-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-internal'] --- import kbnCoreI18nServerInternalObj from './kbn_core_i18n_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_mocks.mdx b/api_docs/kbn_core_i18n_server_mocks.mdx index 118a60042da87..9f42f2f5b4ad7 100644 --- a/api_docs/kbn_core_i18n_server_mocks.mdx +++ b/api_docs/kbn_core_i18n_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-mocks title: "@kbn/core-i18n-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-mocks'] --- import kbnCoreI18nServerMocksObj from './kbn_core_i18n_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx index 1f7c7a60570e0..d65d1f6ac70b4 100644 --- a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx +++ b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-injected-metadata-browser-mocks title: "@kbn/core-injected-metadata-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-injected-metadata-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-injected-metadata-browser-mocks'] --- import kbnCoreInjectedMetadataBrowserMocksObj from './kbn_core_injected_metadata_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_internal.mdx b/api_docs/kbn_core_integrations_browser_internal.mdx index 387554634fd32..c72a2d93702da 100644 --- a/api_docs/kbn_core_integrations_browser_internal.mdx +++ b/api_docs/kbn_core_integrations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-internal title: "@kbn/core-integrations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-internal'] --- import kbnCoreIntegrationsBrowserInternalObj from './kbn_core_integrations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_mocks.mdx b/api_docs/kbn_core_integrations_browser_mocks.mdx index f0edafa719b5a..6ddc424b2c8d9 100644 --- a/api_docs/kbn_core_integrations_browser_mocks.mdx +++ b/api_docs/kbn_core_integrations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-mocks title: "@kbn/core-integrations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-mocks'] --- import kbnCoreIntegrationsBrowserMocksObj from './kbn_core_integrations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser.mdx b/api_docs/kbn_core_lifecycle_browser.mdx index 03f01dc8089b9..1227a865e0d29 100644 --- a/api_docs/kbn_core_lifecycle_browser.mdx +++ b/api_docs/kbn_core_lifecycle_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser title: "@kbn/core-lifecycle-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser'] --- import kbnCoreLifecycleBrowserObj from './kbn_core_lifecycle_browser.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser_mocks.mdx b/api_docs/kbn_core_lifecycle_browser_mocks.mdx index 04b4a6f60ea1f..142110fee68ff 100644 --- a/api_docs/kbn_core_lifecycle_browser_mocks.mdx +++ b/api_docs/kbn_core_lifecycle_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser-mocks title: "@kbn/core-lifecycle-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser-mocks'] --- import kbnCoreLifecycleBrowserMocksObj from './kbn_core_lifecycle_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_server.mdx b/api_docs/kbn_core_lifecycle_server.mdx index 2b3bb8299ad57..7f4343e84a9a2 100644 --- a/api_docs/kbn_core_lifecycle_server.mdx +++ b/api_docs/kbn_core_lifecycle_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-server title: "@kbn/core-lifecycle-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-server'] --- import kbnCoreLifecycleServerObj from './kbn_core_lifecycle_server.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_server_mocks.mdx b/api_docs/kbn_core_lifecycle_server_mocks.mdx index d67fb707178ff..3b351a1e5dad5 100644 --- a/api_docs/kbn_core_lifecycle_server_mocks.mdx +++ b/api_docs/kbn_core_lifecycle_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-server-mocks title: "@kbn/core-lifecycle-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-server-mocks'] --- import kbnCoreLifecycleServerMocksObj from './kbn_core_lifecycle_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_logging_browser_mocks.mdx b/api_docs/kbn_core_logging_browser_mocks.mdx index a3ad061c20792..bd9868bbb02ad 100644 --- a/api_docs/kbn_core_logging_browser_mocks.mdx +++ b/api_docs/kbn_core_logging_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-browser-mocks title: "@kbn/core-logging-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-browser-mocks'] --- import kbnCoreLoggingBrowserMocksObj from './kbn_core_logging_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_logging_common_internal.mdx b/api_docs/kbn_core_logging_common_internal.mdx index 145504b399e3d..f8b97238f83b0 100644 --- a/api_docs/kbn_core_logging_common_internal.mdx +++ b/api_docs/kbn_core_logging_common_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-common-internal title: "@kbn/core-logging-common-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-common-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-common-internal'] --- import kbnCoreLoggingCommonInternalObj from './kbn_core_logging_common_internal.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server.mdx b/api_docs/kbn_core_logging_server.mdx index 56dcb8d8f2771..2d720b6d75242 100644 --- a/api_docs/kbn_core_logging_server.mdx +++ b/api_docs/kbn_core_logging_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server title: "@kbn/core-logging-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server'] --- import kbnCoreLoggingServerObj from './kbn_core_logging_server.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_internal.mdx b/api_docs/kbn_core_logging_server_internal.mdx index b19ac3a1d068b..e25af0c6d2e30 100644 --- a/api_docs/kbn_core_logging_server_internal.mdx +++ b/api_docs/kbn_core_logging_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-internal title: "@kbn/core-logging-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-internal'] --- import kbnCoreLoggingServerInternalObj from './kbn_core_logging_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_mocks.mdx b/api_docs/kbn_core_logging_server_mocks.mdx index 708fde40bce3e..f8675722bad7f 100644 --- a/api_docs/kbn_core_logging_server_mocks.mdx +++ b/api_docs/kbn_core_logging_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-mocks title: "@kbn/core-logging-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-mocks'] --- import kbnCoreLoggingServerMocksObj from './kbn_core_logging_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_internal.mdx b/api_docs/kbn_core_metrics_collectors_server_internal.mdx index 09f502ff2c101..4583b01f6c818 100644 --- a/api_docs/kbn_core_metrics_collectors_server_internal.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-internal title: "@kbn/core-metrics-collectors-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-internal'] --- import kbnCoreMetricsCollectorsServerInternalObj from './kbn_core_metrics_collectors_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx index d34ad20f4eb6f..cc7aebcbe2180 100644 --- a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-mocks title: "@kbn/core-metrics-collectors-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-mocks'] --- import kbnCoreMetricsCollectorsServerMocksObj from './kbn_core_metrics_collectors_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server.mdx b/api_docs/kbn_core_metrics_server.mdx index a8ac0039ce148..68942520cad88 100644 --- a/api_docs/kbn_core_metrics_server.mdx +++ b/api_docs/kbn_core_metrics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server title: "@kbn/core-metrics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server'] --- import kbnCoreMetricsServerObj from './kbn_core_metrics_server.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_internal.mdx b/api_docs/kbn_core_metrics_server_internal.mdx index 84cf98b78d3d6..4e931e15f33ec 100644 --- a/api_docs/kbn_core_metrics_server_internal.mdx +++ b/api_docs/kbn_core_metrics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-internal title: "@kbn/core-metrics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-internal'] --- import kbnCoreMetricsServerInternalObj from './kbn_core_metrics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_mocks.mdx b/api_docs/kbn_core_metrics_server_mocks.mdx index 01c6a95eee366..317ca889c4531 100644 --- a/api_docs/kbn_core_metrics_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-mocks title: "@kbn/core-metrics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-mocks'] --- import kbnCoreMetricsServerMocksObj from './kbn_core_metrics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_mount_utils_browser.mdx b/api_docs/kbn_core_mount_utils_browser.mdx index 4d388f63fb440..15b9bad5b1303 100644 --- a/api_docs/kbn_core_mount_utils_browser.mdx +++ b/api_docs/kbn_core_mount_utils_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-mount-utils-browser title: "@kbn/core-mount-utils-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-mount-utils-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-mount-utils-browser'] --- import kbnCoreMountUtilsBrowserObj from './kbn_core_mount_utils_browser.devdocs.json'; diff --git a/api_docs/kbn_core_node_server.mdx b/api_docs/kbn_core_node_server.mdx index e2db5e89fef3a..416f61ba3e328 100644 --- a/api_docs/kbn_core_node_server.mdx +++ b/api_docs/kbn_core_node_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server title: "@kbn/core-node-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server'] --- import kbnCoreNodeServerObj from './kbn_core_node_server.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_internal.mdx b/api_docs/kbn_core_node_server_internal.mdx index 8b4cc92ba6785..aab26a0fe97fb 100644 --- a/api_docs/kbn_core_node_server_internal.mdx +++ b/api_docs/kbn_core_node_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-internal title: "@kbn/core-node-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-internal'] --- import kbnCoreNodeServerInternalObj from './kbn_core_node_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_mocks.mdx b/api_docs/kbn_core_node_server_mocks.mdx index 6cbf0a5a1f1c8..c3e4a3dcb79cd 100644 --- a/api_docs/kbn_core_node_server_mocks.mdx +++ b/api_docs/kbn_core_node_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-mocks title: "@kbn/core-node-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-mocks'] --- import kbnCoreNodeServerMocksObj from './kbn_core_node_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser.mdx b/api_docs/kbn_core_notifications_browser.mdx index c580889286c07..871e49499904d 100644 --- a/api_docs/kbn_core_notifications_browser.mdx +++ b/api_docs/kbn_core_notifications_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser title: "@kbn/core-notifications-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser'] --- import kbnCoreNotificationsBrowserObj from './kbn_core_notifications_browser.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_internal.mdx b/api_docs/kbn_core_notifications_browser_internal.mdx index f85d6ef497be5..39879298fc644 100644 --- a/api_docs/kbn_core_notifications_browser_internal.mdx +++ b/api_docs/kbn_core_notifications_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-internal title: "@kbn/core-notifications-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-internal'] --- import kbnCoreNotificationsBrowserInternalObj from './kbn_core_notifications_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_mocks.mdx b/api_docs/kbn_core_notifications_browser_mocks.mdx index 78faf01f3da48..c6ac46129c2d7 100644 --- a/api_docs/kbn_core_notifications_browser_mocks.mdx +++ b/api_docs/kbn_core_notifications_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-mocks title: "@kbn/core-notifications-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-mocks'] --- import kbnCoreNotificationsBrowserMocksObj from './kbn_core_notifications_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser.mdx b/api_docs/kbn_core_overlays_browser.mdx index 1ad6cc136ac0a..56d9d568d884d 100644 --- a/api_docs/kbn_core_overlays_browser.mdx +++ b/api_docs/kbn_core_overlays_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser title: "@kbn/core-overlays-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser'] --- import kbnCoreOverlaysBrowserObj from './kbn_core_overlays_browser.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_internal.mdx b/api_docs/kbn_core_overlays_browser_internal.mdx index 800663918b321..182a493e97d18 100644 --- a/api_docs/kbn_core_overlays_browser_internal.mdx +++ b/api_docs/kbn_core_overlays_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-internal title: "@kbn/core-overlays-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-internal'] --- import kbnCoreOverlaysBrowserInternalObj from './kbn_core_overlays_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_mocks.mdx b/api_docs/kbn_core_overlays_browser_mocks.mdx index bde7e5e666088..6eb95d83b7d94 100644 --- a/api_docs/kbn_core_overlays_browser_mocks.mdx +++ b/api_docs/kbn_core_overlays_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-mocks title: "@kbn/core-overlays-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-mocks'] --- import kbnCoreOverlaysBrowserMocksObj from './kbn_core_overlays_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser.mdx b/api_docs/kbn_core_plugins_browser.mdx index 83fac272412b2..3dceaf998d831 100644 --- a/api_docs/kbn_core_plugins_browser.mdx +++ b/api_docs/kbn_core_plugins_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser title: "@kbn/core-plugins-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser'] --- import kbnCorePluginsBrowserObj from './kbn_core_plugins_browser.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser_mocks.mdx b/api_docs/kbn_core_plugins_browser_mocks.mdx index 3acb23e2f7a48..614c911f51c89 100644 --- a/api_docs/kbn_core_plugins_browser_mocks.mdx +++ b/api_docs/kbn_core_plugins_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser-mocks title: "@kbn/core-plugins-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser-mocks'] --- import kbnCorePluginsBrowserMocksObj from './kbn_core_plugins_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_contracts_browser.mdx b/api_docs/kbn_core_plugins_contracts_browser.mdx index 479de39b00f19..5ba4f7e4b4bcd 100644 --- a/api_docs/kbn_core_plugins_contracts_browser.mdx +++ b/api_docs/kbn_core_plugins_contracts_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-contracts-browser title: "@kbn/core-plugins-contracts-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-contracts-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-contracts-browser'] --- import kbnCorePluginsContractsBrowserObj from './kbn_core_plugins_contracts_browser.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_contracts_server.mdx b/api_docs/kbn_core_plugins_contracts_server.mdx index 2d3347b02feb0..4dce9c747b396 100644 --- a/api_docs/kbn_core_plugins_contracts_server.mdx +++ b/api_docs/kbn_core_plugins_contracts_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-contracts-server title: "@kbn/core-plugins-contracts-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-contracts-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-contracts-server'] --- import kbnCorePluginsContractsServerObj from './kbn_core_plugins_contracts_server.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_server.mdx b/api_docs/kbn_core_plugins_server.mdx index 2be95db0c71d9..3fc2636928d22 100644 --- a/api_docs/kbn_core_plugins_server.mdx +++ b/api_docs/kbn_core_plugins_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-server title: "@kbn/core-plugins-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-server'] --- import kbnCorePluginsServerObj from './kbn_core_plugins_server.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_server_mocks.mdx b/api_docs/kbn_core_plugins_server_mocks.mdx index 4de063c26c73f..a0e039179cae9 100644 --- a/api_docs/kbn_core_plugins_server_mocks.mdx +++ b/api_docs/kbn_core_plugins_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-server-mocks title: "@kbn/core-plugins-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-server-mocks'] --- import kbnCorePluginsServerMocksObj from './kbn_core_plugins_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server.mdx b/api_docs/kbn_core_preboot_server.mdx index f7229c7b40ab5..2a75865868257 100644 --- a/api_docs/kbn_core_preboot_server.mdx +++ b/api_docs/kbn_core_preboot_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server title: "@kbn/core-preboot-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server'] --- import kbnCorePrebootServerObj from './kbn_core_preboot_server.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server_mocks.mdx b/api_docs/kbn_core_preboot_server_mocks.mdx index 039d0e71a2f48..5e0e374a93c03 100644 --- a/api_docs/kbn_core_preboot_server_mocks.mdx +++ b/api_docs/kbn_core_preboot_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server-mocks title: "@kbn/core-preboot-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server-mocks'] --- import kbnCorePrebootServerMocksObj from './kbn_core_preboot_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_browser.mdx b/api_docs/kbn_core_rendering_browser.mdx index 5b171dfab28cd..7638ff7a536bc 100644 --- a/api_docs/kbn_core_rendering_browser.mdx +++ b/api_docs/kbn_core_rendering_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-browser title: "@kbn/core-rendering-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-browser'] --- import kbnCoreRenderingBrowserObj from './kbn_core_rendering_browser.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_browser_mocks.mdx b/api_docs/kbn_core_rendering_browser_mocks.mdx index 357b1d458e280..a50d864fd3614 100644 --- a/api_docs/kbn_core_rendering_browser_mocks.mdx +++ b/api_docs/kbn_core_rendering_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-browser-mocks title: "@kbn/core-rendering-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-browser-mocks'] --- import kbnCoreRenderingBrowserMocksObj from './kbn_core_rendering_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_internal.mdx b/api_docs/kbn_core_rendering_server_internal.mdx index d117349a15fde..2f853c37730a7 100644 --- a/api_docs/kbn_core_rendering_server_internal.mdx +++ b/api_docs/kbn_core_rendering_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-internal title: "@kbn/core-rendering-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-internal'] --- import kbnCoreRenderingServerInternalObj from './kbn_core_rendering_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_mocks.mdx b/api_docs/kbn_core_rendering_server_mocks.mdx index 14efc193fde8a..3e5d39a604546 100644 --- a/api_docs/kbn_core_rendering_server_mocks.mdx +++ b/api_docs/kbn_core_rendering_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-mocks title: "@kbn/core-rendering-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-mocks'] --- import kbnCoreRenderingServerMocksObj from './kbn_core_rendering_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_root_server_internal.mdx b/api_docs/kbn_core_root_server_internal.mdx index f53f8295d3a5a..38587acf7c1ca 100644 --- a/api_docs/kbn_core_root_server_internal.mdx +++ b/api_docs/kbn_core_root_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-root-server-internal title: "@kbn/core-root-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-root-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-root-server-internal'] --- import kbnCoreRootServerInternalObj from './kbn_core_root_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_browser.mdx b/api_docs/kbn_core_saved_objects_api_browser.mdx index 3d15a716b6486..5f9d615b06ed5 100644 --- a/api_docs/kbn_core_saved_objects_api_browser.mdx +++ b/api_docs/kbn_core_saved_objects_api_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-browser title: "@kbn/core-saved-objects-api-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-browser'] --- import kbnCoreSavedObjectsApiBrowserObj from './kbn_core_saved_objects_api_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server.mdx b/api_docs/kbn_core_saved_objects_api_server.mdx index b4402df0f3290..a63e52c3bd357 100644 --- a/api_docs/kbn_core_saved_objects_api_server.mdx +++ b/api_docs/kbn_core_saved_objects_api_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server title: "@kbn/core-saved-objects-api-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server'] --- import kbnCoreSavedObjectsApiServerObj from './kbn_core_saved_objects_api_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx index 829e166b059c3..188a8e50a0349 100644 --- a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server-mocks title: "@kbn/core-saved-objects-api-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server-mocks'] --- import kbnCoreSavedObjectsApiServerMocksObj from './kbn_core_saved_objects_api_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_internal.mdx b/api_docs/kbn_core_saved_objects_base_server_internal.mdx index e244b4d593f7f..41aa555588f81 100644 --- a/api_docs/kbn_core_saved_objects_base_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-internal title: "@kbn/core-saved-objects-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-internal'] --- import kbnCoreSavedObjectsBaseServerInternalObj from './kbn_core_saved_objects_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx index 3c05749f6eea9..ae56f2c100450 100644 --- a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-mocks title: "@kbn/core-saved-objects-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-mocks'] --- import kbnCoreSavedObjectsBaseServerMocksObj from './kbn_core_saved_objects_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser.mdx b/api_docs/kbn_core_saved_objects_browser.mdx index 2f79942b991d7..5678ec2c16616 100644 --- a/api_docs/kbn_core_saved_objects_browser.mdx +++ b/api_docs/kbn_core_saved_objects_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser title: "@kbn/core-saved-objects-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser'] --- import kbnCoreSavedObjectsBrowserObj from './kbn_core_saved_objects_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_internal.mdx b/api_docs/kbn_core_saved_objects_browser_internal.mdx index 01d6bcea1d5d1..091c3e42d5ae9 100644 --- a/api_docs/kbn_core_saved_objects_browser_internal.mdx +++ b/api_docs/kbn_core_saved_objects_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-internal title: "@kbn/core-saved-objects-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-internal'] --- import kbnCoreSavedObjectsBrowserInternalObj from './kbn_core_saved_objects_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_mocks.mdx b/api_docs/kbn_core_saved_objects_browser_mocks.mdx index c9bec8fb84665..944039588d1ee 100644 --- a/api_docs/kbn_core_saved_objects_browser_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-mocks title: "@kbn/core-saved-objects-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-mocks'] --- import kbnCoreSavedObjectsBrowserMocksObj from './kbn_core_saved_objects_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_common.mdx b/api_docs/kbn_core_saved_objects_common.mdx index c3a736a91fd4e..43f86f3d61c12 100644 --- a/api_docs/kbn_core_saved_objects_common.mdx +++ b/api_docs/kbn_core_saved_objects_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-common title: "@kbn/core-saved-objects-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-common'] --- import kbnCoreSavedObjectsCommonObj from './kbn_core_saved_objects_common.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx index 68d69acc33502..73ee9ba016a9f 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-internal title: "@kbn/core-saved-objects-import-export-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-internal'] --- import kbnCoreSavedObjectsImportExportServerInternalObj from './kbn_core_saved_objects_import_export_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx index 10861cc60bbdc..2016b85c604cb 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-mocks title: "@kbn/core-saved-objects-import-export-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-mocks'] --- import kbnCoreSavedObjectsImportExportServerMocksObj from './kbn_core_saved_objects_import_export_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx index d587bd6ff5e43..d641b9af7af38 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-internal title: "@kbn/core-saved-objects-migration-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-internal'] --- import kbnCoreSavedObjectsMigrationServerInternalObj from './kbn_core_saved_objects_migration_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx index 6a26c22f32c05..0f4bbf5780bf8 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-mocks title: "@kbn/core-saved-objects-migration-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-mocks'] --- import kbnCoreSavedObjectsMigrationServerMocksObj from './kbn_core_saved_objects_migration_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server.mdx b/api_docs/kbn_core_saved_objects_server.mdx index b047f7d47f3c1..823bc1c9b3394 100644 --- a/api_docs/kbn_core_saved_objects_server.mdx +++ b/api_docs/kbn_core_saved_objects_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server title: "@kbn/core-saved-objects-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server'] --- import kbnCoreSavedObjectsServerObj from './kbn_core_saved_objects_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_internal.mdx b/api_docs/kbn_core_saved_objects_server_internal.mdx index 44dac88c9e771..017ffaafdb75b 100644 --- a/api_docs/kbn_core_saved_objects_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-internal title: "@kbn/core-saved-objects-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-internal'] --- import kbnCoreSavedObjectsServerInternalObj from './kbn_core_saved_objects_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_mocks.mdx b/api_docs/kbn_core_saved_objects_server_mocks.mdx index 4d1cabec541a0..470ca66e3bfb4 100644 --- a/api_docs/kbn_core_saved_objects_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-mocks title: "@kbn/core-saved-objects-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-mocks'] --- import kbnCoreSavedObjectsServerMocksObj from './kbn_core_saved_objects_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_utils_server.mdx b/api_docs/kbn_core_saved_objects_utils_server.mdx index 82b3203fd6d1e..1e1b83754f956 100644 --- a/api_docs/kbn_core_saved_objects_utils_server.mdx +++ b/api_docs/kbn_core_saved_objects_utils_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-utils-server title: "@kbn/core-saved-objects-utils-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-utils-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-utils-server'] --- import kbnCoreSavedObjectsUtilsServerObj from './kbn_core_saved_objects_utils_server.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser.mdx b/api_docs/kbn_core_security_browser.mdx index 90b7256070ebc..d47289a5eac8f 100644 --- a/api_docs/kbn_core_security_browser.mdx +++ b/api_docs/kbn_core_security_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser title: "@kbn/core-security-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser'] --- import kbnCoreSecurityBrowserObj from './kbn_core_security_browser.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser_internal.mdx b/api_docs/kbn_core_security_browser_internal.mdx index 651f2faeb8889..6c5be7748efe6 100644 --- a/api_docs/kbn_core_security_browser_internal.mdx +++ b/api_docs/kbn_core_security_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser-internal title: "@kbn/core-security-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser-internal'] --- import kbnCoreSecurityBrowserInternalObj from './kbn_core_security_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser_mocks.mdx b/api_docs/kbn_core_security_browser_mocks.mdx index 9be693ebbeb24..14b4fd92a37c1 100644 --- a/api_docs/kbn_core_security_browser_mocks.mdx +++ b/api_docs/kbn_core_security_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser-mocks title: "@kbn/core-security-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser-mocks'] --- import kbnCoreSecurityBrowserMocksObj from './kbn_core_security_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_security_common.mdx b/api_docs/kbn_core_security_common.mdx index e1fd9a766abee..bb1c57a0b1993 100644 --- a/api_docs/kbn_core_security_common.mdx +++ b/api_docs/kbn_core_security_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-common title: "@kbn/core-security-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-common'] --- import kbnCoreSecurityCommonObj from './kbn_core_security_common.devdocs.json'; diff --git a/api_docs/kbn_core_security_server.mdx b/api_docs/kbn_core_security_server.mdx index 8b182e2fa4b6d..37aeb5e682af2 100644 --- a/api_docs/kbn_core_security_server.mdx +++ b/api_docs/kbn_core_security_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server title: "@kbn/core-security-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server'] --- import kbnCoreSecurityServerObj from './kbn_core_security_server.devdocs.json'; diff --git a/api_docs/kbn_core_security_server_internal.mdx b/api_docs/kbn_core_security_server_internal.mdx index 82b03b44b30f4..71544dd05ead7 100644 --- a/api_docs/kbn_core_security_server_internal.mdx +++ b/api_docs/kbn_core_security_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server-internal title: "@kbn/core-security-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server-internal'] --- import kbnCoreSecurityServerInternalObj from './kbn_core_security_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_security_server_mocks.mdx b/api_docs/kbn_core_security_server_mocks.mdx index a27fd77f76450..e5b90de28d2e7 100644 --- a/api_docs/kbn_core_security_server_mocks.mdx +++ b/api_docs/kbn_core_security_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server-mocks title: "@kbn/core-security-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server-mocks'] --- import kbnCoreSecurityServerMocksObj from './kbn_core_security_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_status_common.mdx b/api_docs/kbn_core_status_common.mdx index 752b07864d2fd..2e8571b2adfb0 100644 --- a/api_docs/kbn_core_status_common.mdx +++ b/api_docs/kbn_core_status_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-common title: "@kbn/core-status-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-common'] --- import kbnCoreStatusCommonObj from './kbn_core_status_common.devdocs.json'; diff --git a/api_docs/kbn_core_status_server.mdx b/api_docs/kbn_core_status_server.mdx index bdde39e72ccf1..6c0ffce1f4ac6 100644 --- a/api_docs/kbn_core_status_server.mdx +++ b/api_docs/kbn_core_status_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server title: "@kbn/core-status-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server'] --- import kbnCoreStatusServerObj from './kbn_core_status_server.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_internal.mdx b/api_docs/kbn_core_status_server_internal.mdx index 40b7ca8a2513d..3efee6022e867 100644 --- a/api_docs/kbn_core_status_server_internal.mdx +++ b/api_docs/kbn_core_status_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-internal title: "@kbn/core-status-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-internal'] --- import kbnCoreStatusServerInternalObj from './kbn_core_status_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_mocks.mdx b/api_docs/kbn_core_status_server_mocks.mdx index c152eca6572e6..b006e4df31ef4 100644 --- a/api_docs/kbn_core_status_server_mocks.mdx +++ b/api_docs/kbn_core_status_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-mocks title: "@kbn/core-status-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-mocks'] --- import kbnCoreStatusServerMocksObj from './kbn_core_status_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx index e5171c650481e..7d772ab446622 100644 --- a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx +++ b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-deprecations-getters title: "@kbn/core-test-helpers-deprecations-getters" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-deprecations-getters plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-deprecations-getters'] --- import kbnCoreTestHelpersDeprecationsGettersObj from './kbn_core_test_helpers_deprecations_getters.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx index 0c62987805c13..07065cd8a5e4d 100644 --- a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx +++ b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-http-setup-browser title: "@kbn/core-test-helpers-http-setup-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-http-setup-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-http-setup-browser'] --- import kbnCoreTestHelpersHttpSetupBrowserObj from './kbn_core_test_helpers_http_setup_browser.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_kbn_server.mdx b/api_docs/kbn_core_test_helpers_kbn_server.mdx index e33209c3541d2..f62a7fb584eb1 100644 --- a/api_docs/kbn_core_test_helpers_kbn_server.mdx +++ b/api_docs/kbn_core_test_helpers_kbn_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-kbn-server title: "@kbn/core-test-helpers-kbn-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-kbn-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-kbn-server'] --- import kbnCoreTestHelpersKbnServerObj from './kbn_core_test_helpers_kbn_server.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_model_versions.mdx b/api_docs/kbn_core_test_helpers_model_versions.mdx index e90067d7df021..4fe41d6ebafc1 100644 --- a/api_docs/kbn_core_test_helpers_model_versions.mdx +++ b/api_docs/kbn_core_test_helpers_model_versions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-model-versions title: "@kbn/core-test-helpers-model-versions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-model-versions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-model-versions'] --- import kbnCoreTestHelpersModelVersionsObj from './kbn_core_test_helpers_model_versions.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx index bcf624f0d6884..ff7342d43ef6d 100644 --- a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx +++ b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-so-type-serializer title: "@kbn/core-test-helpers-so-type-serializer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-so-type-serializer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-so-type-serializer'] --- import kbnCoreTestHelpersSoTypeSerializerObj from './kbn_core_test_helpers_so_type_serializer.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_test_utils.mdx b/api_docs/kbn_core_test_helpers_test_utils.mdx index cbf85cfbdac73..21195efb8e027 100644 --- a/api_docs/kbn_core_test_helpers_test_utils.mdx +++ b/api_docs/kbn_core_test_helpers_test_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-test-utils title: "@kbn/core-test-helpers-test-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-test-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-test-utils'] --- import kbnCoreTestHelpersTestUtilsObj from './kbn_core_test_helpers_test_utils.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser.mdx b/api_docs/kbn_core_theme_browser.mdx index 88430874db45d..a0b1879a9aadd 100644 --- a/api_docs/kbn_core_theme_browser.mdx +++ b/api_docs/kbn_core_theme_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser title: "@kbn/core-theme-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser'] --- import kbnCoreThemeBrowserObj from './kbn_core_theme_browser.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_internal.mdx b/api_docs/kbn_core_theme_browser_internal.mdx index 6143cc46089c7..574ebc91427f5 100644 --- a/api_docs/kbn_core_theme_browser_internal.mdx +++ b/api_docs/kbn_core_theme_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-internal title: "@kbn/core-theme-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-internal'] --- import kbnCoreThemeBrowserInternalObj from './kbn_core_theme_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_mocks.mdx b/api_docs/kbn_core_theme_browser_mocks.mdx index aa9f704ced7bd..602f001a79639 100644 --- a/api_docs/kbn_core_theme_browser_mocks.mdx +++ b/api_docs/kbn_core_theme_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-mocks title: "@kbn/core-theme-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-mocks'] --- import kbnCoreThemeBrowserMocksObj from './kbn_core_theme_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser.mdx b/api_docs/kbn_core_ui_settings_browser.mdx index 284cb4e08281f..223a7558626f3 100644 --- a/api_docs/kbn_core_ui_settings_browser.mdx +++ b/api_docs/kbn_core_ui_settings_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser title: "@kbn/core-ui-settings-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser'] --- import kbnCoreUiSettingsBrowserObj from './kbn_core_ui_settings_browser.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser_internal.mdx b/api_docs/kbn_core_ui_settings_browser_internal.mdx index 21508b4c48ebd..361cf96c5b9ca 100644 --- a/api_docs/kbn_core_ui_settings_browser_internal.mdx +++ b/api_docs/kbn_core_ui_settings_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-internal title: "@kbn/core-ui-settings-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-internal'] --- import kbnCoreUiSettingsBrowserInternalObj from './kbn_core_ui_settings_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser_mocks.mdx b/api_docs/kbn_core_ui_settings_browser_mocks.mdx index 394897d56133d..bf6984d47367e 100644 --- a/api_docs/kbn_core_ui_settings_browser_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-mocks title: "@kbn/core-ui-settings-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-mocks'] --- import kbnCoreUiSettingsBrowserMocksObj from './kbn_core_ui_settings_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_common.mdx b/api_docs/kbn_core_ui_settings_common.mdx index 3f564f72191b5..84b9e807d9a60 100644 --- a/api_docs/kbn_core_ui_settings_common.mdx +++ b/api_docs/kbn_core_ui_settings_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-common title: "@kbn/core-ui-settings-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-common'] --- import kbnCoreUiSettingsCommonObj from './kbn_core_ui_settings_common.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server.mdx b/api_docs/kbn_core_ui_settings_server.mdx index 10d3edb676ebb..4853fbb3b60fd 100644 --- a/api_docs/kbn_core_ui_settings_server.mdx +++ b/api_docs/kbn_core_ui_settings_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server title: "@kbn/core-ui-settings-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server'] --- import kbnCoreUiSettingsServerObj from './kbn_core_ui_settings_server.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server_internal.mdx b/api_docs/kbn_core_ui_settings_server_internal.mdx index c14e9f894a542..813ef0dd58ea9 100644 --- a/api_docs/kbn_core_ui_settings_server_internal.mdx +++ b/api_docs/kbn_core_ui_settings_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-internal title: "@kbn/core-ui-settings-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-internal'] --- import kbnCoreUiSettingsServerInternalObj from './kbn_core_ui_settings_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server_mocks.mdx b/api_docs/kbn_core_ui_settings_server_mocks.mdx index 52505e5ceaebf..7b9673b878eec 100644 --- a/api_docs/kbn_core_ui_settings_server_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-mocks title: "@kbn/core-ui-settings-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-mocks'] --- import kbnCoreUiSettingsServerMocksObj from './kbn_core_ui_settings_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server.mdx b/api_docs/kbn_core_usage_data_server.mdx index 3a55c243b8b5c..84c44dc71f656 100644 --- a/api_docs/kbn_core_usage_data_server.mdx +++ b/api_docs/kbn_core_usage_data_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server title: "@kbn/core-usage-data-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server'] --- import kbnCoreUsageDataServerObj from './kbn_core_usage_data_server.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_internal.mdx b/api_docs/kbn_core_usage_data_server_internal.mdx index ed1059a2381a5..fefbcd58209ec 100644 --- a/api_docs/kbn_core_usage_data_server_internal.mdx +++ b/api_docs/kbn_core_usage_data_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-internal title: "@kbn/core-usage-data-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-internal'] --- import kbnCoreUsageDataServerInternalObj from './kbn_core_usage_data_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_mocks.mdx b/api_docs/kbn_core_usage_data_server_mocks.mdx index 3eb8c00007597..d4ab6d784928b 100644 --- a/api_docs/kbn_core_usage_data_server_mocks.mdx +++ b/api_docs/kbn_core_usage_data_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-mocks title: "@kbn/core-usage-data-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-mocks'] --- import kbnCoreUsageDataServerMocksObj from './kbn_core_usage_data_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser.mdx b/api_docs/kbn_core_user_profile_browser.mdx index c29502e6615f3..81c822cda249e 100644 --- a/api_docs/kbn_core_user_profile_browser.mdx +++ b/api_docs/kbn_core_user_profile_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser title: "@kbn/core-user-profile-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser'] --- import kbnCoreUserProfileBrowserObj from './kbn_core_user_profile_browser.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser_internal.mdx b/api_docs/kbn_core_user_profile_browser_internal.mdx index a1e5b7862a870..0ae84a0c9acb6 100644 --- a/api_docs/kbn_core_user_profile_browser_internal.mdx +++ b/api_docs/kbn_core_user_profile_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser-internal title: "@kbn/core-user-profile-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser-internal'] --- import kbnCoreUserProfileBrowserInternalObj from './kbn_core_user_profile_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser_mocks.mdx b/api_docs/kbn_core_user_profile_browser_mocks.mdx index 9816b15366da9..102dbd7c6d97c 100644 --- a/api_docs/kbn_core_user_profile_browser_mocks.mdx +++ b/api_docs/kbn_core_user_profile_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser-mocks title: "@kbn/core-user-profile-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser-mocks'] --- import kbnCoreUserProfileBrowserMocksObj from './kbn_core_user_profile_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_common.mdx b/api_docs/kbn_core_user_profile_common.mdx index ebe02daf898e8..1f2f0c2332b10 100644 --- a/api_docs/kbn_core_user_profile_common.mdx +++ b/api_docs/kbn_core_user_profile_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-common title: "@kbn/core-user-profile-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-common'] --- import kbnCoreUserProfileCommonObj from './kbn_core_user_profile_common.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server.mdx b/api_docs/kbn_core_user_profile_server.mdx index 830ad65e395fc..2b95a6aceea6a 100644 --- a/api_docs/kbn_core_user_profile_server.mdx +++ b/api_docs/kbn_core_user_profile_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server title: "@kbn/core-user-profile-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server'] --- import kbnCoreUserProfileServerObj from './kbn_core_user_profile_server.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server_internal.mdx b/api_docs/kbn_core_user_profile_server_internal.mdx index 7263dba60c7ec..6fb10577c2d20 100644 --- a/api_docs/kbn_core_user_profile_server_internal.mdx +++ b/api_docs/kbn_core_user_profile_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server-internal title: "@kbn/core-user-profile-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server-internal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server-internal'] --- import kbnCoreUserProfileServerInternalObj from './kbn_core_user_profile_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server_mocks.mdx b/api_docs/kbn_core_user_profile_server_mocks.mdx index c061f019724fd..962336a29ee37 100644 --- a/api_docs/kbn_core_user_profile_server_mocks.mdx +++ b/api_docs/kbn_core_user_profile_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server-mocks title: "@kbn/core-user-profile-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server-mocks'] --- import kbnCoreUserProfileServerMocksObj from './kbn_core_user_profile_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_settings_server.mdx b/api_docs/kbn_core_user_settings_server.mdx index 1e389c79046e6..8532f922e896f 100644 --- a/api_docs/kbn_core_user_settings_server.mdx +++ b/api_docs/kbn_core_user_settings_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-settings-server title: "@kbn/core-user-settings-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-settings-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-settings-server'] --- import kbnCoreUserSettingsServerObj from './kbn_core_user_settings_server.devdocs.json'; diff --git a/api_docs/kbn_core_user_settings_server_mocks.mdx b/api_docs/kbn_core_user_settings_server_mocks.mdx index b5984ed2d6789..4faf9bed17f03 100644 --- a/api_docs/kbn_core_user_settings_server_mocks.mdx +++ b/api_docs/kbn_core_user_settings_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-settings-server-mocks title: "@kbn/core-user-settings-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-settings-server-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-settings-server-mocks'] --- import kbnCoreUserSettingsServerMocksObj from './kbn_core_user_settings_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_crypto.mdx b/api_docs/kbn_crypto.mdx index ed8cc3ea0df1a..176fac7682e4e 100644 --- a/api_docs/kbn_crypto.mdx +++ b/api_docs/kbn_crypto.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto title: "@kbn/crypto" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto'] --- import kbnCryptoObj from './kbn_crypto.devdocs.json'; diff --git a/api_docs/kbn_crypto_browser.mdx b/api_docs/kbn_crypto_browser.mdx index 89d866e7e25af..67a1c56a409f9 100644 --- a/api_docs/kbn_crypto_browser.mdx +++ b/api_docs/kbn_crypto_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto-browser title: "@kbn/crypto-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto-browser'] --- import kbnCryptoBrowserObj from './kbn_crypto_browser.devdocs.json'; diff --git a/api_docs/kbn_custom_icons.mdx b/api_docs/kbn_custom_icons.mdx index 1da2f39521f3c..c292b9e3de451 100644 --- a/api_docs/kbn_custom_icons.mdx +++ b/api_docs/kbn_custom_icons.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-custom-icons title: "@kbn/custom-icons" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/custom-icons plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/custom-icons'] --- import kbnCustomIconsObj from './kbn_custom_icons.devdocs.json'; diff --git a/api_docs/kbn_custom_integrations.mdx b/api_docs/kbn_custom_integrations.mdx index 9e4bc7bbc1811..2e39816c4ce83 100644 --- a/api_docs/kbn_custom_integrations.mdx +++ b/api_docs/kbn_custom_integrations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-custom-integrations title: "@kbn/custom-integrations" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/custom-integrations plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/custom-integrations'] --- import kbnCustomIntegrationsObj from './kbn_custom_integrations.devdocs.json'; diff --git a/api_docs/kbn_cypress_config.mdx b/api_docs/kbn_cypress_config.mdx index 21de7481757c7..660f2cce86ffa 100644 --- a/api_docs/kbn_cypress_config.mdx +++ b/api_docs/kbn_cypress_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cypress-config title: "@kbn/cypress-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cypress-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cypress-config'] --- import kbnCypressConfigObj from './kbn_cypress_config.devdocs.json'; diff --git a/api_docs/kbn_data_forge.mdx b/api_docs/kbn_data_forge.mdx index 1cc7a553f8514..adb16174b4137 100644 --- a/api_docs/kbn_data_forge.mdx +++ b/api_docs/kbn_data_forge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-forge title: "@kbn/data-forge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-forge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-forge'] --- import kbnDataForgeObj from './kbn_data_forge.devdocs.json'; diff --git a/api_docs/kbn_data_service.mdx b/api_docs/kbn_data_service.mdx index c326427337ddb..0c39a0add963f 100644 --- a/api_docs/kbn_data_service.mdx +++ b/api_docs/kbn_data_service.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-service title: "@kbn/data-service" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-service plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-service'] --- import kbnDataServiceObj from './kbn_data_service.devdocs.json'; diff --git a/api_docs/kbn_data_stream_adapter.mdx b/api_docs/kbn_data_stream_adapter.mdx index 44369f9315ca8..45c4cb09f06d0 100644 --- a/api_docs/kbn_data_stream_adapter.mdx +++ b/api_docs/kbn_data_stream_adapter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-stream-adapter title: "@kbn/data-stream-adapter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-stream-adapter plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-stream-adapter'] --- import kbnDataStreamAdapterObj from './kbn_data_stream_adapter.devdocs.json'; diff --git a/api_docs/kbn_data_view_utils.mdx b/api_docs/kbn_data_view_utils.mdx index 5f781ac6df573..10b56d5706226 100644 --- a/api_docs/kbn_data_view_utils.mdx +++ b/api_docs/kbn_data_view_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-view-utils title: "@kbn/data-view-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-view-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-view-utils'] --- import kbnDataViewUtilsObj from './kbn_data_view_utils.devdocs.json'; diff --git a/api_docs/kbn_datemath.mdx b/api_docs/kbn_datemath.mdx index 2fb4387a67052..5428b49fc6bf3 100644 --- a/api_docs/kbn_datemath.mdx +++ b/api_docs/kbn_datemath.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-datemath title: "@kbn/datemath" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/datemath plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/datemath'] --- import kbnDatemathObj from './kbn_datemath.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_analytics.mdx b/api_docs/kbn_deeplinks_analytics.mdx index 5928dd95492b2..c54288e9f438b 100644 --- a/api_docs/kbn_deeplinks_analytics.mdx +++ b/api_docs/kbn_deeplinks_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-analytics title: "@kbn/deeplinks-analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-analytics plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-analytics'] --- import kbnDeeplinksAnalyticsObj from './kbn_deeplinks_analytics.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_devtools.mdx b/api_docs/kbn_deeplinks_devtools.mdx index df2bdaa7a16a8..ca11b7251dabb 100644 --- a/api_docs/kbn_deeplinks_devtools.mdx +++ b/api_docs/kbn_deeplinks_devtools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-devtools title: "@kbn/deeplinks-devtools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-devtools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-devtools'] --- import kbnDeeplinksDevtoolsObj from './kbn_deeplinks_devtools.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_fleet.mdx b/api_docs/kbn_deeplinks_fleet.mdx index 98af4cfcb8d90..7ef02369dce77 100644 --- a/api_docs/kbn_deeplinks_fleet.mdx +++ b/api_docs/kbn_deeplinks_fleet.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-fleet title: "@kbn/deeplinks-fleet" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-fleet plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-fleet'] --- import kbnDeeplinksFleetObj from './kbn_deeplinks_fleet.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_management.mdx b/api_docs/kbn_deeplinks_management.mdx index 818409fd55d1a..bf68756fa61fb 100644 --- a/api_docs/kbn_deeplinks_management.mdx +++ b/api_docs/kbn_deeplinks_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-management title: "@kbn/deeplinks-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-management plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-management'] --- import kbnDeeplinksManagementObj from './kbn_deeplinks_management.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_ml.mdx b/api_docs/kbn_deeplinks_ml.mdx index b253c1942e3d6..76871fed98842 100644 --- a/api_docs/kbn_deeplinks_ml.mdx +++ b/api_docs/kbn_deeplinks_ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-ml title: "@kbn/deeplinks-ml" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-ml plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-ml'] --- import kbnDeeplinksMlObj from './kbn_deeplinks_ml.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_observability.mdx b/api_docs/kbn_deeplinks_observability.mdx index d5ccf9ca9bd9f..bcb26436e7e39 100644 --- a/api_docs/kbn_deeplinks_observability.mdx +++ b/api_docs/kbn_deeplinks_observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-observability title: "@kbn/deeplinks-observability" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-observability plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-observability'] --- import kbnDeeplinksObservabilityObj from './kbn_deeplinks_observability.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_search.mdx b/api_docs/kbn_deeplinks_search.mdx index e0a9897a4ba12..341b427223c87 100644 --- a/api_docs/kbn_deeplinks_search.mdx +++ b/api_docs/kbn_deeplinks_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-search title: "@kbn/deeplinks-search" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-search plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-search'] --- import kbnDeeplinksSearchObj from './kbn_deeplinks_search.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_security.mdx b/api_docs/kbn_deeplinks_security.mdx index 44a7db8fe1858..85e541a860d8b 100644 --- a/api_docs/kbn_deeplinks_security.mdx +++ b/api_docs/kbn_deeplinks_security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-security title: "@kbn/deeplinks-security" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-security plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-security'] --- import kbnDeeplinksSecurityObj from './kbn_deeplinks_security.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_shared.mdx b/api_docs/kbn_deeplinks_shared.mdx index 3c9177d3e6c7d..84b88640f7bb4 100644 --- a/api_docs/kbn_deeplinks_shared.mdx +++ b/api_docs/kbn_deeplinks_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-shared title: "@kbn/deeplinks-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-shared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-shared'] --- import kbnDeeplinksSharedObj from './kbn_deeplinks_shared.devdocs.json'; diff --git a/api_docs/kbn_default_nav_analytics.mdx b/api_docs/kbn_default_nav_analytics.mdx index eed8c6517b761..91ac44e68a2c3 100644 --- a/api_docs/kbn_default_nav_analytics.mdx +++ b/api_docs/kbn_default_nav_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-analytics title: "@kbn/default-nav-analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-analytics plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-analytics'] --- import kbnDefaultNavAnalyticsObj from './kbn_default_nav_analytics.devdocs.json'; diff --git a/api_docs/kbn_default_nav_devtools.mdx b/api_docs/kbn_default_nav_devtools.mdx index 169eb2f35e7cb..e6fc3e9e90acb 100644 --- a/api_docs/kbn_default_nav_devtools.mdx +++ b/api_docs/kbn_default_nav_devtools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-devtools title: "@kbn/default-nav-devtools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-devtools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-devtools'] --- import kbnDefaultNavDevtoolsObj from './kbn_default_nav_devtools.devdocs.json'; diff --git a/api_docs/kbn_default_nav_management.mdx b/api_docs/kbn_default_nav_management.mdx index c4cad19bbb0b2..27225fb4861e6 100644 --- a/api_docs/kbn_default_nav_management.mdx +++ b/api_docs/kbn_default_nav_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-management title: "@kbn/default-nav-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-management plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-management'] --- import kbnDefaultNavManagementObj from './kbn_default_nav_management.devdocs.json'; diff --git a/api_docs/kbn_default_nav_ml.mdx b/api_docs/kbn_default_nav_ml.mdx index b4d22c0edd7c2..4263b27b303a7 100644 --- a/api_docs/kbn_default_nav_ml.mdx +++ b/api_docs/kbn_default_nav_ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-ml title: "@kbn/default-nav-ml" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-ml plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-ml'] --- import kbnDefaultNavMlObj from './kbn_default_nav_ml.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_errors.mdx b/api_docs/kbn_dev_cli_errors.mdx index 8195bd75871ad..8058c76103546 100644 --- a/api_docs/kbn_dev_cli_errors.mdx +++ b/api_docs/kbn_dev_cli_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-errors title: "@kbn/dev-cli-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-errors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-errors'] --- import kbnDevCliErrorsObj from './kbn_dev_cli_errors.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_runner.mdx b/api_docs/kbn_dev_cli_runner.mdx index e633b8aba8783..011131c0aed0b 100644 --- a/api_docs/kbn_dev_cli_runner.mdx +++ b/api_docs/kbn_dev_cli_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-runner title: "@kbn/dev-cli-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-runner plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-runner'] --- import kbnDevCliRunnerObj from './kbn_dev_cli_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_proc_runner.mdx b/api_docs/kbn_dev_proc_runner.mdx index f2c60e6277bd5..f5a07d27f4884 100644 --- a/api_docs/kbn_dev_proc_runner.mdx +++ b/api_docs/kbn_dev_proc_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-proc-runner title: "@kbn/dev-proc-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-proc-runner plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-proc-runner'] --- import kbnDevProcRunnerObj from './kbn_dev_proc_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_utils.mdx b/api_docs/kbn_dev_utils.mdx index ac0b7171b4fda..40fc5f5f340ae 100644 --- a/api_docs/kbn_dev_utils.mdx +++ b/api_docs/kbn_dev_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-utils title: "@kbn/dev-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-utils'] --- import kbnDevUtilsObj from './kbn_dev_utils.devdocs.json'; diff --git a/api_docs/kbn_discover_contextual_components.mdx b/api_docs/kbn_discover_contextual_components.mdx index d493e523c64e5..6758959ee1ba4 100644 --- a/api_docs/kbn_discover_contextual_components.mdx +++ b/api_docs/kbn_discover_contextual_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-discover-contextual-components title: "@kbn/discover-contextual-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/discover-contextual-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/discover-contextual-components'] --- import kbnDiscoverContextualComponentsObj from './kbn_discover_contextual_components.devdocs.json'; diff --git a/api_docs/kbn_discover_utils.mdx b/api_docs/kbn_discover_utils.mdx index c8b9d74057587..fcdbf1e20a0bf 100644 --- a/api_docs/kbn_discover_utils.mdx +++ b/api_docs/kbn_discover_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-discover-utils title: "@kbn/discover-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/discover-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/discover-utils'] --- import kbnDiscoverUtilsObj from './kbn_discover_utils.devdocs.json'; diff --git a/api_docs/kbn_doc_links.mdx b/api_docs/kbn_doc_links.mdx index 0d668ebf965b0..668ab758eb3d8 100644 --- a/api_docs/kbn_doc_links.mdx +++ b/api_docs/kbn_doc_links.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-doc-links title: "@kbn/doc-links" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/doc-links plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/doc-links'] --- import kbnDocLinksObj from './kbn_doc_links.devdocs.json'; diff --git a/api_docs/kbn_docs_utils.mdx b/api_docs/kbn_docs_utils.mdx index db9ecacbc7f92..c0cacaa41f4ed 100644 --- a/api_docs/kbn_docs_utils.mdx +++ b/api_docs/kbn_docs_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-docs-utils title: "@kbn/docs-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/docs-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/docs-utils'] --- import kbnDocsUtilsObj from './kbn_docs_utils.devdocs.json'; diff --git a/api_docs/kbn_dom_drag_drop.mdx b/api_docs/kbn_dom_drag_drop.mdx index d37ba4ce50bd6..e940c3d503f57 100644 --- a/api_docs/kbn_dom_drag_drop.mdx +++ b/api_docs/kbn_dom_drag_drop.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dom-drag-drop title: "@kbn/dom-drag-drop" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dom-drag-drop plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dom-drag-drop'] --- import kbnDomDragDropObj from './kbn_dom_drag_drop.devdocs.json'; diff --git a/api_docs/kbn_ebt_tools.mdx b/api_docs/kbn_ebt_tools.mdx index d11bdf3b80c3d..2854b69ed7722 100644 --- a/api_docs/kbn_ebt_tools.mdx +++ b/api_docs/kbn_ebt_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ebt-tools title: "@kbn/ebt-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ebt-tools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ebt-tools'] --- import kbnEbtToolsObj from './kbn_ebt_tools.devdocs.json'; diff --git a/api_docs/kbn_ecs_data_quality_dashboard.mdx b/api_docs/kbn_ecs_data_quality_dashboard.mdx index 5e851c8b04a79..32c920da135ff 100644 --- a/api_docs/kbn_ecs_data_quality_dashboard.mdx +++ b/api_docs/kbn_ecs_data_quality_dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ecs-data-quality-dashboard title: "@kbn/ecs-data-quality-dashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ecs-data-quality-dashboard plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ecs-data-quality-dashboard'] --- import kbnEcsDataQualityDashboardObj from './kbn_ecs_data_quality_dashboard.devdocs.json'; diff --git a/api_docs/kbn_elastic_agent_utils.mdx b/api_docs/kbn_elastic_agent_utils.mdx index b45807f2f3ed2..ede5172171e7a 100644 --- a/api_docs/kbn_elastic_agent_utils.mdx +++ b/api_docs/kbn_elastic_agent_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-agent-utils title: "@kbn/elastic-agent-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-agent-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-agent-utils'] --- import kbnElasticAgentUtilsObj from './kbn_elastic_agent_utils.devdocs.json'; diff --git a/api_docs/kbn_elastic_assistant.devdocs.json b/api_docs/kbn_elastic_assistant.devdocs.json index 3863518f88779..cfb0a3089bc70 100644 --- a/api_docs/kbn_elastic_assistant.devdocs.json +++ b/api_docs/kbn_elastic_assistant.devdocs.json @@ -126,171 +126,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/elastic-assistant", - "id": "def-public.AssistantAvatar", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "AssistantAvatar", - "description": [ - "\nDefault Elastic AI Assistant logo\n" - ], - "signature": [ - "({ className, size }: ", - "AssistantAvatarProps", - ") => React.JSX.Element" - ], - "path": "x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx", - "deprecated": true, - "trackAdoption": false, - "references": [ - { - "plugin": "integrationAssistant", - "path": "x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx" - }, - { - "plugin": "integrationAssistant", - "path": "x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx" - }, - { - "plugin": "integrationAssistant", - "path": "x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx" - }, - { - "plugin": "integrationAssistant", - "path": "x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx" - }, - { - "plugin": "@kbn/ecs-data-quality-dashboard", - "path": "x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx" - }, - { - "plugin": "@kbn/ecs-data-quality-dashboard", - "path": "x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts" - }, - { - "plugin": "securitySolution", - "path": "x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts" - } - ], - "children": [ - { - "parentPluginId": "@kbn/elastic-assistant", - "id": "def-public.AssistantAvatar.$1", - "type": "Object", - "tags": [], - "label": "{ className, size = 's' }", - "description": [], - "signature": [ - "AssistantAvatarProps" - ], - "path": "x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/elastic-assistant", "id": "def-public.AssistantOverlay", diff --git a/api_docs/kbn_elastic_assistant.mdx b/api_docs/kbn_elastic_assistant.mdx index d5d1803e3381c..572761c00a3b3 100644 --- a/api_docs/kbn_elastic_assistant.mdx +++ b/api_docs/kbn_elastic_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-assistant title: "@kbn/elastic-assistant" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-assistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-assistant'] --- import kbnElasticAssistantObj from './kbn_elastic_assistant.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/ | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 174 | 0 | 145 | 10 | +| 172 | 0 | 144 | 9 | ## Client diff --git a/api_docs/kbn_elastic_assistant_common.mdx b/api_docs/kbn_elastic_assistant_common.mdx index 05dfd663f2719..6691458163009 100644 --- a/api_docs/kbn_elastic_assistant_common.mdx +++ b/api_docs/kbn_elastic_assistant_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-assistant-common title: "@kbn/elastic-assistant-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-assistant-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-assistant-common'] --- import kbnElasticAssistantCommonObj from './kbn_elastic_assistant_common.devdocs.json'; diff --git a/api_docs/kbn_entities_schema.mdx b/api_docs/kbn_entities_schema.mdx index 54964b2367c22..6a35ffbb17fba 100644 --- a/api_docs/kbn_entities_schema.mdx +++ b/api_docs/kbn_entities_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-entities-schema title: "@kbn/entities-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/entities-schema plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/entities-schema'] --- import kbnEntitiesSchemaObj from './kbn_entities_schema.devdocs.json'; diff --git a/api_docs/kbn_es.mdx b/api_docs/kbn_es.mdx index ad5a0c7fed6f2..8a1b58b583295 100644 --- a/api_docs/kbn_es.mdx +++ b/api_docs/kbn_es.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es title: "@kbn/es" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es'] --- import kbnEsObj from './kbn_es.devdocs.json'; diff --git a/api_docs/kbn_es_archiver.mdx b/api_docs/kbn_es_archiver.mdx index 4b9c18626024f..655fbf5f277f4 100644 --- a/api_docs/kbn_es_archiver.mdx +++ b/api_docs/kbn_es_archiver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-archiver title: "@kbn/es-archiver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-archiver plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-archiver'] --- import kbnEsArchiverObj from './kbn_es_archiver.devdocs.json'; diff --git a/api_docs/kbn_es_errors.mdx b/api_docs/kbn_es_errors.mdx index 19eed9ab2915d..fc87e1f61f46a 100644 --- a/api_docs/kbn_es_errors.mdx +++ b/api_docs/kbn_es_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-errors title: "@kbn/es-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-errors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-errors'] --- import kbnEsErrorsObj from './kbn_es_errors.devdocs.json'; diff --git a/api_docs/kbn_es_query.mdx b/api_docs/kbn_es_query.mdx index 499df4610e61f..edfec3e7df3a7 100644 --- a/api_docs/kbn_es_query.mdx +++ b/api_docs/kbn_es_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-query title: "@kbn/es-query" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-query plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-query'] --- import kbnEsQueryObj from './kbn_es_query.devdocs.json'; diff --git a/api_docs/kbn_es_types.mdx b/api_docs/kbn_es_types.mdx index 26cf2c830d17e..6c66f72e5512f 100644 --- a/api_docs/kbn_es_types.mdx +++ b/api_docs/kbn_es_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-types title: "@kbn/es-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-types'] --- import kbnEsTypesObj from './kbn_es_types.devdocs.json'; diff --git a/api_docs/kbn_eslint_plugin_imports.mdx b/api_docs/kbn_eslint_plugin_imports.mdx index 920f6d1daf2f2..7b69e3abec2de 100644 --- a/api_docs/kbn_eslint_plugin_imports.mdx +++ b/api_docs/kbn_eslint_plugin_imports.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-eslint-plugin-imports title: "@kbn/eslint-plugin-imports" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/eslint-plugin-imports plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/eslint-plugin-imports'] --- import kbnEslintPluginImportsObj from './kbn_eslint_plugin_imports.devdocs.json'; diff --git a/api_docs/kbn_esql_ast.mdx b/api_docs/kbn_esql_ast.mdx index d63323cac558f..f80fdf4fa20dc 100644 --- a/api_docs/kbn_esql_ast.mdx +++ b/api_docs/kbn_esql_ast.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-ast title: "@kbn/esql-ast" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-ast plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-ast'] --- import kbnEsqlAstObj from './kbn_esql_ast.devdocs.json'; diff --git a/api_docs/kbn_esql_editor.mdx b/api_docs/kbn_esql_editor.mdx index 07f4a5b122901..f892c05b330e2 100644 --- a/api_docs/kbn_esql_editor.mdx +++ b/api_docs/kbn_esql_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-editor title: "@kbn/esql-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-editor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-editor'] --- import kbnEsqlEditorObj from './kbn_esql_editor.devdocs.json'; diff --git a/api_docs/kbn_esql_utils.mdx b/api_docs/kbn_esql_utils.mdx index 6a37c6cd8127e..145ecdc6091dc 100644 --- a/api_docs/kbn_esql_utils.mdx +++ b/api_docs/kbn_esql_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-utils title: "@kbn/esql-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-utils'] --- import kbnEsqlUtilsObj from './kbn_esql_utils.devdocs.json'; diff --git a/api_docs/kbn_esql_validation_autocomplete.mdx b/api_docs/kbn_esql_validation_autocomplete.mdx index f942a5fcf5c2f..73630106f8d63 100644 --- a/api_docs/kbn_esql_validation_autocomplete.mdx +++ b/api_docs/kbn_esql_validation_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-validation-autocomplete title: "@kbn/esql-validation-autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-validation-autocomplete plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-validation-autocomplete'] --- import kbnEsqlValidationAutocompleteObj from './kbn_esql_validation_autocomplete.devdocs.json'; diff --git a/api_docs/kbn_event_annotation_common.mdx b/api_docs/kbn_event_annotation_common.mdx index 7cae54518cf5e..e57a0b75078e0 100644 --- a/api_docs/kbn_event_annotation_common.mdx +++ b/api_docs/kbn_event_annotation_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-event-annotation-common title: "@kbn/event-annotation-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/event-annotation-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/event-annotation-common'] --- import kbnEventAnnotationCommonObj from './kbn_event_annotation_common.devdocs.json'; diff --git a/api_docs/kbn_event_annotation_components.mdx b/api_docs/kbn_event_annotation_components.mdx index 04d65d88d9f4d..60fc002e0f0fe 100644 --- a/api_docs/kbn_event_annotation_components.mdx +++ b/api_docs/kbn_event_annotation_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-event-annotation-components title: "@kbn/event-annotation-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/event-annotation-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/event-annotation-components'] --- import kbnEventAnnotationComponentsObj from './kbn_event_annotation_components.devdocs.json'; diff --git a/api_docs/kbn_expandable_flyout.mdx b/api_docs/kbn_expandable_flyout.mdx index d23416f818428..1a07391252694 100644 --- a/api_docs/kbn_expandable_flyout.mdx +++ b/api_docs/kbn_expandable_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-expandable-flyout title: "@kbn/expandable-flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/expandable-flyout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/expandable-flyout'] --- import kbnExpandableFlyoutObj from './kbn_expandable_flyout.devdocs.json'; diff --git a/api_docs/kbn_field_types.mdx b/api_docs/kbn_field_types.mdx index f5b4893960c95..44b1b638d1f38 100644 --- a/api_docs/kbn_field_types.mdx +++ b/api_docs/kbn_field_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-field-types title: "@kbn/field-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/field-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-types'] --- import kbnFieldTypesObj from './kbn_field_types.devdocs.json'; diff --git a/api_docs/kbn_field_utils.mdx b/api_docs/kbn_field_utils.mdx index fc14f9d599e9f..5e8c5bbbf8db1 100644 --- a/api_docs/kbn_field_utils.mdx +++ b/api_docs/kbn_field_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-field-utils title: "@kbn/field-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/field-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-utils'] --- import kbnFieldUtilsObj from './kbn_field_utils.devdocs.json'; diff --git a/api_docs/kbn_find_used_node_modules.mdx b/api_docs/kbn_find_used_node_modules.mdx index 555bac39ad2ba..939a94c640a22 100644 --- a/api_docs/kbn_find_used_node_modules.mdx +++ b/api_docs/kbn_find_used_node_modules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-find-used-node-modules title: "@kbn/find-used-node-modules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/find-used-node-modules plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/find-used-node-modules'] --- import kbnFindUsedNodeModulesObj from './kbn_find_used_node_modules.devdocs.json'; diff --git a/api_docs/kbn_formatters.mdx b/api_docs/kbn_formatters.mdx index c9666a35cec02..71bd7fd2ea404 100644 --- a/api_docs/kbn_formatters.mdx +++ b/api_docs/kbn_formatters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-formatters title: "@kbn/formatters" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/formatters plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/formatters'] --- import kbnFormattersObj from './kbn_formatters.devdocs.json'; diff --git a/api_docs/kbn_ftr_common_functional_services.mdx b/api_docs/kbn_ftr_common_functional_services.mdx index ff4f564beec3d..78bb3b76842d3 100644 --- a/api_docs/kbn_ftr_common_functional_services.mdx +++ b/api_docs/kbn_ftr_common_functional_services.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ftr-common-functional-services title: "@kbn/ftr-common-functional-services" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ftr-common-functional-services plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ftr-common-functional-services'] --- import kbnFtrCommonFunctionalServicesObj from './kbn_ftr_common_functional_services.devdocs.json'; diff --git a/api_docs/kbn_ftr_common_functional_ui_services.mdx b/api_docs/kbn_ftr_common_functional_ui_services.mdx index a6453527c8029..752c35a836527 100644 --- a/api_docs/kbn_ftr_common_functional_ui_services.mdx +++ b/api_docs/kbn_ftr_common_functional_ui_services.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ftr-common-functional-ui-services title: "@kbn/ftr-common-functional-ui-services" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ftr-common-functional-ui-services plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ftr-common-functional-ui-services'] --- import kbnFtrCommonFunctionalUiServicesObj from './kbn_ftr_common_functional_ui_services.devdocs.json'; diff --git a/api_docs/kbn_gen_ai_functional_testing.mdx b/api_docs/kbn_gen_ai_functional_testing.mdx index 39b46ce3591bb..33fde9758a476 100644 --- a/api_docs/kbn_gen_ai_functional_testing.mdx +++ b/api_docs/kbn_gen_ai_functional_testing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-gen-ai-functional-testing title: "@kbn/gen-ai-functional-testing" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/gen-ai-functional-testing plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/gen-ai-functional-testing'] --- import kbnGenAiFunctionalTestingObj from './kbn_gen_ai_functional_testing.devdocs.json'; diff --git a/api_docs/kbn_generate.mdx b/api_docs/kbn_generate.mdx index ef4f7182425b3..1d766aefcba01 100644 --- a/api_docs/kbn_generate.mdx +++ b/api_docs/kbn_generate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate title: "@kbn/generate" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate'] --- import kbnGenerateObj from './kbn_generate.devdocs.json'; diff --git a/api_docs/kbn_generate_console_definitions.mdx b/api_docs/kbn_generate_console_definitions.mdx index 7210f14b775ec..707c10c3bdb84 100644 --- a/api_docs/kbn_generate_console_definitions.mdx +++ b/api_docs/kbn_generate_console_definitions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate-console-definitions title: "@kbn/generate-console-definitions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate-console-definitions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate-console-definitions'] --- import kbnGenerateConsoleDefinitionsObj from './kbn_generate_console_definitions.devdocs.json'; diff --git a/api_docs/kbn_generate_csv.mdx b/api_docs/kbn_generate_csv.mdx index 5d7b0800bad94..03a0ce4f152aa 100644 --- a/api_docs/kbn_generate_csv.mdx +++ b/api_docs/kbn_generate_csv.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate-csv title: "@kbn/generate-csv" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate-csv plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate-csv'] --- import kbnGenerateCsvObj from './kbn_generate_csv.devdocs.json'; diff --git a/api_docs/kbn_grid_layout.mdx b/api_docs/kbn_grid_layout.mdx index 5849cb129cb23..3e975b9e3ce09 100644 --- a/api_docs/kbn_grid_layout.mdx +++ b/api_docs/kbn_grid_layout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-grid-layout title: "@kbn/grid-layout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/grid-layout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/grid-layout'] --- import kbnGridLayoutObj from './kbn_grid_layout.devdocs.json'; diff --git a/api_docs/kbn_grouping.mdx b/api_docs/kbn_grouping.mdx index caccbd23b0f0d..4c6f928dc8d03 100644 --- a/api_docs/kbn_grouping.mdx +++ b/api_docs/kbn_grouping.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-grouping title: "@kbn/grouping" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/grouping plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/grouping'] --- import kbnGroupingObj from './kbn_grouping.devdocs.json'; diff --git a/api_docs/kbn_guided_onboarding.mdx b/api_docs/kbn_guided_onboarding.mdx index 8c11ba1211ecb..777db37bfc080 100644 --- a/api_docs/kbn_guided_onboarding.mdx +++ b/api_docs/kbn_guided_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-guided-onboarding title: "@kbn/guided-onboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/guided-onboarding plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/guided-onboarding'] --- import kbnGuidedOnboardingObj from './kbn_guided_onboarding.devdocs.json'; diff --git a/api_docs/kbn_handlebars.mdx b/api_docs/kbn_handlebars.mdx index fcdb0d2602e9b..b9d48747d7a78 100644 --- a/api_docs/kbn_handlebars.mdx +++ b/api_docs/kbn_handlebars.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-handlebars title: "@kbn/handlebars" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/handlebars plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/handlebars'] --- import kbnHandlebarsObj from './kbn_handlebars.devdocs.json'; diff --git a/api_docs/kbn_hapi_mocks.mdx b/api_docs/kbn_hapi_mocks.mdx index b91238c18cecf..7a959ee40ab77 100644 --- a/api_docs/kbn_hapi_mocks.mdx +++ b/api_docs/kbn_hapi_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-hapi-mocks title: "@kbn/hapi-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/hapi-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/hapi-mocks'] --- import kbnHapiMocksObj from './kbn_hapi_mocks.devdocs.json'; diff --git a/api_docs/kbn_health_gateway_server.mdx b/api_docs/kbn_health_gateway_server.mdx index ab25fe1d9a26a..3286d51c20ae7 100644 --- a/api_docs/kbn_health_gateway_server.mdx +++ b/api_docs/kbn_health_gateway_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-health-gateway-server title: "@kbn/health-gateway-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/health-gateway-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/health-gateway-server'] --- import kbnHealthGatewayServerObj from './kbn_health_gateway_server.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_card.mdx b/api_docs/kbn_home_sample_data_card.mdx index 51aae460e9b36..121f52d03a945 100644 --- a/api_docs/kbn_home_sample_data_card.mdx +++ b/api_docs/kbn_home_sample_data_card.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-card title: "@kbn/home-sample-data-card" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-card plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-card'] --- import kbnHomeSampleDataCardObj from './kbn_home_sample_data_card.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_tab.mdx b/api_docs/kbn_home_sample_data_tab.mdx index 23e12159879ea..e9d000c7b8340 100644 --- a/api_docs/kbn_home_sample_data_tab.mdx +++ b/api_docs/kbn_home_sample_data_tab.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-tab title: "@kbn/home-sample-data-tab" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-tab plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-tab'] --- import kbnHomeSampleDataTabObj from './kbn_home_sample_data_tab.devdocs.json'; diff --git a/api_docs/kbn_i18n.mdx b/api_docs/kbn_i18n.mdx index 6cd1571bd1629..8b44e1defb397 100644 --- a/api_docs/kbn_i18n.mdx +++ b/api_docs/kbn_i18n.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-i18n title: "@kbn/i18n" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/i18n plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n'] --- import kbnI18nObj from './kbn_i18n.devdocs.json'; diff --git a/api_docs/kbn_i18n_react.mdx b/api_docs/kbn_i18n_react.mdx index 492ad60c9b67a..d82ecb91d4592 100644 --- a/api_docs/kbn_i18n_react.mdx +++ b/api_docs/kbn_i18n_react.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-i18n-react title: "@kbn/i18n-react" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/i18n-react plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n-react'] --- import kbnI18nReactObj from './kbn_i18n_react.devdocs.json'; diff --git a/api_docs/kbn_import_resolver.mdx b/api_docs/kbn_import_resolver.mdx index 5d613ef901c65..08201b00dc599 100644 --- a/api_docs/kbn_import_resolver.mdx +++ b/api_docs/kbn_import_resolver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-import-resolver title: "@kbn/import-resolver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/import-resolver plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/import-resolver'] --- import kbnImportResolverObj from './kbn_import_resolver.devdocs.json'; diff --git a/api_docs/kbn_index_adapter.mdx b/api_docs/kbn_index_adapter.mdx index e0249f07524a3..6133036c1f039 100644 --- a/api_docs/kbn_index_adapter.mdx +++ b/api_docs/kbn_index_adapter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-adapter title: "@kbn/index-adapter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-adapter plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-adapter'] --- import kbnIndexAdapterObj from './kbn_index_adapter.devdocs.json'; diff --git a/api_docs/kbn_index_lifecycle_management_common_shared.mdx b/api_docs/kbn_index_lifecycle_management_common_shared.mdx index 8dabe8cc62be4..400ae1c60c29f 100644 --- a/api_docs/kbn_index_lifecycle_management_common_shared.mdx +++ b/api_docs/kbn_index_lifecycle_management_common_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-lifecycle-management-common-shared title: "@kbn/index-lifecycle-management-common-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-lifecycle-management-common-shared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-lifecycle-management-common-shared'] --- import kbnIndexLifecycleManagementCommonSharedObj from './kbn_index_lifecycle_management_common_shared.devdocs.json'; diff --git a/api_docs/kbn_index_management_shared_types.mdx b/api_docs/kbn_index_management_shared_types.mdx index 8a397b441d979..ac9a31d4e4b0c 100644 --- a/api_docs/kbn_index_management_shared_types.mdx +++ b/api_docs/kbn_index_management_shared_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-management-shared-types title: "@kbn/index-management-shared-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-management-shared-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-management-shared-types'] --- import kbnIndexManagementSharedTypesObj from './kbn_index_management_shared_types.devdocs.json'; diff --git a/api_docs/kbn_inference_common.mdx b/api_docs/kbn_inference_common.mdx index 0c257e1e4b643..9e46c1bd10bd1 100644 --- a/api_docs/kbn_inference_common.mdx +++ b/api_docs/kbn_inference_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference-common title: "@kbn/inference-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference-common'] --- import kbnInferenceCommonObj from './kbn_inference_common.devdocs.json'; diff --git a/api_docs/kbn_inference_endpoint_ui_common.mdx b/api_docs/kbn_inference_endpoint_ui_common.mdx index 13de201af99c6..25af7525fad62 100644 --- a/api_docs/kbn_inference_endpoint_ui_common.mdx +++ b/api_docs/kbn_inference_endpoint_ui_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference-endpoint-ui-common title: "@kbn/inference-endpoint-ui-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference-endpoint-ui-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference-endpoint-ui-common'] --- import kbnInferenceEndpointUiCommonObj from './kbn_inference_endpoint_ui_common.devdocs.json'; diff --git a/api_docs/kbn_inference_integration_flyout.mdx b/api_docs/kbn_inference_integration_flyout.mdx index c901190a20390..96ca4fda50652 100644 --- a/api_docs/kbn_inference_integration_flyout.mdx +++ b/api_docs/kbn_inference_integration_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference_integration_flyout title: "@kbn/inference_integration_flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference_integration_flyout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference_integration_flyout'] --- import kbnInferenceIntegrationFlyoutObj from './kbn_inference_integration_flyout.devdocs.json'; diff --git a/api_docs/kbn_infra_forge.mdx b/api_docs/kbn_infra_forge.mdx index b7795316507e7..011a576ea8df0 100644 --- a/api_docs/kbn_infra_forge.mdx +++ b/api_docs/kbn_infra_forge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-infra-forge title: "@kbn/infra-forge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/infra-forge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/infra-forge'] --- import kbnInfraForgeObj from './kbn_infra_forge.devdocs.json'; diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx index fcaffd60dab19..9be02fac87b51 100644 --- a/api_docs/kbn_interpreter.mdx +++ b/api_docs/kbn_interpreter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-interpreter title: "@kbn/interpreter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/interpreter plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter'] --- import kbnInterpreterObj from './kbn_interpreter.devdocs.json'; diff --git a/api_docs/kbn_investigation_shared.mdx b/api_docs/kbn_investigation_shared.mdx index 3d2a3f8e05da1..5d831b2e3342e 100644 --- a/api_docs/kbn_investigation_shared.mdx +++ b/api_docs/kbn_investigation_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-investigation-shared title: "@kbn/investigation-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/investigation-shared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/investigation-shared'] --- import kbnInvestigationSharedObj from './kbn_investigation_shared.devdocs.json'; diff --git a/api_docs/kbn_io_ts_utils.mdx b/api_docs/kbn_io_ts_utils.mdx index 735f6ba5d3761..42eed45de9d26 100644 --- a/api_docs/kbn_io_ts_utils.mdx +++ b/api_docs/kbn_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-io-ts-utils title: "@kbn/io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/io-ts-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/io-ts-utils'] --- import kbnIoTsUtilsObj from './kbn_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_ipynb.mdx b/api_docs/kbn_ipynb.mdx index 0b14d7a03bb69..bd5c5f54c0e80 100644 --- a/api_docs/kbn_ipynb.mdx +++ b/api_docs/kbn_ipynb.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ipynb title: "@kbn/ipynb" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ipynb plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ipynb'] --- import kbnIpynbObj from './kbn_ipynb.devdocs.json'; diff --git a/api_docs/kbn_item_buffer.mdx b/api_docs/kbn_item_buffer.mdx index e6528847c2741..2f44b6667dc2c 100644 --- a/api_docs/kbn_item_buffer.mdx +++ b/api_docs/kbn_item_buffer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-item-buffer title: "@kbn/item-buffer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/item-buffer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/item-buffer'] --- import kbnItemBufferObj from './kbn_item_buffer.devdocs.json'; diff --git a/api_docs/kbn_jest_serializers.mdx b/api_docs/kbn_jest_serializers.mdx index 8aa20b0db42cf..c69fb21d4eb07 100644 --- a/api_docs/kbn_jest_serializers.mdx +++ b/api_docs/kbn_jest_serializers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-jest-serializers title: "@kbn/jest-serializers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/jest-serializers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/jest-serializers'] --- import kbnJestSerializersObj from './kbn_jest_serializers.devdocs.json'; diff --git a/api_docs/kbn_journeys.mdx b/api_docs/kbn_journeys.mdx index 692638bf0991b..b8f4d50e4a584 100644 --- a/api_docs/kbn_journeys.mdx +++ b/api_docs/kbn_journeys.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-journeys title: "@kbn/journeys" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/journeys plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/journeys'] --- import kbnJourneysObj from './kbn_journeys.devdocs.json'; diff --git a/api_docs/kbn_json_ast.mdx b/api_docs/kbn_json_ast.mdx index feb3eed0caf8b..dbce159334d44 100644 --- a/api_docs/kbn_json_ast.mdx +++ b/api_docs/kbn_json_ast.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-json-ast title: "@kbn/json-ast" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/json-ast plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/json-ast'] --- import kbnJsonAstObj from './kbn_json_ast.devdocs.json'; diff --git a/api_docs/kbn_json_schemas.mdx b/api_docs/kbn_json_schemas.mdx index 3997d09acd510..1b5c51405da88 100644 --- a/api_docs/kbn_json_schemas.mdx +++ b/api_docs/kbn_json_schemas.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-json-schemas title: "@kbn/json-schemas" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/json-schemas plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/json-schemas'] --- import kbnJsonSchemasObj from './kbn_json_schemas.devdocs.json'; diff --git a/api_docs/kbn_kibana_manifest_schema.mdx b/api_docs/kbn_kibana_manifest_schema.mdx index d20bc822c7b29..59cea3a6f5a17 100644 --- a/api_docs/kbn_kibana_manifest_schema.mdx +++ b/api_docs/kbn_kibana_manifest_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-kibana-manifest-schema title: "@kbn/kibana-manifest-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/kibana-manifest-schema plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/kibana-manifest-schema'] --- import kbnKibanaManifestSchemaObj from './kbn_kibana_manifest_schema.devdocs.json'; diff --git a/api_docs/kbn_language_documentation.mdx b/api_docs/kbn_language_documentation.mdx index 26e42a19db461..0ab06dc30e13f 100644 --- a/api_docs/kbn_language_documentation.mdx +++ b/api_docs/kbn_language_documentation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-language-documentation title: "@kbn/language-documentation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/language-documentation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/language-documentation'] --- import kbnLanguageDocumentationObj from './kbn_language_documentation.devdocs.json'; diff --git a/api_docs/kbn_lens_embeddable_utils.mdx b/api_docs/kbn_lens_embeddable_utils.mdx index ef719b57d082b..9bd651961ec7d 100644 --- a/api_docs/kbn_lens_embeddable_utils.mdx +++ b/api_docs/kbn_lens_embeddable_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-lens-embeddable-utils title: "@kbn/lens-embeddable-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/lens-embeddable-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/lens-embeddable-utils'] --- import kbnLensEmbeddableUtilsObj from './kbn_lens_embeddable_utils.devdocs.json'; diff --git a/api_docs/kbn_lens_formula_docs.mdx b/api_docs/kbn_lens_formula_docs.mdx index 3206f94eea812..26dfb7cf0802c 100644 --- a/api_docs/kbn_lens_formula_docs.mdx +++ b/api_docs/kbn_lens_formula_docs.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-lens-formula-docs title: "@kbn/lens-formula-docs" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/lens-formula-docs plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/lens-formula-docs'] --- import kbnLensFormulaDocsObj from './kbn_lens_formula_docs.devdocs.json'; diff --git a/api_docs/kbn_logging.mdx b/api_docs/kbn_logging.mdx index 1508a03417dd1..2bad7c1a40d4f 100644 --- a/api_docs/kbn_logging.mdx +++ b/api_docs/kbn_logging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging title: "@kbn/logging" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging'] --- import kbnLoggingObj from './kbn_logging.devdocs.json'; diff --git a/api_docs/kbn_logging_mocks.mdx b/api_docs/kbn_logging_mocks.mdx index fb265e3515378..af4c377534f78 100644 --- a/api_docs/kbn_logging_mocks.mdx +++ b/api_docs/kbn_logging_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging-mocks title: "@kbn/logging-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging-mocks'] --- import kbnLoggingMocksObj from './kbn_logging_mocks.devdocs.json'; diff --git a/api_docs/kbn_managed_content_badge.mdx b/api_docs/kbn_managed_content_badge.mdx index 7ec3f3c875bf1..45833794b41f7 100644 --- a/api_docs/kbn_managed_content_badge.mdx +++ b/api_docs/kbn_managed_content_badge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-managed-content-badge title: "@kbn/managed-content-badge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/managed-content-badge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/managed-content-badge'] --- import kbnManagedContentBadgeObj from './kbn_managed_content_badge.devdocs.json'; diff --git a/api_docs/kbn_managed_vscode_config.mdx b/api_docs/kbn_managed_vscode_config.mdx index 609557edfb891..deeb0ab59684b 100644 --- a/api_docs/kbn_managed_vscode_config.mdx +++ b/api_docs/kbn_managed_vscode_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-managed-vscode-config title: "@kbn/managed-vscode-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/managed-vscode-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/managed-vscode-config'] --- import kbnManagedVscodeConfigObj from './kbn_managed_vscode_config.devdocs.json'; diff --git a/api_docs/kbn_management_cards_navigation.mdx b/api_docs/kbn_management_cards_navigation.mdx index fb34ef4c62803..875851b5f7847 100644 --- a/api_docs/kbn_management_cards_navigation.mdx +++ b/api_docs/kbn_management_cards_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-cards-navigation title: "@kbn/management-cards-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-cards-navigation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-cards-navigation'] --- import kbnManagementCardsNavigationObj from './kbn_management_cards_navigation.devdocs.json'; diff --git a/api_docs/kbn_management_settings_application.mdx b/api_docs/kbn_management_settings_application.mdx index 3176cdfbcbc23..e9bd7c8553260 100644 --- a/api_docs/kbn_management_settings_application.mdx +++ b/api_docs/kbn_management_settings_application.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-application title: "@kbn/management-settings-application" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-application plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-application'] --- import kbnManagementSettingsApplicationObj from './kbn_management_settings_application.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_category.mdx b/api_docs/kbn_management_settings_components_field_category.mdx index fcbe7fd4cbae5..37213719526f9 100644 --- a/api_docs/kbn_management_settings_components_field_category.mdx +++ b/api_docs/kbn_management_settings_components_field_category.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-category title: "@kbn/management-settings-components-field-category" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-category plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-category'] --- import kbnManagementSettingsComponentsFieldCategoryObj from './kbn_management_settings_components_field_category.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_input.mdx b/api_docs/kbn_management_settings_components_field_input.mdx index a067d01e95068..22457e99074cf 100644 --- a/api_docs/kbn_management_settings_components_field_input.mdx +++ b/api_docs/kbn_management_settings_components_field_input.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-input title: "@kbn/management-settings-components-field-input" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-input plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-input'] --- import kbnManagementSettingsComponentsFieldInputObj from './kbn_management_settings_components_field_input.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_row.mdx b/api_docs/kbn_management_settings_components_field_row.mdx index c5680ee306177..39cf82c1636ee 100644 --- a/api_docs/kbn_management_settings_components_field_row.mdx +++ b/api_docs/kbn_management_settings_components_field_row.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-row title: "@kbn/management-settings-components-field-row" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-row plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-row'] --- import kbnManagementSettingsComponentsFieldRowObj from './kbn_management_settings_components_field_row.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_form.mdx b/api_docs/kbn_management_settings_components_form.mdx index 9e68d10660aad..43a95e76e93ef 100644 --- a/api_docs/kbn_management_settings_components_form.mdx +++ b/api_docs/kbn_management_settings_components_form.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-form title: "@kbn/management-settings-components-form" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-form plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-form'] --- import kbnManagementSettingsComponentsFormObj from './kbn_management_settings_components_form.devdocs.json'; diff --git a/api_docs/kbn_management_settings_field_definition.mdx b/api_docs/kbn_management_settings_field_definition.mdx index a77dd156467f2..21e79b0695640 100644 --- a/api_docs/kbn_management_settings_field_definition.mdx +++ b/api_docs/kbn_management_settings_field_definition.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-field-definition title: "@kbn/management-settings-field-definition" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-field-definition plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-field-definition'] --- import kbnManagementSettingsFieldDefinitionObj from './kbn_management_settings_field_definition.devdocs.json'; diff --git a/api_docs/kbn_management_settings_ids.mdx b/api_docs/kbn_management_settings_ids.mdx index 10f2035db89b4..4904396366dce 100644 --- a/api_docs/kbn_management_settings_ids.mdx +++ b/api_docs/kbn_management_settings_ids.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-ids title: "@kbn/management-settings-ids" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-ids plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-ids'] --- import kbnManagementSettingsIdsObj from './kbn_management_settings_ids.devdocs.json'; diff --git a/api_docs/kbn_management_settings_section_registry.mdx b/api_docs/kbn_management_settings_section_registry.mdx index c86ec589413ca..6c279a0b6981b 100644 --- a/api_docs/kbn_management_settings_section_registry.mdx +++ b/api_docs/kbn_management_settings_section_registry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-section-registry title: "@kbn/management-settings-section-registry" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-section-registry plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-section-registry'] --- import kbnManagementSettingsSectionRegistryObj from './kbn_management_settings_section_registry.devdocs.json'; diff --git a/api_docs/kbn_management_settings_types.mdx b/api_docs/kbn_management_settings_types.mdx index c58a50a06f7c5..e5eac6aeda552 100644 --- a/api_docs/kbn_management_settings_types.mdx +++ b/api_docs/kbn_management_settings_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-types title: "@kbn/management-settings-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-types'] --- import kbnManagementSettingsTypesObj from './kbn_management_settings_types.devdocs.json'; diff --git a/api_docs/kbn_management_settings_utilities.mdx b/api_docs/kbn_management_settings_utilities.mdx index c68fc9e05aea2..0725610581837 100644 --- a/api_docs/kbn_management_settings_utilities.mdx +++ b/api_docs/kbn_management_settings_utilities.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-utilities title: "@kbn/management-settings-utilities" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-utilities plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-utilities'] --- import kbnManagementSettingsUtilitiesObj from './kbn_management_settings_utilities.devdocs.json'; diff --git a/api_docs/kbn_management_storybook_config.mdx b/api_docs/kbn_management_storybook_config.mdx index e4d7a4802a21e..d12565b61aee4 100644 --- a/api_docs/kbn_management_storybook_config.mdx +++ b/api_docs/kbn_management_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-storybook-config title: "@kbn/management-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-storybook-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-storybook-config'] --- import kbnManagementStorybookConfigObj from './kbn_management_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_manifest.mdx b/api_docs/kbn_manifest.mdx index 4cd6eb1c479d4..06d240133121c 100644 --- a/api_docs/kbn_manifest.mdx +++ b/api_docs/kbn_manifest.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-manifest title: "@kbn/manifest" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/manifest plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/manifest'] --- import kbnManifestObj from './kbn_manifest.devdocs.json'; diff --git a/api_docs/kbn_mapbox_gl.mdx b/api_docs/kbn_mapbox_gl.mdx index 6445387a65856..a364d4c4c3fdc 100644 --- a/api_docs/kbn_mapbox_gl.mdx +++ b/api_docs/kbn_mapbox_gl.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-mapbox-gl title: "@kbn/mapbox-gl" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/mapbox-gl plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mapbox-gl'] --- import kbnMapboxGlObj from './kbn_mapbox_gl.devdocs.json'; diff --git a/api_docs/kbn_maps_vector_tile_utils.mdx b/api_docs/kbn_maps_vector_tile_utils.mdx index 00fa521dd2c6a..bcaa35c5fc678 100644 --- a/api_docs/kbn_maps_vector_tile_utils.mdx +++ b/api_docs/kbn_maps_vector_tile_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-maps-vector-tile-utils title: "@kbn/maps-vector-tile-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/maps-vector-tile-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/maps-vector-tile-utils'] --- import kbnMapsVectorTileUtilsObj from './kbn_maps_vector_tile_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_agg_utils.mdx b/api_docs/kbn_ml_agg_utils.mdx index 3bc898d12d27c..3c4ab7a22e96c 100644 --- a/api_docs/kbn_ml_agg_utils.mdx +++ b/api_docs/kbn_ml_agg_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-agg-utils title: "@kbn/ml-agg-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-agg-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-agg-utils'] --- import kbnMlAggUtilsObj from './kbn_ml_agg_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_anomaly_utils.devdocs.json b/api_docs/kbn_ml_anomaly_utils.devdocs.json index dd9541f3a9705..049a66cfd0c56 100644 --- a/api_docs/kbn_ml_anomaly_utils.devdocs.json +++ b/api_docs/kbn_ml_anomaly_utils.devdocs.json @@ -307,7 +307,7 @@ "tags": [], "label": "getSeverityColor", "description": [ - "\nReturns a severity RGB color (one of critical, major, minor, warning, low or blank)\nfor the supplied normalized anomaly score (a value between 0 and 100)." + "\nReturns a severity RGB color (one of critical, major, minor, warning, low or unknown)\nfor the supplied normalized anomaly score (a value between 0 and 100)." ], "signature": [ "(normalizedScore: number) => string" @@ -3615,10 +3615,10 @@ }, { "parentPluginId": "@kbn/ml-anomaly-utils", - "id": "def-common.ML_SEVERITY_COLORS.BLANK", + "id": "def-common.ML_SEVERITY_COLORS.UNKNOWN", "type": "string", "tags": [], - "label": "BLANK", + "label": "UNKNOWN", "description": [ "/**\n * Color used in the UI to indicate an anomaly for which the score is unknown.\n */" ], diff --git a/api_docs/kbn_ml_anomaly_utils.mdx b/api_docs/kbn_ml_anomaly_utils.mdx index d14e36f83db0f..09516e024e6ba 100644 --- a/api_docs/kbn_ml_anomaly_utils.mdx +++ b/api_docs/kbn_ml_anomaly_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-anomaly-utils title: "@kbn/ml-anomaly-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-anomaly-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-anomaly-utils'] --- import kbnMlAnomalyUtilsObj from './kbn_ml_anomaly_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_cancellable_search.mdx b/api_docs/kbn_ml_cancellable_search.mdx index ac22c23593d56..e70d487f64bb9 100644 --- a/api_docs/kbn_ml_cancellable_search.mdx +++ b/api_docs/kbn_ml_cancellable_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-cancellable-search title: "@kbn/ml-cancellable-search" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-cancellable-search plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-cancellable-search'] --- import kbnMlCancellableSearchObj from './kbn_ml_cancellable_search.devdocs.json'; diff --git a/api_docs/kbn_ml_category_validator.mdx b/api_docs/kbn_ml_category_validator.mdx index 20376259c37e3..4b12ceba92e85 100644 --- a/api_docs/kbn_ml_category_validator.mdx +++ b/api_docs/kbn_ml_category_validator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-category-validator title: "@kbn/ml-category-validator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-category-validator plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-category-validator'] --- import kbnMlCategoryValidatorObj from './kbn_ml_category_validator.devdocs.json'; diff --git a/api_docs/kbn_ml_chi2test.mdx b/api_docs/kbn_ml_chi2test.mdx index 9d4c5e5196e9d..2a634aea2d0f3 100644 --- a/api_docs/kbn_ml_chi2test.mdx +++ b/api_docs/kbn_ml_chi2test.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-chi2test title: "@kbn/ml-chi2test" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-chi2test plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-chi2test'] --- import kbnMlChi2testObj from './kbn_ml_chi2test.devdocs.json'; diff --git a/api_docs/kbn_ml_data_frame_analytics_utils.mdx b/api_docs/kbn_ml_data_frame_analytics_utils.mdx index bbbcc11f73a03..ad94a7ddf1f59 100644 --- a/api_docs/kbn_ml_data_frame_analytics_utils.mdx +++ b/api_docs/kbn_ml_data_frame_analytics_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-data-frame-analytics-utils title: "@kbn/ml-data-frame-analytics-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-data-frame-analytics-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-data-frame-analytics-utils'] --- import kbnMlDataFrameAnalyticsUtilsObj from './kbn_ml_data_frame_analytics_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_data_grid.mdx b/api_docs/kbn_ml_data_grid.mdx index 1774fe7c1717d..83871436e4394 100644 --- a/api_docs/kbn_ml_data_grid.mdx +++ b/api_docs/kbn_ml_data_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-data-grid title: "@kbn/ml-data-grid" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-data-grid plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-data-grid'] --- import kbnMlDataGridObj from './kbn_ml_data_grid.devdocs.json'; diff --git a/api_docs/kbn_ml_date_picker.mdx b/api_docs/kbn_ml_date_picker.mdx index 545b1558bf9b8..972e77b5e8d50 100644 --- a/api_docs/kbn_ml_date_picker.mdx +++ b/api_docs/kbn_ml_date_picker.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-date-picker title: "@kbn/ml-date-picker" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-date-picker plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-date-picker'] --- import kbnMlDatePickerObj from './kbn_ml_date_picker.devdocs.json'; diff --git a/api_docs/kbn_ml_date_utils.mdx b/api_docs/kbn_ml_date_utils.mdx index f5d63a7ad520b..44b9a86bbc564 100644 --- a/api_docs/kbn_ml_date_utils.mdx +++ b/api_docs/kbn_ml_date_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-date-utils title: "@kbn/ml-date-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-date-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-date-utils'] --- import kbnMlDateUtilsObj from './kbn_ml_date_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_error_utils.mdx b/api_docs/kbn_ml_error_utils.mdx index 1bc170b1be0cd..f39fe90921318 100644 --- a/api_docs/kbn_ml_error_utils.mdx +++ b/api_docs/kbn_ml_error_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-error-utils title: "@kbn/ml-error-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-error-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-error-utils'] --- import kbnMlErrorUtilsObj from './kbn_ml_error_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_field_stats_flyout.mdx b/api_docs/kbn_ml_field_stats_flyout.mdx index 589ae8eb2c221..eae6ac8949fe8 100644 --- a/api_docs/kbn_ml_field_stats_flyout.mdx +++ b/api_docs/kbn_ml_field_stats_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-field-stats-flyout title: "@kbn/ml-field-stats-flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-field-stats-flyout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-field-stats-flyout'] --- import kbnMlFieldStatsFlyoutObj from './kbn_ml_field_stats_flyout.devdocs.json'; diff --git a/api_docs/kbn_ml_in_memory_table.mdx b/api_docs/kbn_ml_in_memory_table.mdx index f53764a3b6494..be9498c1afe01 100644 --- a/api_docs/kbn_ml_in_memory_table.mdx +++ b/api_docs/kbn_ml_in_memory_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-in-memory-table title: "@kbn/ml-in-memory-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-in-memory-table plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-in-memory-table'] --- import kbnMlInMemoryTableObj from './kbn_ml_in_memory_table.devdocs.json'; diff --git a/api_docs/kbn_ml_is_defined.mdx b/api_docs/kbn_ml_is_defined.mdx index f75eb130062a4..a5fea482962ff 100644 --- a/api_docs/kbn_ml_is_defined.mdx +++ b/api_docs/kbn_ml_is_defined.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-is-defined title: "@kbn/ml-is-defined" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-is-defined plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-is-defined'] --- import kbnMlIsDefinedObj from './kbn_ml_is_defined.devdocs.json'; diff --git a/api_docs/kbn_ml_is_populated_object.mdx b/api_docs/kbn_ml_is_populated_object.mdx index c250bf54f2b72..de772f3a6ecd2 100644 --- a/api_docs/kbn_ml_is_populated_object.mdx +++ b/api_docs/kbn_ml_is_populated_object.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-is-populated-object title: "@kbn/ml-is-populated-object" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-is-populated-object plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-is-populated-object'] --- import kbnMlIsPopulatedObjectObj from './kbn_ml_is_populated_object.devdocs.json'; diff --git a/api_docs/kbn_ml_kibana_theme.mdx b/api_docs/kbn_ml_kibana_theme.mdx index d9b99085da7eb..b092a8c454ca9 100644 --- a/api_docs/kbn_ml_kibana_theme.mdx +++ b/api_docs/kbn_ml_kibana_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-kibana-theme title: "@kbn/ml-kibana-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-kibana-theme plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-kibana-theme'] --- import kbnMlKibanaThemeObj from './kbn_ml_kibana_theme.devdocs.json'; diff --git a/api_docs/kbn_ml_local_storage.mdx b/api_docs/kbn_ml_local_storage.mdx index 026b1ef32f562..40b71341c77f8 100644 --- a/api_docs/kbn_ml_local_storage.mdx +++ b/api_docs/kbn_ml_local_storage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-local-storage title: "@kbn/ml-local-storage" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-local-storage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-local-storage'] --- import kbnMlLocalStorageObj from './kbn_ml_local_storage.devdocs.json'; diff --git a/api_docs/kbn_ml_nested_property.mdx b/api_docs/kbn_ml_nested_property.mdx index 13ccaf56d3b30..d2584f79e85ad 100644 --- a/api_docs/kbn_ml_nested_property.mdx +++ b/api_docs/kbn_ml_nested_property.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-nested-property title: "@kbn/ml-nested-property" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-nested-property plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-nested-property'] --- import kbnMlNestedPropertyObj from './kbn_ml_nested_property.devdocs.json'; diff --git a/api_docs/kbn_ml_number_utils.mdx b/api_docs/kbn_ml_number_utils.mdx index 1183449b55733..d47762c4c830a 100644 --- a/api_docs/kbn_ml_number_utils.mdx +++ b/api_docs/kbn_ml_number_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-number-utils title: "@kbn/ml-number-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-number-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-number-utils'] --- import kbnMlNumberUtilsObj from './kbn_ml_number_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_parse_interval.mdx b/api_docs/kbn_ml_parse_interval.mdx index b8ef716112809..bdf3874cda1a5 100644 --- a/api_docs/kbn_ml_parse_interval.mdx +++ b/api_docs/kbn_ml_parse_interval.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-parse-interval title: "@kbn/ml-parse-interval" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-parse-interval plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-parse-interval'] --- import kbnMlParseIntervalObj from './kbn_ml_parse_interval.devdocs.json'; diff --git a/api_docs/kbn_ml_query_utils.mdx b/api_docs/kbn_ml_query_utils.mdx index 4254b72f3f25c..b79a2bcb43412 100644 --- a/api_docs/kbn_ml_query_utils.mdx +++ b/api_docs/kbn_ml_query_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-query-utils title: "@kbn/ml-query-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-query-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-query-utils'] --- import kbnMlQueryUtilsObj from './kbn_ml_query_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_random_sampler_utils.mdx b/api_docs/kbn_ml_random_sampler_utils.mdx index 9fb0e8700a665..86343c3c983c8 100644 --- a/api_docs/kbn_ml_random_sampler_utils.mdx +++ b/api_docs/kbn_ml_random_sampler_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-random-sampler-utils title: "@kbn/ml-random-sampler-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-random-sampler-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-random-sampler-utils'] --- import kbnMlRandomSamplerUtilsObj from './kbn_ml_random_sampler_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_route_utils.mdx b/api_docs/kbn_ml_route_utils.mdx index 9a1ef40dadefb..d71fcd43b037e 100644 --- a/api_docs/kbn_ml_route_utils.mdx +++ b/api_docs/kbn_ml_route_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-route-utils title: "@kbn/ml-route-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-route-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-route-utils'] --- import kbnMlRouteUtilsObj from './kbn_ml_route_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_runtime_field_utils.mdx b/api_docs/kbn_ml_runtime_field_utils.mdx index 179c5f7f94a67..7f7db51de95d0 100644 --- a/api_docs/kbn_ml_runtime_field_utils.mdx +++ b/api_docs/kbn_ml_runtime_field_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-runtime-field-utils title: "@kbn/ml-runtime-field-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-runtime-field-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-runtime-field-utils'] --- import kbnMlRuntimeFieldUtilsObj from './kbn_ml_runtime_field_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_string_hash.mdx b/api_docs/kbn_ml_string_hash.mdx index 4f81b89219b54..7cf6c90454e5d 100644 --- a/api_docs/kbn_ml_string_hash.mdx +++ b/api_docs/kbn_ml_string_hash.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-string-hash title: "@kbn/ml-string-hash" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-string-hash plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-string-hash'] --- import kbnMlStringHashObj from './kbn_ml_string_hash.devdocs.json'; diff --git a/api_docs/kbn_ml_time_buckets.mdx b/api_docs/kbn_ml_time_buckets.mdx index 1664200e64d5c..53f6a42075b23 100644 --- a/api_docs/kbn_ml_time_buckets.mdx +++ b/api_docs/kbn_ml_time_buckets.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-time-buckets title: "@kbn/ml-time-buckets" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-time-buckets plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-time-buckets'] --- import kbnMlTimeBucketsObj from './kbn_ml_time_buckets.devdocs.json'; diff --git a/api_docs/kbn_ml_trained_models_utils.mdx b/api_docs/kbn_ml_trained_models_utils.mdx index 03a64cc27e8cd..87e8e46a316cb 100644 --- a/api_docs/kbn_ml_trained_models_utils.mdx +++ b/api_docs/kbn_ml_trained_models_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-trained-models-utils title: "@kbn/ml-trained-models-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-trained-models-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-trained-models-utils'] --- import kbnMlTrainedModelsUtilsObj from './kbn_ml_trained_models_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_ui_actions.mdx b/api_docs/kbn_ml_ui_actions.mdx index 247cf160e8e5c..76c514aacc883 100644 --- a/api_docs/kbn_ml_ui_actions.mdx +++ b/api_docs/kbn_ml_ui_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-ui-actions title: "@kbn/ml-ui-actions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-ui-actions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-ui-actions'] --- import kbnMlUiActionsObj from './kbn_ml_ui_actions.devdocs.json'; diff --git a/api_docs/kbn_ml_url_state.mdx b/api_docs/kbn_ml_url_state.mdx index 9a83cf5b3a18f..13f6fb0a238f8 100644 --- a/api_docs/kbn_ml_url_state.mdx +++ b/api_docs/kbn_ml_url_state.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-url-state title: "@kbn/ml-url-state" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-url-state plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-url-state'] --- import kbnMlUrlStateObj from './kbn_ml_url_state.devdocs.json'; diff --git a/api_docs/kbn_ml_validators.mdx b/api_docs/kbn_ml_validators.mdx index 5f6aaf3429663..70d3f834af945 100644 --- a/api_docs/kbn_ml_validators.mdx +++ b/api_docs/kbn_ml_validators.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-validators title: "@kbn/ml-validators" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-validators plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-validators'] --- import kbnMlValidatorsObj from './kbn_ml_validators.devdocs.json'; diff --git a/api_docs/kbn_mock_idp_utils.mdx b/api_docs/kbn_mock_idp_utils.mdx index 450e4d5e0bf27..f48af5cfec0e8 100644 --- a/api_docs/kbn_mock_idp_utils.mdx +++ b/api_docs/kbn_mock_idp_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-mock-idp-utils title: "@kbn/mock-idp-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/mock-idp-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mock-idp-utils'] --- import kbnMockIdpUtilsObj from './kbn_mock_idp_utils.devdocs.json'; diff --git a/api_docs/kbn_monaco.mdx b/api_docs/kbn_monaco.mdx index 0cde46abd573f..928a3227eaad8 100644 --- a/api_docs/kbn_monaco.mdx +++ b/api_docs/kbn_monaco.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-monaco title: "@kbn/monaco" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/monaco plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/monaco'] --- import kbnMonacoObj from './kbn_monaco.devdocs.json'; diff --git a/api_docs/kbn_object_versioning.mdx b/api_docs/kbn_object_versioning.mdx index ecf0452023388..94ebe8a6c0536 100644 --- a/api_docs/kbn_object_versioning.mdx +++ b/api_docs/kbn_object_versioning.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-object-versioning title: "@kbn/object-versioning" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/object-versioning plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/object-versioning'] --- import kbnObjectVersioningObj from './kbn_object_versioning.devdocs.json'; diff --git a/api_docs/kbn_object_versioning_utils.mdx b/api_docs/kbn_object_versioning_utils.mdx index f76fd88eba003..d8f99103847fa 100644 --- a/api_docs/kbn_object_versioning_utils.mdx +++ b/api_docs/kbn_object_versioning_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-object-versioning-utils title: "@kbn/object-versioning-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/object-versioning-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/object-versioning-utils'] --- import kbnObjectVersioningUtilsObj from './kbn_object_versioning_utils.devdocs.json'; diff --git a/api_docs/kbn_observability_alert_details.mdx b/api_docs/kbn_observability_alert_details.mdx index 88c710b275e84..4d2871d7f45b1 100644 --- a/api_docs/kbn_observability_alert_details.mdx +++ b/api_docs/kbn_observability_alert_details.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alert-details title: "@kbn/observability-alert-details" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alert-details plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alert-details'] --- import kbnObservabilityAlertDetailsObj from './kbn_observability_alert_details.devdocs.json'; diff --git a/api_docs/kbn_observability_alerting_rule_utils.mdx b/api_docs/kbn_observability_alerting_rule_utils.mdx index 45c53adc70c15..a5544583e15d4 100644 --- a/api_docs/kbn_observability_alerting_rule_utils.mdx +++ b/api_docs/kbn_observability_alerting_rule_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alerting-rule-utils title: "@kbn/observability-alerting-rule-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alerting-rule-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alerting-rule-utils'] --- import kbnObservabilityAlertingRuleUtilsObj from './kbn_observability_alerting_rule_utils.devdocs.json'; diff --git a/api_docs/kbn_observability_alerting_test_data.mdx b/api_docs/kbn_observability_alerting_test_data.mdx index 387bd44039aea..6a61584c6d91e 100644 --- a/api_docs/kbn_observability_alerting_test_data.mdx +++ b/api_docs/kbn_observability_alerting_test_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alerting-test-data title: "@kbn/observability-alerting-test-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alerting-test-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alerting-test-data'] --- import kbnObservabilityAlertingTestDataObj from './kbn_observability_alerting_test_data.devdocs.json'; diff --git a/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx b/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx index 0f5d68843fa3d..3fbfdc9a71b6e 100644 --- a/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx +++ b/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-get-padded-alert-time-range-util title: "@kbn/observability-get-padded-alert-time-range-util" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-get-padded-alert-time-range-util plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-get-padded-alert-time-range-util'] --- import kbnObservabilityGetPaddedAlertTimeRangeUtilObj from './kbn_observability_get_padded_alert_time_range_util.devdocs.json'; diff --git a/api_docs/kbn_observability_logs_overview.mdx b/api_docs/kbn_observability_logs_overview.mdx index 9bf95a2eecef4..8bd4cd51d3100 100644 --- a/api_docs/kbn_observability_logs_overview.mdx +++ b/api_docs/kbn_observability_logs_overview.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-logs-overview title: "@kbn/observability-logs-overview" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-logs-overview plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-logs-overview'] --- import kbnObservabilityLogsOverviewObj from './kbn_observability_logs_overview.devdocs.json'; diff --git a/api_docs/kbn_observability_synthetics_test_data.mdx b/api_docs/kbn_observability_synthetics_test_data.mdx index ddcdde721373d..55fdada9e519b 100644 --- a/api_docs/kbn_observability_synthetics_test_data.mdx +++ b/api_docs/kbn_observability_synthetics_test_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-synthetics-test-data title: "@kbn/observability-synthetics-test-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-synthetics-test-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-synthetics-test-data'] --- import kbnObservabilitySyntheticsTestDataObj from './kbn_observability_synthetics_test_data.devdocs.json'; diff --git a/api_docs/kbn_openapi_bundler.mdx b/api_docs/kbn_openapi_bundler.mdx index 0a2ec47ef67b4..7e0ad1c655c2a 100644 --- a/api_docs/kbn_openapi_bundler.mdx +++ b/api_docs/kbn_openapi_bundler.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-openapi-bundler title: "@kbn/openapi-bundler" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/openapi-bundler plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/openapi-bundler'] --- import kbnOpenapiBundlerObj from './kbn_openapi_bundler.devdocs.json'; diff --git a/api_docs/kbn_openapi_generator.mdx b/api_docs/kbn_openapi_generator.mdx index 86babf3e9e285..39b96738401a1 100644 --- a/api_docs/kbn_openapi_generator.mdx +++ b/api_docs/kbn_openapi_generator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-openapi-generator title: "@kbn/openapi-generator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/openapi-generator plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/openapi-generator'] --- import kbnOpenapiGeneratorObj from './kbn_openapi_generator.devdocs.json'; diff --git a/api_docs/kbn_optimizer.mdx b/api_docs/kbn_optimizer.mdx index dabc4f87efac1..518e0da434484 100644 --- a/api_docs/kbn_optimizer.mdx +++ b/api_docs/kbn_optimizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer title: "@kbn/optimizer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer'] --- import kbnOptimizerObj from './kbn_optimizer.devdocs.json'; diff --git a/api_docs/kbn_optimizer_webpack_helpers.mdx b/api_docs/kbn_optimizer_webpack_helpers.mdx index 5be225f6f4c0e..5b39fca680c71 100644 --- a/api_docs/kbn_optimizer_webpack_helpers.mdx +++ b/api_docs/kbn_optimizer_webpack_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer-webpack-helpers title: "@kbn/optimizer-webpack-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer-webpack-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer-webpack-helpers'] --- import kbnOptimizerWebpackHelpersObj from './kbn_optimizer_webpack_helpers.devdocs.json'; diff --git a/api_docs/kbn_osquery_io_ts_types.mdx b/api_docs/kbn_osquery_io_ts_types.mdx index b852377f4f46e..a398ec733b22a 100644 --- a/api_docs/kbn_osquery_io_ts_types.mdx +++ b/api_docs/kbn_osquery_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-osquery-io-ts-types title: "@kbn/osquery-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/osquery-io-ts-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/osquery-io-ts-types'] --- import kbnOsqueryIoTsTypesObj from './kbn_osquery_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_palettes.mdx b/api_docs/kbn_palettes.mdx index 1bc3ac46d74cb..5cbb50f07dc44 100644 --- a/api_docs/kbn_palettes.mdx +++ b/api_docs/kbn_palettes.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-palettes title: "@kbn/palettes" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/palettes plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/palettes'] --- import kbnPalettesObj from './kbn_palettes.devdocs.json'; diff --git a/api_docs/kbn_panel_loader.mdx b/api_docs/kbn_panel_loader.mdx index 66b1627f3bbbe..abf8c343ff357 100644 --- a/api_docs/kbn_panel_loader.mdx +++ b/api_docs/kbn_panel_loader.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-panel-loader title: "@kbn/panel-loader" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/panel-loader plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/panel-loader'] --- import kbnPanelLoaderObj from './kbn_panel_loader.devdocs.json'; diff --git a/api_docs/kbn_performance_testing_dataset_extractor.mdx b/api_docs/kbn_performance_testing_dataset_extractor.mdx index b70de1314e33e..01843854392b2 100644 --- a/api_docs/kbn_performance_testing_dataset_extractor.mdx +++ b/api_docs/kbn_performance_testing_dataset_extractor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-performance-testing-dataset-extractor title: "@kbn/performance-testing-dataset-extractor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/performance-testing-dataset-extractor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/performance-testing-dataset-extractor'] --- import kbnPerformanceTestingDatasetExtractorObj from './kbn_performance_testing_dataset_extractor.devdocs.json'; diff --git a/api_docs/kbn_plugin_check.mdx b/api_docs/kbn_plugin_check.mdx index 6b140046dca74..486c284578348 100644 --- a/api_docs/kbn_plugin_check.mdx +++ b/api_docs/kbn_plugin_check.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-check title: "@kbn/plugin-check" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-check plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-check'] --- import kbnPluginCheckObj from './kbn_plugin_check.devdocs.json'; diff --git a/api_docs/kbn_plugin_generator.mdx b/api_docs/kbn_plugin_generator.mdx index 6dcac3f831bdd..bc3ea24d99237 100644 --- a/api_docs/kbn_plugin_generator.mdx +++ b/api_docs/kbn_plugin_generator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-generator title: "@kbn/plugin-generator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-generator plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-generator'] --- import kbnPluginGeneratorObj from './kbn_plugin_generator.devdocs.json'; diff --git a/api_docs/kbn_plugin_helpers.mdx b/api_docs/kbn_plugin_helpers.mdx index ca92e8faef9ff..602610605d990 100644 --- a/api_docs/kbn_plugin_helpers.mdx +++ b/api_docs/kbn_plugin_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-helpers title: "@kbn/plugin-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-helpers'] --- import kbnPluginHelpersObj from './kbn_plugin_helpers.devdocs.json'; diff --git a/api_docs/kbn_presentation_containers.mdx b/api_docs/kbn_presentation_containers.mdx index da624aa18d383..656bba112b8a9 100644 --- a/api_docs/kbn_presentation_containers.mdx +++ b/api_docs/kbn_presentation_containers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-presentation-containers title: "@kbn/presentation-containers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/presentation-containers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/presentation-containers'] --- import kbnPresentationContainersObj from './kbn_presentation_containers.devdocs.json'; diff --git a/api_docs/kbn_presentation_publishing.devdocs.json b/api_docs/kbn_presentation_publishing.devdocs.json index 4300e8875526b..e87b3f6ad2f53 100644 --- a/api_docs/kbn_presentation_publishing.devdocs.json +++ b/api_docs/kbn_presentation_publishing.devdocs.json @@ -2022,6 +2022,46 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/presentation-publishing", + "id": "def-public.isEmbeddableApiContext", + "type": "Function", + "tags": [], + "label": "isEmbeddableApiContext", + "description": [], + "signature": [ + "(context: unknown) => context is ", + { + "pluginId": "@kbn/presentation-publishing", + "scope": "public", + "docId": "kibKbnPresentationPublishingPluginApi", + "section": "def-public.EmbeddableApiContext", + "text": "EmbeddableApiContext" + } + ], + "path": "src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "@kbn/presentation-publishing", + "id": "def-public.isEmbeddableApiContext.$1", + "type": "Unknown", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "unknown" + ], + "path": "src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/presentation-publishing", "id": "def-public.runComparators", @@ -2837,7 +2877,7 @@ "tags": [], "label": "EmbeddableApiContext", "description": [], - "path": "src/platform/packages/shared/presentation/presentation_publishing/index.ts", + "path": "src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2853,7 +2893,7 @@ "signature": [ "unknown" ], - "path": "src/platform/packages/shared/presentation/presentation_publishing/index.ts", + "path": "src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts", "deprecated": false, "trackAdoption": false } @@ -3845,7 +3885,7 @@ "label": "status", "description": [], "signature": [ - "\"error\" | \"loading\" | \"rendered\" | \"loaded\"" + "\"error\" | \"loading\" | \"loaded\" | \"rendered\"" ], "path": "src/platform/packages/shared/presentation/presentation_publishing/interfaces/publishes_phase_events.ts", "deprecated": false, @@ -8168,7 +8208,7 @@ "------------------------------------------------------------------------------------------\nPerformance Tracking Types\n------------------------------------------------------------------------------------------" ], "signature": [ - "\"error\" | \"loading\" | \"rendered\" | \"loaded\"" + "\"error\" | \"loading\" | \"loaded\" | \"rendered\"" ], "path": "src/platform/packages/shared/presentation/presentation_publishing/interfaces/publishes_phase_events.ts", "deprecated": false, diff --git a/api_docs/kbn_presentation_publishing.mdx b/api_docs/kbn_presentation_publishing.mdx index 155c782677066..f7a942076c456 100644 --- a/api_docs/kbn_presentation_publishing.mdx +++ b/api_docs/kbn_presentation_publishing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-presentation-publishing title: "@kbn/presentation-publishing" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/presentation-publishing plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/presentation-publishing'] --- import kbnPresentationPublishingObj from './kbn_presentation_publishing.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kib | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 233 | 0 | 197 | 6 | +| 235 | 0 | 199 | 6 | ## Client diff --git a/api_docs/kbn_product_doc_artifact_builder.mdx b/api_docs/kbn_product_doc_artifact_builder.mdx index 1751336465f56..1d80f4041f2c0 100644 --- a/api_docs/kbn_product_doc_artifact_builder.mdx +++ b/api_docs/kbn_product_doc_artifact_builder.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-product-doc-artifact-builder title: "@kbn/product-doc-artifact-builder" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/product-doc-artifact-builder plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/product-doc-artifact-builder'] --- import kbnProductDocArtifactBuilderObj from './kbn_product_doc_artifact_builder.devdocs.json'; diff --git a/api_docs/kbn_product_doc_common.mdx b/api_docs/kbn_product_doc_common.mdx index 584cde607a100..89da247edcc08 100644 --- a/api_docs/kbn_product_doc_common.mdx +++ b/api_docs/kbn_product_doc_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-product-doc-common title: "@kbn/product-doc-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/product-doc-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/product-doc-common'] --- import kbnProductDocCommonObj from './kbn_product_doc_common.devdocs.json'; diff --git a/api_docs/kbn_profiling_utils.mdx b/api_docs/kbn_profiling_utils.mdx index dc3aeb369f3b6..289f08f0a52ae 100644 --- a/api_docs/kbn_profiling_utils.mdx +++ b/api_docs/kbn_profiling_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-profiling-utils title: "@kbn/profiling-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/profiling-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/profiling-utils'] --- import kbnProfilingUtilsObj from './kbn_profiling_utils.devdocs.json'; diff --git a/api_docs/kbn_random_sampling.mdx b/api_docs/kbn_random_sampling.mdx index 4172f8f1edb3b..60507257c11a7 100644 --- a/api_docs/kbn_random_sampling.mdx +++ b/api_docs/kbn_random_sampling.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-random-sampling title: "@kbn/random-sampling" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/random-sampling plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/random-sampling'] --- import kbnRandomSamplingObj from './kbn_random_sampling.devdocs.json'; diff --git a/api_docs/kbn_react_field.mdx b/api_docs/kbn_react_field.mdx index b9633ce12051e..bf10bc406f61c 100644 --- a/api_docs/kbn_react_field.mdx +++ b/api_docs/kbn_react_field.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-field title: "@kbn/react-field" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-field plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-field'] --- import kbnReactFieldObj from './kbn_react_field.devdocs.json'; diff --git a/api_docs/kbn_react_hooks.mdx b/api_docs/kbn_react_hooks.mdx index 81a34d4c1b5e1..9ab0eb20376d0 100644 --- a/api_docs/kbn_react_hooks.mdx +++ b/api_docs/kbn_react_hooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-hooks title: "@kbn/react-hooks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-hooks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-hooks'] --- import kbnReactHooksObj from './kbn_react_hooks.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_common.mdx b/api_docs/kbn_react_kibana_context_common.mdx index b4c6cd6c270c4..73d98827fdf69 100644 --- a/api_docs/kbn_react_kibana_context_common.mdx +++ b/api_docs/kbn_react_kibana_context_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-common title: "@kbn/react-kibana-context-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-common'] --- import kbnReactKibanaContextCommonObj from './kbn_react_kibana_context_common.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_render.mdx b/api_docs/kbn_react_kibana_context_render.mdx index ddd94cacd7072..b6bbec0f739c7 100644 --- a/api_docs/kbn_react_kibana_context_render.mdx +++ b/api_docs/kbn_react_kibana_context_render.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-render title: "@kbn/react-kibana-context-render" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-render plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-render'] --- import kbnReactKibanaContextRenderObj from './kbn_react_kibana_context_render.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_root.mdx b/api_docs/kbn_react_kibana_context_root.mdx index 231bed5d7b5a9..84b0d632b8604 100644 --- a/api_docs/kbn_react_kibana_context_root.mdx +++ b/api_docs/kbn_react_kibana_context_root.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-root title: "@kbn/react-kibana-context-root" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-root plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-root'] --- import kbnReactKibanaContextRootObj from './kbn_react_kibana_context_root.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_styled.mdx b/api_docs/kbn_react_kibana_context_styled.mdx index 137b83e95dc44..811196a583b81 100644 --- a/api_docs/kbn_react_kibana_context_styled.mdx +++ b/api_docs/kbn_react_kibana_context_styled.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-styled title: "@kbn/react-kibana-context-styled" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-styled plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-styled'] --- import kbnReactKibanaContextStyledObj from './kbn_react_kibana_context_styled.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_theme.mdx b/api_docs/kbn_react_kibana_context_theme.mdx index 9c3c469e5a9d3..5555abcff1a96 100644 --- a/api_docs/kbn_react_kibana_context_theme.mdx +++ b/api_docs/kbn_react_kibana_context_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-theme title: "@kbn/react-kibana-context-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-theme plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-theme'] --- import kbnReactKibanaContextThemeObj from './kbn_react_kibana_context_theme.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_mount.mdx b/api_docs/kbn_react_kibana_mount.mdx index b038446948095..5ee2fc7422748 100644 --- a/api_docs/kbn_react_kibana_mount.mdx +++ b/api_docs/kbn_react_kibana_mount.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-mount title: "@kbn/react-kibana-mount" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-mount plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-mount'] --- import kbnReactKibanaMountObj from './kbn_react_kibana_mount.devdocs.json'; diff --git a/api_docs/kbn_react_mute_legacy_root_warning.mdx b/api_docs/kbn_react_mute_legacy_root_warning.mdx index d583e2ffe3be8..b6c9053209057 100644 --- a/api_docs/kbn_react_mute_legacy_root_warning.mdx +++ b/api_docs/kbn_react_mute_legacy_root_warning.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-mute-legacy-root-warning title: "@kbn/react-mute-legacy-root-warning" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-mute-legacy-root-warning plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-mute-legacy-root-warning'] --- import kbnReactMuteLegacyRootWarningObj from './kbn_react_mute_legacy_root_warning.devdocs.json'; diff --git a/api_docs/kbn_recently_accessed.mdx b/api_docs/kbn_recently_accessed.mdx index 15e64e548111f..c2eb14618b56e 100644 --- a/api_docs/kbn_recently_accessed.mdx +++ b/api_docs/kbn_recently_accessed.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-recently-accessed title: "@kbn/recently-accessed" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/recently-accessed plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/recently-accessed'] --- import kbnRecentlyAccessedObj from './kbn_recently_accessed.devdocs.json'; diff --git a/api_docs/kbn_relocate.mdx b/api_docs/kbn_relocate.mdx index 8158d84f5436c..6fcc231ca1b5a 100644 --- a/api_docs/kbn_relocate.mdx +++ b/api_docs/kbn_relocate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-relocate title: "@kbn/relocate" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/relocate plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/relocate'] --- import kbnRelocateObj from './kbn_relocate.devdocs.json'; diff --git a/api_docs/kbn_repo_file_maps.mdx b/api_docs/kbn_repo_file_maps.mdx index 87dc6e4f0b06b..e4997b4f65ada 100644 --- a/api_docs/kbn_repo_file_maps.mdx +++ b/api_docs/kbn_repo_file_maps.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-file-maps title: "@kbn/repo-file-maps" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-file-maps plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-file-maps'] --- import kbnRepoFileMapsObj from './kbn_repo_file_maps.devdocs.json'; diff --git a/api_docs/kbn_repo_linter.mdx b/api_docs/kbn_repo_linter.mdx index 5819aefd4b49b..4675c693483ae 100644 --- a/api_docs/kbn_repo_linter.mdx +++ b/api_docs/kbn_repo_linter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-linter title: "@kbn/repo-linter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-linter plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-linter'] --- import kbnRepoLinterObj from './kbn_repo_linter.devdocs.json'; diff --git a/api_docs/kbn_repo_path.mdx b/api_docs/kbn_repo_path.mdx index e47cfeb96c3c6..5ac80b6d015e7 100644 --- a/api_docs/kbn_repo_path.mdx +++ b/api_docs/kbn_repo_path.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-path title: "@kbn/repo-path" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-path plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-path'] --- import kbnRepoPathObj from './kbn_repo_path.devdocs.json'; diff --git a/api_docs/kbn_repo_source_classifier.mdx b/api_docs/kbn_repo_source_classifier.mdx index 3c3cab1d99254..4a6322e06683d 100644 --- a/api_docs/kbn_repo_source_classifier.mdx +++ b/api_docs/kbn_repo_source_classifier.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-source-classifier title: "@kbn/repo-source-classifier" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-source-classifier plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-source-classifier'] --- import kbnRepoSourceClassifierObj from './kbn_repo_source_classifier.devdocs.json'; diff --git a/api_docs/kbn_reporting_common.mdx b/api_docs/kbn_reporting_common.mdx index f2ecd44cf2691..bc17c7b35c4ef 100644 --- a/api_docs/kbn_reporting_common.mdx +++ b/api_docs/kbn_reporting_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-common title: "@kbn/reporting-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-common'] --- import kbnReportingCommonObj from './kbn_reporting_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_csv_share_panel.mdx b/api_docs/kbn_reporting_csv_share_panel.mdx index ea1af9f111202..fb165151db617 100644 --- a/api_docs/kbn_reporting_csv_share_panel.mdx +++ b/api_docs/kbn_reporting_csv_share_panel.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-csv-share-panel title: "@kbn/reporting-csv-share-panel" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-csv-share-panel plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-csv-share-panel'] --- import kbnReportingCsvSharePanelObj from './kbn_reporting_csv_share_panel.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_csv.mdx b/api_docs/kbn_reporting_export_types_csv.mdx index 089f1c3887ff2..26c50a68abf03 100644 --- a/api_docs/kbn_reporting_export_types_csv.mdx +++ b/api_docs/kbn_reporting_export_types_csv.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-csv title: "@kbn/reporting-export-types-csv" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-csv plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-csv'] --- import kbnReportingExportTypesCsvObj from './kbn_reporting_export_types_csv.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_csv_common.mdx b/api_docs/kbn_reporting_export_types_csv_common.mdx index 6125265362d77..2f8cdb44b9b3f 100644 --- a/api_docs/kbn_reporting_export_types_csv_common.mdx +++ b/api_docs/kbn_reporting_export_types_csv_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-csv-common title: "@kbn/reporting-export-types-csv-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-csv-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-csv-common'] --- import kbnReportingExportTypesCsvCommonObj from './kbn_reporting_export_types_csv_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_pdf.mdx b/api_docs/kbn_reporting_export_types_pdf.mdx index 2fee06ea4c175..70066054249a2 100644 --- a/api_docs/kbn_reporting_export_types_pdf.mdx +++ b/api_docs/kbn_reporting_export_types_pdf.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-pdf title: "@kbn/reporting-export-types-pdf" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-pdf plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-pdf'] --- import kbnReportingExportTypesPdfObj from './kbn_reporting_export_types_pdf.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_pdf_common.mdx b/api_docs/kbn_reporting_export_types_pdf_common.mdx index 37753f0286385..4fccf5a1556a7 100644 --- a/api_docs/kbn_reporting_export_types_pdf_common.mdx +++ b/api_docs/kbn_reporting_export_types_pdf_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-pdf-common title: "@kbn/reporting-export-types-pdf-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-pdf-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-pdf-common'] --- import kbnReportingExportTypesPdfCommonObj from './kbn_reporting_export_types_pdf_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_png.mdx b/api_docs/kbn_reporting_export_types_png.mdx index 5944a549cbcbb..52ce83b8fa0ba 100644 --- a/api_docs/kbn_reporting_export_types_png.mdx +++ b/api_docs/kbn_reporting_export_types_png.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-png title: "@kbn/reporting-export-types-png" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-png plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-png'] --- import kbnReportingExportTypesPngObj from './kbn_reporting_export_types_png.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_png_common.mdx b/api_docs/kbn_reporting_export_types_png_common.mdx index 077e092fc1c59..d58965cc38435 100644 --- a/api_docs/kbn_reporting_export_types_png_common.mdx +++ b/api_docs/kbn_reporting_export_types_png_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-png-common title: "@kbn/reporting-export-types-png-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-png-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-png-common'] --- import kbnReportingExportTypesPngCommonObj from './kbn_reporting_export_types_png_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_mocks_server.mdx b/api_docs/kbn_reporting_mocks_server.mdx index 472df3284d33c..7d1ee821c4f16 100644 --- a/api_docs/kbn_reporting_mocks_server.mdx +++ b/api_docs/kbn_reporting_mocks_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-mocks-server title: "@kbn/reporting-mocks-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-mocks-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-mocks-server'] --- import kbnReportingMocksServerObj from './kbn_reporting_mocks_server.devdocs.json'; diff --git a/api_docs/kbn_reporting_public.mdx b/api_docs/kbn_reporting_public.mdx index da3afec2b2cc9..59ede850a925c 100644 --- a/api_docs/kbn_reporting_public.mdx +++ b/api_docs/kbn_reporting_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-public title: "@kbn/reporting-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-public plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-public'] --- import kbnReportingPublicObj from './kbn_reporting_public.devdocs.json'; diff --git a/api_docs/kbn_reporting_server.mdx b/api_docs/kbn_reporting_server.mdx index 9a2a38e11d303..a8b4692c5971f 100644 --- a/api_docs/kbn_reporting_server.mdx +++ b/api_docs/kbn_reporting_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-server title: "@kbn/reporting-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-server'] --- import kbnReportingServerObj from './kbn_reporting_server.devdocs.json'; diff --git a/api_docs/kbn_resizable_layout.mdx b/api_docs/kbn_resizable_layout.mdx index cb50fbff8bd6f..ae1daee4f3af6 100644 --- a/api_docs/kbn_resizable_layout.mdx +++ b/api_docs/kbn_resizable_layout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-resizable-layout title: "@kbn/resizable-layout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/resizable-layout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/resizable-layout'] --- import kbnResizableLayoutObj from './kbn_resizable_layout.devdocs.json'; diff --git a/api_docs/kbn_response_ops_feature_flag_service.mdx b/api_docs/kbn_response_ops_feature_flag_service.mdx index cc70738e0163c..ea923aa7b75d2 100644 --- a/api_docs/kbn_response_ops_feature_flag_service.mdx +++ b/api_docs/kbn_response_ops_feature_flag_service.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-feature-flag-service title: "@kbn/response-ops-feature-flag-service" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-feature-flag-service plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-feature-flag-service'] --- import kbnResponseOpsFeatureFlagServiceObj from './kbn_response_ops_feature_flag_service.devdocs.json'; diff --git a/api_docs/kbn_response_ops_rule_form.mdx b/api_docs/kbn_response_ops_rule_form.mdx index 1155739a169de..23afb368a4291 100644 --- a/api_docs/kbn_response_ops_rule_form.mdx +++ b/api_docs/kbn_response_ops_rule_form.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-rule-form title: "@kbn/response-ops-rule-form" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-rule-form plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-rule-form'] --- import kbnResponseOpsRuleFormObj from './kbn_response_ops_rule_form.devdocs.json'; diff --git a/api_docs/kbn_response_ops_rule_params.mdx b/api_docs/kbn_response_ops_rule_params.mdx index f399812efdd7b..ed640207a9600 100644 --- a/api_docs/kbn_response_ops_rule_params.mdx +++ b/api_docs/kbn_response_ops_rule_params.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-rule-params title: "@kbn/response-ops-rule-params" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-rule-params plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-rule-params'] --- import kbnResponseOpsRuleParamsObj from './kbn_response_ops_rule_params.devdocs.json'; diff --git a/api_docs/kbn_rison.mdx b/api_docs/kbn_rison.mdx index afa14a1a8303f..c3771a365c202 100644 --- a/api_docs/kbn_rison.mdx +++ b/api_docs/kbn_rison.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rison title: "@kbn/rison" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rison plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rison'] --- import kbnRisonObj from './kbn_rison.devdocs.json'; diff --git a/api_docs/kbn_rollup.mdx b/api_docs/kbn_rollup.mdx index 4735e6dba35aa..253399d2bc11a 100644 --- a/api_docs/kbn_rollup.mdx +++ b/api_docs/kbn_rollup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rollup title: "@kbn/rollup" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rollup plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rollup'] --- import kbnRollupObj from './kbn_rollup.devdocs.json'; diff --git a/api_docs/kbn_router_to_openapispec.mdx b/api_docs/kbn_router_to_openapispec.mdx index 1452c3adb31bd..3103661381a8d 100644 --- a/api_docs/kbn_router_to_openapispec.mdx +++ b/api_docs/kbn_router_to_openapispec.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-router-to-openapispec title: "@kbn/router-to-openapispec" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/router-to-openapispec plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/router-to-openapispec'] --- import kbnRouterToOpenapispecObj from './kbn_router_to_openapispec.devdocs.json'; diff --git a/api_docs/kbn_router_utils.mdx b/api_docs/kbn_router_utils.mdx index 632f085344b96..0f9d8f17cc07c 100644 --- a/api_docs/kbn_router_utils.mdx +++ b/api_docs/kbn_router_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-router-utils title: "@kbn/router-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/router-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/router-utils'] --- import kbnRouterUtilsObj from './kbn_router_utils.devdocs.json'; diff --git a/api_docs/kbn_rrule.mdx b/api_docs/kbn_rrule.mdx index edabe8f60b44a..f27ee67df2f25 100644 --- a/api_docs/kbn_rrule.mdx +++ b/api_docs/kbn_rrule.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rrule title: "@kbn/rrule" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rrule plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rrule'] --- import kbnRruleObj from './kbn_rrule.devdocs.json'; diff --git a/api_docs/kbn_rule_data_utils.mdx b/api_docs/kbn_rule_data_utils.mdx index 87f1a7143a2a1..8d26845444721 100644 --- a/api_docs/kbn_rule_data_utils.mdx +++ b/api_docs/kbn_rule_data_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rule-data-utils title: "@kbn/rule-data-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rule-data-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rule-data-utils'] --- import kbnRuleDataUtilsObj from './kbn_rule_data_utils.devdocs.json'; diff --git a/api_docs/kbn_saved_objects_settings.mdx b/api_docs/kbn_saved_objects_settings.mdx index e062283592a9c..7c3194a4ae7a9 100644 --- a/api_docs/kbn_saved_objects_settings.mdx +++ b/api_docs/kbn_saved_objects_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-saved-objects-settings title: "@kbn/saved-objects-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/saved-objects-settings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/saved-objects-settings'] --- import kbnSavedObjectsSettingsObj from './kbn_saved_objects_settings.devdocs.json'; diff --git a/api_docs/kbn_saved_search_component.mdx b/api_docs/kbn_saved_search_component.mdx index 5497c4ed5e432..a5b47de4d99ae 100644 --- a/api_docs/kbn_saved_search_component.mdx +++ b/api_docs/kbn_saved_search_component.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-saved-search-component title: "@kbn/saved-search-component" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/saved-search-component plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/saved-search-component'] --- import kbnSavedSearchComponentObj from './kbn_saved_search_component.devdocs.json'; diff --git a/api_docs/kbn_scout.mdx b/api_docs/kbn_scout.mdx index 4f995ca00b570..265082171397d 100644 --- a/api_docs/kbn_scout.mdx +++ b/api_docs/kbn_scout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout title: "@kbn/scout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout'] --- import kbnScoutObj from './kbn_scout.devdocs.json'; diff --git a/api_docs/kbn_scout_info.mdx b/api_docs/kbn_scout_info.mdx index 86b30eba64550..782f2417390b8 100644 --- a/api_docs/kbn_scout_info.mdx +++ b/api_docs/kbn_scout_info.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout-info title: "@kbn/scout-info" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout-info plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout-info'] --- import kbnScoutInfoObj from './kbn_scout_info.devdocs.json'; diff --git a/api_docs/kbn_scout_reporting.mdx b/api_docs/kbn_scout_reporting.mdx index 2f95c98066b60..e2a5cc03d49fa 100644 --- a/api_docs/kbn_scout_reporting.mdx +++ b/api_docs/kbn_scout_reporting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout-reporting title: "@kbn/scout-reporting" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout-reporting plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout-reporting'] --- import kbnScoutReportingObj from './kbn_scout_reporting.devdocs.json'; diff --git a/api_docs/kbn_screenshotting_server.mdx b/api_docs/kbn_screenshotting_server.mdx index dbcd2a375f631..74c9635820ba2 100644 --- a/api_docs/kbn_screenshotting_server.mdx +++ b/api_docs/kbn_screenshotting_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-screenshotting-server title: "@kbn/screenshotting-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/screenshotting-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/screenshotting-server'] --- import kbnScreenshottingServerObj from './kbn_screenshotting_server.devdocs.json'; diff --git a/api_docs/kbn_search_api_keys_components.mdx b/api_docs/kbn_search_api_keys_components.mdx index a53f9b1ed599b..aadcda9025a24 100644 --- a/api_docs/kbn_search_api_keys_components.mdx +++ b/api_docs/kbn_search_api_keys_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-keys-components title: "@kbn/search-api-keys-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-keys-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-keys-components'] --- import kbnSearchApiKeysComponentsObj from './kbn_search_api_keys_components.devdocs.json'; diff --git a/api_docs/kbn_search_api_keys_server.mdx b/api_docs/kbn_search_api_keys_server.mdx index abbed1dbec960..563b0f442d441 100644 --- a/api_docs/kbn_search_api_keys_server.mdx +++ b/api_docs/kbn_search_api_keys_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-keys-server title: "@kbn/search-api-keys-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-keys-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-keys-server'] --- import kbnSearchApiKeysServerObj from './kbn_search_api_keys_server.devdocs.json'; diff --git a/api_docs/kbn_search_api_panels.mdx b/api_docs/kbn_search_api_panels.mdx index ac0296bac582e..05523178bab53 100644 --- a/api_docs/kbn_search_api_panels.mdx +++ b/api_docs/kbn_search_api_panels.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-panels title: "@kbn/search-api-panels" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-panels plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-panels'] --- import kbnSearchApiPanelsObj from './kbn_search_api_panels.devdocs.json'; diff --git a/api_docs/kbn_search_connectors.mdx b/api_docs/kbn_search_connectors.mdx index a044f9058ff64..d6ccf77a2e345 100644 --- a/api_docs/kbn_search_connectors.mdx +++ b/api_docs/kbn_search_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-connectors title: "@kbn/search-connectors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-connectors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-connectors'] --- import kbnSearchConnectorsObj from './kbn_search_connectors.devdocs.json'; diff --git a/api_docs/kbn_search_errors.mdx b/api_docs/kbn_search_errors.mdx index ac2d6361a3c35..a8ea63885bf63 100644 --- a/api_docs/kbn_search_errors.mdx +++ b/api_docs/kbn_search_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-errors title: "@kbn/search-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-errors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-errors'] --- import kbnSearchErrorsObj from './kbn_search_errors.devdocs.json'; diff --git a/api_docs/kbn_search_index_documents.mdx b/api_docs/kbn_search_index_documents.mdx index 0da759d097709..4f0d115076495 100644 --- a/api_docs/kbn_search_index_documents.mdx +++ b/api_docs/kbn_search_index_documents.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-index-documents title: "@kbn/search-index-documents" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-index-documents plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-index-documents'] --- import kbnSearchIndexDocumentsObj from './kbn_search_index_documents.devdocs.json'; diff --git a/api_docs/kbn_search_response_warnings.mdx b/api_docs/kbn_search_response_warnings.mdx index 2bdbcd82a2be8..e53c2db7bf1d7 100644 --- a/api_docs/kbn_search_response_warnings.mdx +++ b/api_docs/kbn_search_response_warnings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-response-warnings title: "@kbn/search-response-warnings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-response-warnings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-response-warnings'] --- import kbnSearchResponseWarningsObj from './kbn_search_response_warnings.devdocs.json'; diff --git a/api_docs/kbn_search_shared_ui.mdx b/api_docs/kbn_search_shared_ui.mdx index 87ebc0392a674..afdb9ea948342 100644 --- a/api_docs/kbn_search_shared_ui.mdx +++ b/api_docs/kbn_search_shared_ui.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-shared-ui title: "@kbn/search-shared-ui" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-shared-ui plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-shared-ui'] --- import kbnSearchSharedUiObj from './kbn_search_shared_ui.devdocs.json'; diff --git a/api_docs/kbn_search_types.mdx b/api_docs/kbn_search_types.mdx index 16196ef42ed75..35119f2e02cf5 100644 --- a/api_docs/kbn_search_types.mdx +++ b/api_docs/kbn_search_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-types title: "@kbn/search-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-types'] --- import kbnSearchTypesObj from './kbn_search_types.devdocs.json'; diff --git a/api_docs/kbn_security_api_key_management.mdx b/api_docs/kbn_security_api_key_management.mdx index 3ac0005b994e5..3ab05d22ed380 100644 --- a/api_docs/kbn_security_api_key_management.mdx +++ b/api_docs/kbn_security_api_key_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-api-key-management title: "@kbn/security-api-key-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-api-key-management plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-api-key-management'] --- import kbnSecurityApiKeyManagementObj from './kbn_security_api_key_management.devdocs.json'; diff --git a/api_docs/kbn_security_authorization_core.mdx b/api_docs/kbn_security_authorization_core.mdx index 1eb1254a5fd25..67da8c2722720 100644 --- a/api_docs/kbn_security_authorization_core.mdx +++ b/api_docs/kbn_security_authorization_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-authorization-core title: "@kbn/security-authorization-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-authorization-core plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-authorization-core'] --- import kbnSecurityAuthorizationCoreObj from './kbn_security_authorization_core.devdocs.json'; diff --git a/api_docs/kbn_security_authorization_core_common.mdx b/api_docs/kbn_security_authorization_core_common.mdx index d4dc67f765971..ff6447478e479 100644 --- a/api_docs/kbn_security_authorization_core_common.mdx +++ b/api_docs/kbn_security_authorization_core_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-authorization-core-common title: "@kbn/security-authorization-core-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-authorization-core-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-authorization-core-common'] --- import kbnSecurityAuthorizationCoreCommonObj from './kbn_security_authorization_core_common.devdocs.json'; diff --git a/api_docs/kbn_security_form_components.mdx b/api_docs/kbn_security_form_components.mdx index 853b0a1d97d30..d9aa1d2ea7a96 100644 --- a/api_docs/kbn_security_form_components.mdx +++ b/api_docs/kbn_security_form_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-form-components title: "@kbn/security-form-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-form-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-form-components'] --- import kbnSecurityFormComponentsObj from './kbn_security_form_components.devdocs.json'; diff --git a/api_docs/kbn_security_hardening.mdx b/api_docs/kbn_security_hardening.mdx index 0529d64ad7d05..6c415bbe53c93 100644 --- a/api_docs/kbn_security_hardening.mdx +++ b/api_docs/kbn_security_hardening.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-hardening title: "@kbn/security-hardening" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-hardening plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-hardening'] --- import kbnSecurityHardeningObj from './kbn_security_hardening.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_common.mdx b/api_docs/kbn_security_plugin_types_common.mdx index a8d518f4082db..dc4f1278c8f9e 100644 --- a/api_docs/kbn_security_plugin_types_common.mdx +++ b/api_docs/kbn_security_plugin_types_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-common title: "@kbn/security-plugin-types-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-common plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-common'] --- import kbnSecurityPluginTypesCommonObj from './kbn_security_plugin_types_common.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_public.mdx b/api_docs/kbn_security_plugin_types_public.mdx index 59ff3dbaa77fe..74f6be8cb89d4 100644 --- a/api_docs/kbn_security_plugin_types_public.mdx +++ b/api_docs/kbn_security_plugin_types_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-public title: "@kbn/security-plugin-types-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-public plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-public'] --- import kbnSecurityPluginTypesPublicObj from './kbn_security_plugin_types_public.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_server.mdx b/api_docs/kbn_security_plugin_types_server.mdx index d36e0da1c1b04..79a9cc66b6ccb 100644 --- a/api_docs/kbn_security_plugin_types_server.mdx +++ b/api_docs/kbn_security_plugin_types_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-server title: "@kbn/security-plugin-types-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-server'] --- import kbnSecurityPluginTypesServerObj from './kbn_security_plugin_types_server.devdocs.json'; diff --git a/api_docs/kbn_security_role_management_model.mdx b/api_docs/kbn_security_role_management_model.mdx index f00d72e8c4982..601bb46ab49bf 100644 --- a/api_docs/kbn_security_role_management_model.mdx +++ b/api_docs/kbn_security_role_management_model.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-role-management-model title: "@kbn/security-role-management-model" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-role-management-model plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-role-management-model'] --- import kbnSecurityRoleManagementModelObj from './kbn_security_role_management_model.devdocs.json'; diff --git a/api_docs/kbn_security_solution_distribution_bar.mdx b/api_docs/kbn_security_solution_distribution_bar.mdx index 9afa5009619a2..9b9fe89b67401 100644 --- a/api_docs/kbn_security_solution_distribution_bar.mdx +++ b/api_docs/kbn_security_solution_distribution_bar.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-distribution-bar title: "@kbn/security-solution-distribution-bar" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-distribution-bar plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-distribution-bar'] --- import kbnSecuritySolutionDistributionBarObj from './kbn_security_solution_distribution_bar.devdocs.json'; diff --git a/api_docs/kbn_security_solution_features.mdx b/api_docs/kbn_security_solution_features.mdx index 4675282ce5044..3d5d747e355ad 100644 --- a/api_docs/kbn_security_solution_features.mdx +++ b/api_docs/kbn_security_solution_features.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-features title: "@kbn/security-solution-features" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-features plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-features'] --- import kbnSecuritySolutionFeaturesObj from './kbn_security_solution_features.devdocs.json'; diff --git a/api_docs/kbn_security_solution_navigation.mdx b/api_docs/kbn_security_solution_navigation.mdx index 71f6db3be7a68..d4e42643d09e7 100644 --- a/api_docs/kbn_security_solution_navigation.mdx +++ b/api_docs/kbn_security_solution_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-navigation title: "@kbn/security-solution-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-navigation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-navigation'] --- import kbnSecuritySolutionNavigationObj from './kbn_security_solution_navigation.devdocs.json'; diff --git a/api_docs/kbn_security_solution_side_nav.mdx b/api_docs/kbn_security_solution_side_nav.mdx index e30d78da587ed..54bf19c2a2c52 100644 --- a/api_docs/kbn_security_solution_side_nav.mdx +++ b/api_docs/kbn_security_solution_side_nav.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-side-nav title: "@kbn/security-solution-side-nav" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-side-nav plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-side-nav'] --- import kbnSecuritySolutionSideNavObj from './kbn_security_solution_side_nav.devdocs.json'; diff --git a/api_docs/kbn_security_solution_storybook_config.mdx b/api_docs/kbn_security_solution_storybook_config.mdx index d62aaa4df7828..98a6b25bf3958 100644 --- a/api_docs/kbn_security_solution_storybook_config.mdx +++ b/api_docs/kbn_security_solution_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-storybook-config title: "@kbn/security-solution-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-storybook-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-storybook-config'] --- import kbnSecuritySolutionStorybookConfigObj from './kbn_security_solution_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_security_ui_components.mdx b/api_docs/kbn_security_ui_components.mdx index 3b9bfca484252..b3d1f1ad39b85 100644 --- a/api_docs/kbn_security_ui_components.mdx +++ b/api_docs/kbn_security_ui_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-ui-components title: "@kbn/security-ui-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-ui-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-ui-components'] --- import kbnSecurityUiComponentsObj from './kbn_security_ui_components.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_autocomplete.mdx b/api_docs/kbn_securitysolution_autocomplete.mdx index 8d23d1b54f192..cdc9079bcdd66 100644 --- a/api_docs/kbn_securitysolution_autocomplete.mdx +++ b/api_docs/kbn_securitysolution_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-autocomplete title: "@kbn/securitysolution-autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-autocomplete plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-autocomplete'] --- import kbnSecuritysolutionAutocompleteObj from './kbn_securitysolution_autocomplete.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_data_table.mdx b/api_docs/kbn_securitysolution_data_table.mdx index d7cbd85d59e60..1148248304a10 100644 --- a/api_docs/kbn_securitysolution_data_table.mdx +++ b/api_docs/kbn_securitysolution_data_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-data-table title: "@kbn/securitysolution-data-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-data-table plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-data-table'] --- import kbnSecuritysolutionDataTableObj from './kbn_securitysolution_data_table.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_ecs.mdx b/api_docs/kbn_securitysolution_ecs.mdx index ab58adf542c34..93fcd07b00756 100644 --- a/api_docs/kbn_securitysolution_ecs.mdx +++ b/api_docs/kbn_securitysolution_ecs.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-ecs title: "@kbn/securitysolution-ecs" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-ecs plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-ecs'] --- import kbnSecuritysolutionEcsObj from './kbn_securitysolution_ecs.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_es_utils.mdx b/api_docs/kbn_securitysolution_es_utils.mdx index eb004f9b7e199..58936b87613cb 100644 --- a/api_docs/kbn_securitysolution_es_utils.mdx +++ b/api_docs/kbn_securitysolution_es_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-es-utils title: "@kbn/securitysolution-es-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-es-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-es-utils'] --- import kbnSecuritysolutionEsUtilsObj from './kbn_securitysolution_es_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_exception_list_components.mdx b/api_docs/kbn_securitysolution_exception_list_components.mdx index 078a7b730e4d8..8f74463bdc2ec 100644 --- a/api_docs/kbn_securitysolution_exception_list_components.mdx +++ b/api_docs/kbn_securitysolution_exception_list_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-exception-list-components title: "@kbn/securitysolution-exception-list-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-exception-list-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-exception-list-components'] --- import kbnSecuritysolutionExceptionListComponentsObj from './kbn_securitysolution_exception_list_components.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx index 2c7618a735ce8..418d144af80ae 100644 --- a/api_docs/kbn_securitysolution_hook_utils.mdx +++ b/api_docs/kbn_securitysolution_hook_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-hook-utils title: "@kbn/securitysolution-hook-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-hook-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-hook-utils'] --- import kbnSecuritysolutionHookUtilsObj from './kbn_securitysolution_hook_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx index 1c21d4922199a..657d841b7febc 100644 --- a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-alerting-types title: "@kbn/securitysolution-io-ts-alerting-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-alerting-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-alerting-types'] --- import kbnSecuritysolutionIoTsAlertingTypesObj from './kbn_securitysolution_io_ts_alerting_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.mdx b/api_docs/kbn_securitysolution_io_ts_list_types.mdx index 0c0ff85c413dd..dabe0039df759 100644 --- a/api_docs/kbn_securitysolution_io_ts_list_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_list_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-list-types title: "@kbn/securitysolution-io-ts-list-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-list-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-list-types'] --- import kbnSecuritysolutionIoTsListTypesObj from './kbn_securitysolution_io_ts_list_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_types.mdx b/api_docs/kbn_securitysolution_io_ts_types.mdx index e0380299b42e6..709a787080815 100644 --- a/api_docs/kbn_securitysolution_io_ts_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-types title: "@kbn/securitysolution-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-types'] --- import kbnSecuritysolutionIoTsTypesObj from './kbn_securitysolution_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_utils.mdx b/api_docs/kbn_securitysolution_io_ts_utils.mdx index 5ca6aa8273e52..683ead0a1713e 100644 --- a/api_docs/kbn_securitysolution_io_ts_utils.mdx +++ b/api_docs/kbn_securitysolution_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-utils title: "@kbn/securitysolution-io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-utils'] --- import kbnSecuritysolutionIoTsUtilsObj from './kbn_securitysolution_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx index 45306f5b21345..f9f7108d44366 100644 --- a/api_docs/kbn_securitysolution_list_api.mdx +++ b/api_docs/kbn_securitysolution_list_api.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-api title: "@kbn/securitysolution-list-api" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-api plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-api'] --- import kbnSecuritysolutionListApiObj from './kbn_securitysolution_list_api.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_constants.mdx b/api_docs/kbn_securitysolution_list_constants.mdx index 1debd315e2203..cfb911beb0412 100644 --- a/api_docs/kbn_securitysolution_list_constants.mdx +++ b/api_docs/kbn_securitysolution_list_constants.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-constants title: "@kbn/securitysolution-list-constants" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-constants plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-constants'] --- import kbnSecuritysolutionListConstantsObj from './kbn_securitysolution_list_constants.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_hooks.mdx b/api_docs/kbn_securitysolution_list_hooks.mdx index 134109eb7a1d5..2d4125fab7d4f 100644 --- a/api_docs/kbn_securitysolution_list_hooks.mdx +++ b/api_docs/kbn_securitysolution_list_hooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-hooks title: "@kbn/securitysolution-list-hooks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-hooks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-hooks'] --- import kbnSecuritysolutionListHooksObj from './kbn_securitysolution_list_hooks.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_utils.mdx b/api_docs/kbn_securitysolution_list_utils.mdx index 1fbf2ca34062a..4dfba5190dc1b 100644 --- a/api_docs/kbn_securitysolution_list_utils.mdx +++ b/api_docs/kbn_securitysolution_list_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-utils title: "@kbn/securitysolution-list-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-utils'] --- import kbnSecuritysolutionListUtilsObj from './kbn_securitysolution_list_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_rules.mdx b/api_docs/kbn_securitysolution_rules.mdx index 4dccb00e9d53d..265aea9ff5ea4 100644 --- a/api_docs/kbn_securitysolution_rules.mdx +++ b/api_docs/kbn_securitysolution_rules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-rules title: "@kbn/securitysolution-rules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-rules plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-rules'] --- import kbnSecuritysolutionRulesObj from './kbn_securitysolution_rules.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_t_grid.mdx b/api_docs/kbn_securitysolution_t_grid.mdx index 2aaf3c82a1e7f..9083219a8ed1f 100644 --- a/api_docs/kbn_securitysolution_t_grid.mdx +++ b/api_docs/kbn_securitysolution_t_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-t-grid title: "@kbn/securitysolution-t-grid" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-t-grid plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-t-grid'] --- import kbnSecuritysolutionTGridObj from './kbn_securitysolution_t_grid.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_utils.mdx b/api_docs/kbn_securitysolution_utils.mdx index 3898ae8f9b818..0f1fd9a9ebd11 100644 --- a/api_docs/kbn_securitysolution_utils.mdx +++ b/api_docs/kbn_securitysolution_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-utils title: "@kbn/securitysolution-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-utils'] --- import kbnSecuritysolutionUtilsObj from './kbn_securitysolution_utils.devdocs.json'; diff --git a/api_docs/kbn_server_http_tools.mdx b/api_docs/kbn_server_http_tools.mdx index 199dfc05e51ff..3ce8d02cad56a 100644 --- a/api_docs/kbn_server_http_tools.mdx +++ b/api_docs/kbn_server_http_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-http-tools title: "@kbn/server-http-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-http-tools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-http-tools'] --- import kbnServerHttpToolsObj from './kbn_server_http_tools.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository.mdx b/api_docs/kbn_server_route_repository.mdx index b3be663d171fd..83f81aa17e611 100644 --- a/api_docs/kbn_server_route_repository.mdx +++ b/api_docs/kbn_server_route_repository.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository title: "@kbn/server-route-repository" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository'] --- import kbnServerRouteRepositoryObj from './kbn_server_route_repository.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository_client.mdx b/api_docs/kbn_server_route_repository_client.mdx index b493c81bce403..a09e5eee56008 100644 --- a/api_docs/kbn_server_route_repository_client.mdx +++ b/api_docs/kbn_server_route_repository_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository-client title: "@kbn/server-route-repository-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository-client plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository-client'] --- import kbnServerRouteRepositoryClientObj from './kbn_server_route_repository_client.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository_utils.mdx b/api_docs/kbn_server_route_repository_utils.mdx index edb157985a285..9f8590988be56 100644 --- a/api_docs/kbn_server_route_repository_utils.mdx +++ b/api_docs/kbn_server_route_repository_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository-utils title: "@kbn/server-route-repository-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository-utils'] --- import kbnServerRouteRepositoryUtilsObj from './kbn_server_route_repository_utils.devdocs.json'; diff --git a/api_docs/kbn_serverless_common_settings.mdx b/api_docs/kbn_serverless_common_settings.mdx index 6c9caea95bb2c..839128daa6df7 100644 --- a/api_docs/kbn_serverless_common_settings.mdx +++ b/api_docs/kbn_serverless_common_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-common-settings title: "@kbn/serverless-common-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-common-settings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-common-settings'] --- import kbnServerlessCommonSettingsObj from './kbn_serverless_common_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_observability_settings.mdx b/api_docs/kbn_serverless_observability_settings.mdx index 3a45fb9f06b65..93a38ee71c8dc 100644 --- a/api_docs/kbn_serverless_observability_settings.mdx +++ b/api_docs/kbn_serverless_observability_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-observability-settings title: "@kbn/serverless-observability-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-observability-settings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-observability-settings'] --- import kbnServerlessObservabilitySettingsObj from './kbn_serverless_observability_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_project_switcher.mdx b/api_docs/kbn_serverless_project_switcher.mdx index ca605ea22d4e8..b8d2145811433 100644 --- a/api_docs/kbn_serverless_project_switcher.mdx +++ b/api_docs/kbn_serverless_project_switcher.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-project-switcher title: "@kbn/serverless-project-switcher" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-project-switcher plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-project-switcher'] --- import kbnServerlessProjectSwitcherObj from './kbn_serverless_project_switcher.devdocs.json'; diff --git a/api_docs/kbn_serverless_search_settings.mdx b/api_docs/kbn_serverless_search_settings.mdx index fb387d6d8e137..0e30e2494ad67 100644 --- a/api_docs/kbn_serverless_search_settings.mdx +++ b/api_docs/kbn_serverless_search_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-search-settings title: "@kbn/serverless-search-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-search-settings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-search-settings'] --- import kbnServerlessSearchSettingsObj from './kbn_serverless_search_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_security_settings.mdx b/api_docs/kbn_serverless_security_settings.mdx index 6ae5663a661fd..bdbfb887372a9 100644 --- a/api_docs/kbn_serverless_security_settings.mdx +++ b/api_docs/kbn_serverless_security_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-security-settings title: "@kbn/serverless-security-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-security-settings plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-security-settings'] --- import kbnServerlessSecuritySettingsObj from './kbn_serverless_security_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_storybook_config.mdx b/api_docs/kbn_serverless_storybook_config.mdx index 0a439d6a1f09e..e330bbd63db63 100644 --- a/api_docs/kbn_serverless_storybook_config.mdx +++ b/api_docs/kbn_serverless_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-storybook-config title: "@kbn/serverless-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-storybook-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-storybook-config'] --- import kbnServerlessStorybookConfigObj from './kbn_serverless_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_shared_svg.mdx b/api_docs/kbn_shared_svg.mdx index 708f7cf5cf765..a64d0ce410ff7 100644 --- a/api_docs/kbn_shared_svg.mdx +++ b/api_docs/kbn_shared_svg.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-svg title: "@kbn/shared-svg" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-svg plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-svg'] --- import kbnSharedSvgObj from './kbn_shared_svg.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_avatar_solution.mdx b/api_docs/kbn_shared_ux_avatar_solution.mdx index a2f04f53982fd..e38d702bf825e 100644 --- a/api_docs/kbn_shared_ux_avatar_solution.mdx +++ b/api_docs/kbn_shared_ux_avatar_solution.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-avatar-solution title: "@kbn/shared-ux-avatar-solution" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-avatar-solution plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-avatar-solution'] --- import kbnSharedUxAvatarSolutionObj from './kbn_shared_ux_avatar_solution.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_exit_full_screen.mdx b/api_docs/kbn_shared_ux_button_exit_full_screen.mdx index 13441867f1c6e..117036fda3c68 100644 --- a/api_docs/kbn_shared_ux_button_exit_full_screen.mdx +++ b/api_docs/kbn_shared_ux_button_exit_full_screen.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-exit-full-screen title: "@kbn/shared-ux-button-exit-full-screen" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-exit-full-screen plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-exit-full-screen'] --- import kbnSharedUxButtonExitFullScreenObj from './kbn_shared_ux_button_exit_full_screen.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_toolbar.mdx b/api_docs/kbn_shared_ux_button_toolbar.mdx index c1b65df1886be..eb2f9fa578f0a 100644 --- a/api_docs/kbn_shared_ux_button_toolbar.mdx +++ b/api_docs/kbn_shared_ux_button_toolbar.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-toolbar title: "@kbn/shared-ux-button-toolbar" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-toolbar plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-toolbar'] --- import kbnSharedUxButtonToolbarObj from './kbn_shared_ux_button_toolbar.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data.mdx b/api_docs/kbn_shared_ux_card_no_data.mdx index 1dad2eceb9dc7..a29bf8ec6f9a1 100644 --- a/api_docs/kbn_shared_ux_card_no_data.mdx +++ b/api_docs/kbn_shared_ux_card_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data title: "@kbn/shared-ux-card-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data'] --- import kbnSharedUxCardNoDataObj from './kbn_shared_ux_card_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx index 07778fc32cec5..e6be9f791be97 100644 --- a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data-mocks title: "@kbn/shared-ux-card-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data-mocks'] --- import kbnSharedUxCardNoDataMocksObj from './kbn_shared_ux_card_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_chrome_navigation.mdx b/api_docs/kbn_shared_ux_chrome_navigation.mdx index 066c94c53368e..28f6a1e84ba2e 100644 --- a/api_docs/kbn_shared_ux_chrome_navigation.mdx +++ b/api_docs/kbn_shared_ux_chrome_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-chrome-navigation title: "@kbn/shared-ux-chrome-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-chrome-navigation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-chrome-navigation'] --- import kbnSharedUxChromeNavigationObj from './kbn_shared_ux_chrome_navigation.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_error_boundary.mdx b/api_docs/kbn_shared_ux_error_boundary.mdx index c5f56aeafdf51..6096c10f859f1 100644 --- a/api_docs/kbn_shared_ux_error_boundary.mdx +++ b/api_docs/kbn_shared_ux_error_boundary.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-error-boundary title: "@kbn/shared-ux-error-boundary" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-error-boundary plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-error-boundary'] --- import kbnSharedUxErrorBoundaryObj from './kbn_shared_ux_error_boundary.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_context.mdx b/api_docs/kbn_shared_ux_file_context.mdx index a55a0c632a3e4..f0cf308de83c5 100644 --- a/api_docs/kbn_shared_ux_file_context.mdx +++ b/api_docs/kbn_shared_ux_file_context.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-context title: "@kbn/shared-ux-file-context" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-context plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-context'] --- import kbnSharedUxFileContextObj from './kbn_shared_ux_file_context.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_image.mdx b/api_docs/kbn_shared_ux_file_image.mdx index 4d33874756376..398e342d67336 100644 --- a/api_docs/kbn_shared_ux_file_image.mdx +++ b/api_docs/kbn_shared_ux_file_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-image title: "@kbn/shared-ux-file-image" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-image plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-image'] --- import kbnSharedUxFileImageObj from './kbn_shared_ux_file_image.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_image_mocks.mdx b/api_docs/kbn_shared_ux_file_image_mocks.mdx index 7a1a9f325662d..c5b4c967d3b65 100644 --- a/api_docs/kbn_shared_ux_file_image_mocks.mdx +++ b/api_docs/kbn_shared_ux_file_image_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-image-mocks title: "@kbn/shared-ux-file-image-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-image-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-image-mocks'] --- import kbnSharedUxFileImageMocksObj from './kbn_shared_ux_file_image_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_mocks.mdx b/api_docs/kbn_shared_ux_file_mocks.mdx index a009871f87b7f..e9ac64547a40d 100644 --- a/api_docs/kbn_shared_ux_file_mocks.mdx +++ b/api_docs/kbn_shared_ux_file_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-mocks title: "@kbn/shared-ux-file-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-mocks'] --- import kbnSharedUxFileMocksObj from './kbn_shared_ux_file_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_picker.mdx b/api_docs/kbn_shared_ux_file_picker.mdx index 46fb06ed664f7..37884b631026e 100644 --- a/api_docs/kbn_shared_ux_file_picker.mdx +++ b/api_docs/kbn_shared_ux_file_picker.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-picker title: "@kbn/shared-ux-file-picker" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-picker plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-picker'] --- import kbnSharedUxFilePickerObj from './kbn_shared_ux_file_picker.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_types.mdx b/api_docs/kbn_shared_ux_file_types.mdx index 7817e5b8d07b9..0be26f09dfa95 100644 --- a/api_docs/kbn_shared_ux_file_types.mdx +++ b/api_docs/kbn_shared_ux_file_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-types title: "@kbn/shared-ux-file-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-types'] --- import kbnSharedUxFileTypesObj from './kbn_shared_ux_file_types.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_upload.mdx b/api_docs/kbn_shared_ux_file_upload.mdx index a2a4f5850b36a..a660c29431e7b 100644 --- a/api_docs/kbn_shared_ux_file_upload.mdx +++ b/api_docs/kbn_shared_ux_file_upload.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-upload title: "@kbn/shared-ux-file-upload" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-upload plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-upload'] --- import kbnSharedUxFileUploadObj from './kbn_shared_ux_file_upload.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_util.mdx b/api_docs/kbn_shared_ux_file_util.mdx index 890098f5cd0f2..c10a4ba13fe4d 100644 --- a/api_docs/kbn_shared_ux_file_util.mdx +++ b/api_docs/kbn_shared_ux_file_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-util title: "@kbn/shared-ux-file-util" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-util plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-util'] --- import kbnSharedUxFileUtilObj from './kbn_shared_ux_file_util.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_link_redirect_app.mdx b/api_docs/kbn_shared_ux_link_redirect_app.mdx index cae56a5659f00..944f1d13de93c 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app.mdx +++ b/api_docs/kbn_shared_ux_link_redirect_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-link-redirect-app title: "@kbn/shared-ux-link-redirect-app" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-link-redirect-app plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-link-redirect-app'] --- import kbnSharedUxLinkRedirectAppObj from './kbn_shared_ux_link_redirect_app.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx index d08676e6d73ec..34248fd46d4b7 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx +++ b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-link-redirect-app-mocks title: "@kbn/shared-ux-link-redirect-app-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-link-redirect-app-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-link-redirect-app-mocks'] --- import kbnSharedUxLinkRedirectAppMocksObj from './kbn_shared_ux_link_redirect_app_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_markdown.mdx b/api_docs/kbn_shared_ux_markdown.mdx index 926234e39091e..7174452c9c7df 100644 --- a/api_docs/kbn_shared_ux_markdown.mdx +++ b/api_docs/kbn_shared_ux_markdown.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-markdown title: "@kbn/shared-ux-markdown" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-markdown plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-markdown'] --- import kbnSharedUxMarkdownObj from './kbn_shared_ux_markdown.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_markdown_mocks.mdx b/api_docs/kbn_shared_ux_markdown_mocks.mdx index 7f74d055b6c4f..c8e89497fc9e8 100644 --- a/api_docs/kbn_shared_ux_markdown_mocks.mdx +++ b/api_docs/kbn_shared_ux_markdown_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-markdown-mocks title: "@kbn/shared-ux-markdown-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-markdown-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-markdown-mocks'] --- import kbnSharedUxMarkdownMocksObj from './kbn_shared_ux_markdown_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx index 6b626f6b142be..e22591123a255 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data title: "@kbn/shared-ux-page-analytics-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data'] --- import kbnSharedUxPageAnalyticsNoDataObj from './kbn_shared_ux_page_analytics_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx index 5ba6aae29dc00..e636169a42bf6 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data-mocks title: "@kbn/shared-ux-page-analytics-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data-mocks'] --- import kbnSharedUxPageAnalyticsNoDataMocksObj from './kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx index 54c74a436c65a..02f49c06eeddc 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data title: "@kbn/shared-ux-page-kibana-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data'] --- import kbnSharedUxPageKibanaNoDataObj from './kbn_shared_ux_page_kibana_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx index ac0144defa3b7..001769611fc4d 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data-mocks title: "@kbn/shared-ux-page-kibana-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data-mocks'] --- import kbnSharedUxPageKibanaNoDataMocksObj from './kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template.mdx b/api_docs/kbn_shared_ux_page_kibana_template.mdx index 66c95b623f1bb..75d80e240068e 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template title: "@kbn/shared-ux-page-kibana-template" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template'] --- import kbnSharedUxPageKibanaTemplateObj from './kbn_shared_ux_page_kibana_template.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx index 2a3f0941f2404..21abd773c5526 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template-mocks title: "@kbn/shared-ux-page-kibana-template-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template-mocks'] --- import kbnSharedUxPageKibanaTemplateMocksObj from './kbn_shared_ux_page_kibana_template_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data.mdx b/api_docs/kbn_shared_ux_page_no_data.mdx index 55699af0364f2..b78fab77792c4 100644 --- a/api_docs/kbn_shared_ux_page_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data title: "@kbn/shared-ux-page-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data'] --- import kbnSharedUxPageNoDataObj from './kbn_shared_ux_page_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config.mdx b/api_docs/kbn_shared_ux_page_no_data_config.mdx index 342f2c3a5a65a..70daef9951b12 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config title: "@kbn/shared-ux-page-no-data-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config'] --- import kbnSharedUxPageNoDataConfigObj from './kbn_shared_ux_page_no_data_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx index 982cb0b6631a2..97c097f1733c3 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config-mocks title: "@kbn/shared-ux-page-no-data-config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config-mocks'] --- import kbnSharedUxPageNoDataConfigMocksObj from './kbn_shared_ux_page_no_data_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx index e9deba5681d07..e56b7660531a7 100644 --- a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-mocks title: "@kbn/shared-ux-page-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-mocks'] --- import kbnSharedUxPageNoDataMocksObj from './kbn_shared_ux_page_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_solution_nav.mdx b/api_docs/kbn_shared_ux_page_solution_nav.mdx index 896dca54390f7..a7d6080b27702 100644 --- a/api_docs/kbn_shared_ux_page_solution_nav.mdx +++ b/api_docs/kbn_shared_ux_page_solution_nav.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-solution-nav title: "@kbn/shared-ux-page-solution-nav" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-solution-nav plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-solution-nav'] --- import kbnSharedUxPageSolutionNavObj from './kbn_shared_ux_page_solution_nav.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx index fd62d8dc25ecd..c159e2818215c 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views title: "@kbn/shared-ux-prompt-no-data-views" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views'] --- import kbnSharedUxPromptNoDataViewsObj from './kbn_shared_ux_prompt_no_data_views.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx index 88dfb90a5e8f0..4828a5646353a 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views-mocks title: "@kbn/shared-ux-prompt-no-data-views-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views-mocks'] --- import kbnSharedUxPromptNoDataViewsMocksObj from './kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_not_found.mdx b/api_docs/kbn_shared_ux_prompt_not_found.mdx index 8f0479ae741fb..c2f35645ef217 100644 --- a/api_docs/kbn_shared_ux_prompt_not_found.mdx +++ b/api_docs/kbn_shared_ux_prompt_not_found.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-not-found title: "@kbn/shared-ux-prompt-not-found" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-not-found plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-not-found'] --- import kbnSharedUxPromptNotFoundObj from './kbn_shared_ux_prompt_not_found.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router.mdx b/api_docs/kbn_shared_ux_router.mdx index bbf730c7a0b3c..02406f099f97a 100644 --- a/api_docs/kbn_shared_ux_router.mdx +++ b/api_docs/kbn_shared_ux_router.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router title: "@kbn/shared-ux-router" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router'] --- import kbnSharedUxRouterObj from './kbn_shared_ux_router.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router_mocks.mdx b/api_docs/kbn_shared_ux_router_mocks.mdx index 8201d79edf3ae..b7425b631ca8c 100644 --- a/api_docs/kbn_shared_ux_router_mocks.mdx +++ b/api_docs/kbn_shared_ux_router_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router-mocks title: "@kbn/shared-ux-router-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router-mocks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router-mocks'] --- import kbnSharedUxRouterMocksObj from './kbn_shared_ux_router_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_config.mdx b/api_docs/kbn_shared_ux_storybook_config.mdx index 92f34e15ce6b7..37b8f7c2fc147 100644 --- a/api_docs/kbn_shared_ux_storybook_config.mdx +++ b/api_docs/kbn_shared_ux_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-config title: "@kbn/shared-ux-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-config'] --- import kbnSharedUxStorybookConfigObj from './kbn_shared_ux_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_mock.mdx b/api_docs/kbn_shared_ux_storybook_mock.mdx index f2a82a82cb1a4..3b70c15516734 100644 --- a/api_docs/kbn_shared_ux_storybook_mock.mdx +++ b/api_docs/kbn_shared_ux_storybook_mock.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-mock title: "@kbn/shared-ux-storybook-mock" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-mock plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-mock'] --- import kbnSharedUxStorybookMockObj from './kbn_shared_ux_storybook_mock.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_tabbed_modal.mdx b/api_docs/kbn_shared_ux_tabbed_modal.mdx index b1dd5335eab3e..508749c65845b 100644 --- a/api_docs/kbn_shared_ux_tabbed_modal.mdx +++ b/api_docs/kbn_shared_ux_tabbed_modal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-tabbed-modal title: "@kbn/shared-ux-tabbed-modal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-tabbed-modal plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-tabbed-modal'] --- import kbnSharedUxTabbedModalObj from './kbn_shared_ux_tabbed_modal.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_table_persist.mdx b/api_docs/kbn_shared_ux_table_persist.mdx index 6ed191454bb2d..aba05b27c4087 100644 --- a/api_docs/kbn_shared_ux_table_persist.mdx +++ b/api_docs/kbn_shared_ux_table_persist.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-table-persist title: "@kbn/shared-ux-table-persist" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-table-persist plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-table-persist'] --- import kbnSharedUxTablePersistObj from './kbn_shared_ux_table_persist.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_utility.mdx b/api_docs/kbn_shared_ux_utility.mdx index 4ba0b53099a96..dfb02f759a23c 100644 --- a/api_docs/kbn_shared_ux_utility.mdx +++ b/api_docs/kbn_shared_ux_utility.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-utility title: "@kbn/shared-ux-utility" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-utility plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-utility'] --- import kbnSharedUxUtilityObj from './kbn_shared_ux_utility.devdocs.json'; diff --git a/api_docs/kbn_slo_schema.mdx b/api_docs/kbn_slo_schema.mdx index 94a1e871fa40f..d08b0792f875b 100644 --- a/api_docs/kbn_slo_schema.mdx +++ b/api_docs/kbn_slo_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-slo-schema title: "@kbn/slo-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/slo-schema plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/slo-schema'] --- import kbnSloSchemaObj from './kbn_slo_schema.devdocs.json'; diff --git a/api_docs/kbn_some_dev_log.mdx b/api_docs/kbn_some_dev_log.mdx index 4fa9a2b85725f..f91390158d621 100644 --- a/api_docs/kbn_some_dev_log.mdx +++ b/api_docs/kbn_some_dev_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-some-dev-log title: "@kbn/some-dev-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/some-dev-log plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/some-dev-log'] --- import kbnSomeDevLogObj from './kbn_some_dev_log.devdocs.json'; diff --git a/api_docs/kbn_sort_predicates.mdx b/api_docs/kbn_sort_predicates.mdx index c316d15227732..e9898c25ebab8 100644 --- a/api_docs/kbn_sort_predicates.mdx +++ b/api_docs/kbn_sort_predicates.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sort-predicates title: "@kbn/sort-predicates" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sort-predicates plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sort-predicates'] --- import kbnSortPredicatesObj from './kbn_sort_predicates.devdocs.json'; diff --git a/api_docs/kbn_sse_utils.mdx b/api_docs/kbn_sse_utils.mdx index 6ce3e063aec6a..53f4b7f851e92 100644 --- a/api_docs/kbn_sse_utils.mdx +++ b/api_docs/kbn_sse_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils title: "@kbn/sse-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils'] --- import kbnSseUtilsObj from './kbn_sse_utils.devdocs.json'; diff --git a/api_docs/kbn_sse_utils_client.mdx b/api_docs/kbn_sse_utils_client.mdx index 5eef81dda8459..38d1f117b8fd2 100644 --- a/api_docs/kbn_sse_utils_client.mdx +++ b/api_docs/kbn_sse_utils_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils-client title: "@kbn/sse-utils-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils-client plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils-client'] --- import kbnSseUtilsClientObj from './kbn_sse_utils_client.devdocs.json'; diff --git a/api_docs/kbn_sse_utils_server.mdx b/api_docs/kbn_sse_utils_server.mdx index 869897d1e7d93..7acd16aebc42a 100644 --- a/api_docs/kbn_sse_utils_server.mdx +++ b/api_docs/kbn_sse_utils_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils-server title: "@kbn/sse-utils-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils-server plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils-server'] --- import kbnSseUtilsServerObj from './kbn_sse_utils_server.devdocs.json'; diff --git a/api_docs/kbn_std.mdx b/api_docs/kbn_std.mdx index 765b11c2f429f..6f31755b70068 100644 --- a/api_docs/kbn_std.mdx +++ b/api_docs/kbn_std.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-std title: "@kbn/std" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/std plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/std'] --- import kbnStdObj from './kbn_std.devdocs.json'; diff --git a/api_docs/kbn_stdio_dev_helpers.mdx b/api_docs/kbn_stdio_dev_helpers.mdx index e367d69e19b3c..44a2304d72e2d 100644 --- a/api_docs/kbn_stdio_dev_helpers.mdx +++ b/api_docs/kbn_stdio_dev_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-stdio-dev-helpers title: "@kbn/stdio-dev-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/stdio-dev-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/stdio-dev-helpers'] --- import kbnStdioDevHelpersObj from './kbn_stdio_dev_helpers.devdocs.json'; diff --git a/api_docs/kbn_storybook.mdx b/api_docs/kbn_storybook.mdx index 29053fda21d95..31da6bf518ff2 100644 --- a/api_docs/kbn_storybook.mdx +++ b/api_docs/kbn_storybook.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-storybook title: "@kbn/storybook" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/storybook plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/storybook'] --- import kbnStorybookObj from './kbn_storybook.devdocs.json'; diff --git a/api_docs/kbn_streams_schema.mdx b/api_docs/kbn_streams_schema.mdx index 71d235db5768b..d55dd086b82dd 100644 --- a/api_docs/kbn_streams_schema.mdx +++ b/api_docs/kbn_streams_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-streams-schema title: "@kbn/streams-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/streams-schema plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/streams-schema'] --- import kbnStreamsSchemaObj from './kbn_streams_schema.devdocs.json'; diff --git a/api_docs/kbn_synthetics_e2e.mdx b/api_docs/kbn_synthetics_e2e.mdx index 7f92f564c95da..70475b2ab2af7 100644 --- a/api_docs/kbn_synthetics_e2e.mdx +++ b/api_docs/kbn_synthetics_e2e.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-synthetics-e2e title: "@kbn/synthetics-e2e" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/synthetics-e2e plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/synthetics-e2e'] --- import kbnSyntheticsE2eObj from './kbn_synthetics_e2e.devdocs.json'; diff --git a/api_docs/kbn_synthetics_private_location.mdx b/api_docs/kbn_synthetics_private_location.mdx index fbe7e3ce7e3ac..5ffb2d99a8f7c 100644 --- a/api_docs/kbn_synthetics_private_location.mdx +++ b/api_docs/kbn_synthetics_private_location.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-synthetics-private-location title: "@kbn/synthetics-private-location" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/synthetics-private-location plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/synthetics-private-location'] --- import kbnSyntheticsPrivateLocationObj from './kbn_synthetics_private_location.devdocs.json'; diff --git a/api_docs/kbn_telemetry_tools.mdx b/api_docs/kbn_telemetry_tools.mdx index 2ad4a16531b06..d556c1ff42593 100644 --- a/api_docs/kbn_telemetry_tools.mdx +++ b/api_docs/kbn_telemetry_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-telemetry-tools title: "@kbn/telemetry-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/telemetry-tools plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/telemetry-tools'] --- import kbnTelemetryToolsObj from './kbn_telemetry_tools.devdocs.json'; diff --git a/api_docs/kbn_test.devdocs.json b/api_docs/kbn_test.devdocs.json index f011ccc602fd9..87e50d954f855 100644 --- a/api_docs/kbn_test.devdocs.json +++ b/api_docs/kbn_test.devdocs.json @@ -2167,6 +2167,23 @@ } ], "functions": [ + { + "parentPluginId": "@kbn/test", + "id": "def-common.checkFTRCodeOwnersCLI", + "type": "Function", + "tags": [], + "label": "checkFTRCodeOwnersCLI", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "packages/kbn-test/src/functional_test_runner/cli/code_owners.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/test", "id": "def-common.cleanupElasticsearch", @@ -3226,23 +3243,6 @@ "returnComment": [], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/test", - "id": "def-common.runCheckFtrCodeOwnersCli", - "type": "Function", - "tags": [], - "label": "runCheckFtrCodeOwnersCli", - "description": [], - "signature": [ - "() => Promise" - ], - "path": "packages/kbn-test/src/functional_test_runner/run_check_ftr_code_owners.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/test", "id": "def-common.runCheckFtrConfigsCli", @@ -3320,7 +3320,7 @@ "signature": [ "() => void" ], - "path": "packages/kbn-test/src/functional_test_runner/cli.ts", + "path": "packages/kbn-test/src/functional_test_runner/cli/ftr.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_test.mdx b/api_docs/kbn_test.mdx index 00b1c07415dee..677dade210f0b 100644 --- a/api_docs/kbn_test.mdx +++ b/api_docs/kbn_test.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test title: "@kbn/test" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test'] --- import kbnTestObj from './kbn_test.devdocs.json'; diff --git a/api_docs/kbn_test_eui_helpers.mdx b/api_docs/kbn_test_eui_helpers.mdx index c231984237955..145cf0f105ff3 100644 --- a/api_docs/kbn_test_eui_helpers.mdx +++ b/api_docs/kbn_test_eui_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-eui-helpers title: "@kbn/test-eui-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-eui-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-eui-helpers'] --- import kbnTestEuiHelpersObj from './kbn_test_eui_helpers.devdocs.json'; diff --git a/api_docs/kbn_test_jest_helpers.mdx b/api_docs/kbn_test_jest_helpers.mdx index bc4711b220a8b..9bfff38d08082 100644 --- a/api_docs/kbn_test_jest_helpers.mdx +++ b/api_docs/kbn_test_jest_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-jest-helpers title: "@kbn/test-jest-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-jest-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-jest-helpers'] --- import kbnTestJestHelpersObj from './kbn_test_jest_helpers.devdocs.json'; diff --git a/api_docs/kbn_test_subj_selector.mdx b/api_docs/kbn_test_subj_selector.mdx index 20ae141b0040a..571c03eacf67b 100644 --- a/api_docs/kbn_test_subj_selector.mdx +++ b/api_docs/kbn_test_subj_selector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-subj-selector title: "@kbn/test-subj-selector" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-subj-selector plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-subj-selector'] --- import kbnTestSubjSelectorObj from './kbn_test_subj_selector.devdocs.json'; diff --git a/api_docs/kbn_timerange.mdx b/api_docs/kbn_timerange.mdx index 3b3fa5619e515..9e8f9c205c78e 100644 --- a/api_docs/kbn_timerange.mdx +++ b/api_docs/kbn_timerange.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-timerange title: "@kbn/timerange" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/timerange plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/timerange'] --- import kbnTimerangeObj from './kbn_timerange.devdocs.json'; diff --git a/api_docs/kbn_tooling_log.mdx b/api_docs/kbn_tooling_log.mdx index 33380a04fc511..799d1fec9efbb 100644 --- a/api_docs/kbn_tooling_log.mdx +++ b/api_docs/kbn_tooling_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-tooling-log title: "@kbn/tooling-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/tooling-log plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/tooling-log'] --- import kbnToolingLogObj from './kbn_tooling_log.devdocs.json'; diff --git a/api_docs/kbn_transpose_utils.mdx b/api_docs/kbn_transpose_utils.mdx index 3c6c9df7ae649..7861af828ae47 100644 --- a/api_docs/kbn_transpose_utils.mdx +++ b/api_docs/kbn_transpose_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-transpose-utils title: "@kbn/transpose-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/transpose-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/transpose-utils'] --- import kbnTransposeUtilsObj from './kbn_transpose_utils.devdocs.json'; diff --git a/api_docs/kbn_triggers_actions_ui_types.mdx b/api_docs/kbn_triggers_actions_ui_types.mdx index 94628077b7961..e6572fc8ab73d 100644 --- a/api_docs/kbn_triggers_actions_ui_types.mdx +++ b/api_docs/kbn_triggers_actions_ui_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-triggers-actions-ui-types title: "@kbn/triggers-actions-ui-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/triggers-actions-ui-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/triggers-actions-ui-types'] --- import kbnTriggersActionsUiTypesObj from './kbn_triggers_actions_ui_types.devdocs.json'; diff --git a/api_docs/kbn_try_in_console.mdx b/api_docs/kbn_try_in_console.mdx index 2a19680d9ff7c..e8759f29ea67a 100644 --- a/api_docs/kbn_try_in_console.mdx +++ b/api_docs/kbn_try_in_console.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-try-in-console title: "@kbn/try-in-console" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/try-in-console plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/try-in-console'] --- import kbnTryInConsoleObj from './kbn_try_in_console.devdocs.json'; diff --git a/api_docs/kbn_ts_projects.mdx b/api_docs/kbn_ts_projects.mdx index 59a9a394af987..f78b3cb690510 100644 --- a/api_docs/kbn_ts_projects.mdx +++ b/api_docs/kbn_ts_projects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ts-projects title: "@kbn/ts-projects" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ts-projects plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ts-projects'] --- import kbnTsProjectsObj from './kbn_ts_projects.devdocs.json'; diff --git a/api_docs/kbn_typed_react_router_config.mdx b/api_docs/kbn_typed_react_router_config.mdx index 926f45baaaa9c..8f54de72a18f2 100644 --- a/api_docs/kbn_typed_react_router_config.mdx +++ b/api_docs/kbn_typed_react_router_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-typed-react-router-config title: "@kbn/typed-react-router-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/typed-react-router-config plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/typed-react-router-config'] --- import kbnTypedReactRouterConfigObj from './kbn_typed_react_router_config.devdocs.json'; diff --git a/api_docs/kbn_ui_actions_browser.mdx b/api_docs/kbn_ui_actions_browser.mdx index b94b6db339d88..194a0b7a2e3ea 100644 --- a/api_docs/kbn_ui_actions_browser.mdx +++ b/api_docs/kbn_ui_actions_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-actions-browser title: "@kbn/ui-actions-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-actions-browser plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-actions-browser'] --- import kbnUiActionsBrowserObj from './kbn_ui_actions_browser.devdocs.json'; diff --git a/api_docs/kbn_ui_shared_deps_src.mdx b/api_docs/kbn_ui_shared_deps_src.mdx index 876260f539ba2..257d856e84b2e 100644 --- a/api_docs/kbn_ui_shared_deps_src.mdx +++ b/api_docs/kbn_ui_shared_deps_src.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-shared-deps-src title: "@kbn/ui-shared-deps-src" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-shared-deps-src plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-shared-deps-src'] --- import kbnUiSharedDepsSrcObj from './kbn_ui_shared_deps_src.devdocs.json'; diff --git a/api_docs/kbn_ui_theme.mdx b/api_docs/kbn_ui_theme.mdx index 2809ec589e29d..10630485c6826 100644 --- a/api_docs/kbn_ui_theme.mdx +++ b/api_docs/kbn_ui_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-theme title: "@kbn/ui-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-theme plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-theme'] --- import kbnUiThemeObj from './kbn_ui_theme.devdocs.json'; diff --git a/api_docs/kbn_unified_data_table.mdx b/api_docs/kbn_unified_data_table.mdx index 767ee0fbe98ad..4238c90eaded2 100644 --- a/api_docs/kbn_unified_data_table.mdx +++ b/api_docs/kbn_unified_data_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-data-table title: "@kbn/unified-data-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-data-table plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-data-table'] --- import kbnUnifiedDataTableObj from './kbn_unified_data_table.devdocs.json'; diff --git a/api_docs/kbn_unified_doc_viewer.mdx b/api_docs/kbn_unified_doc_viewer.mdx index 14e8744732edc..537299f75f623 100644 --- a/api_docs/kbn_unified_doc_viewer.mdx +++ b/api_docs/kbn_unified_doc_viewer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-doc-viewer title: "@kbn/unified-doc-viewer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-doc-viewer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-doc-viewer'] --- import kbnUnifiedDocViewerObj from './kbn_unified_doc_viewer.devdocs.json'; diff --git a/api_docs/kbn_unified_field_list.mdx b/api_docs/kbn_unified_field_list.mdx index 033a90600dede..8db61c4676c10 100644 --- a/api_docs/kbn_unified_field_list.mdx +++ b/api_docs/kbn_unified_field_list.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-field-list title: "@kbn/unified-field-list" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-field-list plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-field-list'] --- import kbnUnifiedFieldListObj from './kbn_unified_field_list.devdocs.json'; diff --git a/api_docs/kbn_unsaved_changes_badge.mdx b/api_docs/kbn_unsaved_changes_badge.mdx index 127997252e670..89f383536c19a 100644 --- a/api_docs/kbn_unsaved_changes_badge.mdx +++ b/api_docs/kbn_unsaved_changes_badge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unsaved-changes-badge title: "@kbn/unsaved-changes-badge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unsaved-changes-badge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unsaved-changes-badge'] --- import kbnUnsavedChangesBadgeObj from './kbn_unsaved_changes_badge.devdocs.json'; diff --git a/api_docs/kbn_unsaved_changes_prompt.mdx b/api_docs/kbn_unsaved_changes_prompt.mdx index f437d2e81ef54..c8d1dd95235f5 100644 --- a/api_docs/kbn_unsaved_changes_prompt.mdx +++ b/api_docs/kbn_unsaved_changes_prompt.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unsaved-changes-prompt title: "@kbn/unsaved-changes-prompt" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unsaved-changes-prompt plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unsaved-changes-prompt'] --- import kbnUnsavedChangesPromptObj from './kbn_unsaved_changes_prompt.devdocs.json'; diff --git a/api_docs/kbn_use_tracked_promise.mdx b/api_docs/kbn_use_tracked_promise.mdx index 122cf1d307f8d..91a9801c32d57 100644 --- a/api_docs/kbn_use_tracked_promise.mdx +++ b/api_docs/kbn_use_tracked_promise.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-use-tracked-promise title: "@kbn/use-tracked-promise" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/use-tracked-promise plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/use-tracked-promise'] --- import kbnUseTrackedPromiseObj from './kbn_use_tracked_promise.devdocs.json'; diff --git a/api_docs/kbn_user_profile_components.mdx b/api_docs/kbn_user_profile_components.mdx index b1fa776cc3b04..1a8cd87d5afa4 100644 --- a/api_docs/kbn_user_profile_components.mdx +++ b/api_docs/kbn_user_profile_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-user-profile-components title: "@kbn/user-profile-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/user-profile-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/user-profile-components'] --- import kbnUserProfileComponentsObj from './kbn_user_profile_components.devdocs.json'; diff --git a/api_docs/kbn_utility_types.mdx b/api_docs/kbn_utility_types.mdx index 162cfd865396e..5700d0e10fc2a 100644 --- a/api_docs/kbn_utility_types.mdx +++ b/api_docs/kbn_utility_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types title: "@kbn/utility-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types'] --- import kbnUtilityTypesObj from './kbn_utility_types.devdocs.json'; diff --git a/api_docs/kbn_utility_types_jest.mdx b/api_docs/kbn_utility_types_jest.mdx index 832e9870c7ede..fb606843a9073 100644 --- a/api_docs/kbn_utility_types_jest.mdx +++ b/api_docs/kbn_utility_types_jest.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types-jest title: "@kbn/utility-types-jest" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types-jest plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types-jest'] --- import kbnUtilityTypesJestObj from './kbn_utility_types_jest.devdocs.json'; diff --git a/api_docs/kbn_utils.mdx b/api_docs/kbn_utils.mdx index 5a9c558126bb4..7153bdb1b6fda 100644 --- a/api_docs/kbn_utils.mdx +++ b/api_docs/kbn_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utils title: "@kbn/utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utils'] --- import kbnUtilsObj from './kbn_utils.devdocs.json'; diff --git a/api_docs/kbn_visualization_ui_components.mdx b/api_docs/kbn_visualization_ui_components.mdx index d0d576e34babd..8ebd33704fbf8 100644 --- a/api_docs/kbn_visualization_ui_components.mdx +++ b/api_docs/kbn_visualization_ui_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-visualization-ui-components title: "@kbn/visualization-ui-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/visualization-ui-components plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/visualization-ui-components'] --- import kbnVisualizationUiComponentsObj from './kbn_visualization_ui_components.devdocs.json'; diff --git a/api_docs/kbn_visualization_utils.mdx b/api_docs/kbn_visualization_utils.mdx index aeab59b2c4f90..5f2417c62f5ed 100644 --- a/api_docs/kbn_visualization_utils.mdx +++ b/api_docs/kbn_visualization_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-visualization-utils title: "@kbn/visualization-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/visualization-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/visualization-utils'] --- import kbnVisualizationUtilsObj from './kbn_visualization_utils.devdocs.json'; diff --git a/api_docs/kbn_xstate_utils.mdx b/api_docs/kbn_xstate_utils.mdx index 9f6a9a17573ec..ec040a08e31d4 100644 --- a/api_docs/kbn_xstate_utils.mdx +++ b/api_docs/kbn_xstate_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-xstate-utils title: "@kbn/xstate-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/xstate-utils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/xstate-utils'] --- import kbnXstateUtilsObj from './kbn_xstate_utils.devdocs.json'; diff --git a/api_docs/kbn_yarn_lock_validator.mdx b/api_docs/kbn_yarn_lock_validator.mdx index d56fecc704f9b..5ea11a09fcbcf 100644 --- a/api_docs/kbn_yarn_lock_validator.mdx +++ b/api_docs/kbn_yarn_lock_validator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-yarn-lock-validator title: "@kbn/yarn-lock-validator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/yarn-lock-validator plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/yarn-lock-validator'] --- import kbnYarnLockValidatorObj from './kbn_yarn_lock_validator.devdocs.json'; diff --git a/api_docs/kbn_zod.mdx b/api_docs/kbn_zod.mdx index 430b386bad215..c5d4092ee91ce 100644 --- a/api_docs/kbn_zod.mdx +++ b/api_docs/kbn_zod.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-zod title: "@kbn/zod" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/zod plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/zod'] --- import kbnZodObj from './kbn_zod.devdocs.json'; diff --git a/api_docs/kbn_zod_helpers.mdx b/api_docs/kbn_zod_helpers.mdx index 5b1f453e8e212..0502ca018976f 100644 --- a/api_docs/kbn_zod_helpers.mdx +++ b/api_docs/kbn_zod_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-zod-helpers title: "@kbn/zod-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/zod-helpers plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/zod-helpers'] --- import kbnZodHelpersObj from './kbn_zod_helpers.devdocs.json'; diff --git a/api_docs/kibana_overview.mdx b/api_docs/kibana_overview.mdx index f681584502535..5d9f35a36c935 100644 --- a/api_docs/kibana_overview.mdx +++ b/api_docs/kibana_overview.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaOverview title: "kibanaOverview" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaOverview plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaOverview'] --- import kibanaOverviewObj from './kibana_overview.devdocs.json'; diff --git a/api_docs/kibana_react.mdx b/api_docs/kibana_react.mdx index 38202761e0993..0b770c712b4f4 100644 --- a/api_docs/kibana_react.mdx +++ b/api_docs/kibana_react.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaReact title: "kibanaReact" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaReact plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaReact'] --- import kibanaReactObj from './kibana_react.devdocs.json'; diff --git a/api_docs/kibana_utils.mdx b/api_docs/kibana_utils.mdx index cd6c26274bcdf..c0c0f0822bb12 100644 --- a/api_docs/kibana_utils.mdx +++ b/api_docs/kibana_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaUtils title: "kibanaUtils" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaUtils plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaUtils'] --- import kibanaUtilsObj from './kibana_utils.devdocs.json'; diff --git a/api_docs/kubernetes_security.mdx b/api_docs/kubernetes_security.mdx index f3628f136a278..79d0daac54e35 100644 --- a/api_docs/kubernetes_security.mdx +++ b/api_docs/kubernetes_security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kubernetesSecurity title: "kubernetesSecurity" image: https://source.unsplash.com/400x175/?github description: API docs for the kubernetesSecurity plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kubernetesSecurity'] --- import kubernetesSecurityObj from './kubernetes_security.devdocs.json'; diff --git a/api_docs/lens.mdx b/api_docs/lens.mdx index b2458fffaadc1..701d42d9b6d8f 100644 --- a/api_docs/lens.mdx +++ b/api_docs/lens.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lens title: "lens" image: https://source.unsplash.com/400x175/?github description: API docs for the lens plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lens'] --- import lensObj from './lens.devdocs.json'; diff --git a/api_docs/license_api_guard.mdx b/api_docs/license_api_guard.mdx index f7a0bed6a53f8..6e651d5b42faa 100644 --- a/api_docs/license_api_guard.mdx +++ b/api_docs/license_api_guard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseApiGuard title: "licenseApiGuard" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseApiGuard plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseApiGuard'] --- import licenseApiGuardObj from './license_api_guard.devdocs.json'; diff --git a/api_docs/license_management.mdx b/api_docs/license_management.mdx index f7086a761d04f..2724e74ab3a4a 100644 --- a/api_docs/license_management.mdx +++ b/api_docs/license_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseManagement title: "licenseManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseManagement'] --- import licenseManagementObj from './license_management.devdocs.json'; diff --git a/api_docs/licensing.mdx b/api_docs/licensing.mdx index c264776f53563..12d2a1790488b 100644 --- a/api_docs/licensing.mdx +++ b/api_docs/licensing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licensing title: "licensing" image: https://source.unsplash.com/400x175/?github description: API docs for the licensing plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licensing'] --- import licensingObj from './licensing.devdocs.json'; diff --git a/api_docs/links.mdx b/api_docs/links.mdx index 10296e027a150..d42a128b005c5 100644 --- a/api_docs/links.mdx +++ b/api_docs/links.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/links title: "links" image: https://source.unsplash.com/400x175/?github description: API docs for the links plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'links'] --- import linksObj from './links.devdocs.json'; diff --git a/api_docs/lists.mdx b/api_docs/lists.mdx index e55005c0a85e5..38f8fe5f59fa9 100644 --- a/api_docs/lists.mdx +++ b/api_docs/lists.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lists title: "lists" image: https://source.unsplash.com/400x175/?github description: API docs for the lists plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lists'] --- import listsObj from './lists.devdocs.json'; diff --git a/api_docs/llm_tasks.mdx b/api_docs/llm_tasks.mdx index a7651abd6f3ca..ba14dd45d46d3 100644 --- a/api_docs/llm_tasks.mdx +++ b/api_docs/llm_tasks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/llmTasks title: "llmTasks" image: https://source.unsplash.com/400x175/?github description: API docs for the llmTasks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'llmTasks'] --- import llmTasksObj from './llm_tasks.devdocs.json'; diff --git a/api_docs/logs_data_access.mdx b/api_docs/logs_data_access.mdx index 4d25d0f42c27e..e2c5613dd3984 100644 --- a/api_docs/logs_data_access.mdx +++ b/api_docs/logs_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsDataAccess title: "logsDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the logsDataAccess plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsDataAccess'] --- import logsDataAccessObj from './logs_data_access.devdocs.json'; diff --git a/api_docs/logs_explorer.mdx b/api_docs/logs_explorer.mdx index 714c994ee992d..61b36322c1f29 100644 --- a/api_docs/logs_explorer.mdx +++ b/api_docs/logs_explorer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsExplorer title: "logsExplorer" image: https://source.unsplash.com/400x175/?github description: API docs for the logsExplorer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsExplorer'] --- import logsExplorerObj from './logs_explorer.devdocs.json'; diff --git a/api_docs/logs_shared.mdx b/api_docs/logs_shared.mdx index 75d7012d56bba..8518370d7d7c4 100644 --- a/api_docs/logs_shared.mdx +++ b/api_docs/logs_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsShared title: "logsShared" image: https://source.unsplash.com/400x175/?github description: API docs for the logsShared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsShared'] --- import logsSharedObj from './logs_shared.devdocs.json'; diff --git a/api_docs/management.mdx b/api_docs/management.mdx index bed55e13ee47a..615d7b36ed104 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/management title: "management" image: https://source.unsplash.com/400x175/?github description: API docs for the management plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'management'] --- import managementObj from './management.devdocs.json'; diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx index 0b10411877b9a..c6c3d2f6d9319 100644 --- a/api_docs/maps.mdx +++ b/api_docs/maps.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/maps title: "maps" image: https://source.unsplash.com/400x175/?github description: API docs for the maps plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'maps'] --- import mapsObj from './maps.devdocs.json'; diff --git a/api_docs/maps_ems.mdx b/api_docs/maps_ems.mdx index 7fa2005dc2c2d..60544b56cf5c8 100644 --- a/api_docs/maps_ems.mdx +++ b/api_docs/maps_ems.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/mapsEms title: "mapsEms" image: https://source.unsplash.com/400x175/?github description: API docs for the mapsEms plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mapsEms'] --- import mapsEmsObj from './maps_ems.devdocs.json'; diff --git a/api_docs/metrics_data_access.mdx b/api_docs/metrics_data_access.mdx index ce8aa9c7035ca..739a7ff946db8 100644 --- a/api_docs/metrics_data_access.mdx +++ b/api_docs/metrics_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/metricsDataAccess title: "metricsDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the metricsDataAccess plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'metricsDataAccess'] --- import metricsDataAccessObj from './metrics_data_access.devdocs.json'; diff --git a/api_docs/ml.mdx b/api_docs/ml.mdx index f28137ac108a9..f44b845ad047b 100644 --- a/api_docs/ml.mdx +++ b/api_docs/ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ml title: "ml" image: https://source.unsplash.com/400x175/?github description: API docs for the ml plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ml'] --- import mlObj from './ml.devdocs.json'; diff --git a/api_docs/mock_idp_plugin.mdx b/api_docs/mock_idp_plugin.mdx index 816b7e81e90a0..9e59b39dae9c5 100644 --- a/api_docs/mock_idp_plugin.mdx +++ b/api_docs/mock_idp_plugin.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/mockIdpPlugin title: "mockIdpPlugin" image: https://source.unsplash.com/400x175/?github description: API docs for the mockIdpPlugin plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mockIdpPlugin'] --- import mockIdpPluginObj from './mock_idp_plugin.devdocs.json'; diff --git a/api_docs/monitoring.mdx b/api_docs/monitoring.mdx index 3d1b927f44dac..2f40c50ba7ca8 100644 --- a/api_docs/monitoring.mdx +++ b/api_docs/monitoring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoring title: "monitoring" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoring plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoring'] --- import monitoringObj from './monitoring.devdocs.json'; diff --git a/api_docs/monitoring_collection.mdx b/api_docs/monitoring_collection.mdx index 10bfefaa078ff..df1384f20dde6 100644 --- a/api_docs/monitoring_collection.mdx +++ b/api_docs/monitoring_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoringCollection title: "monitoringCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoringCollection plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoringCollection'] --- import monitoringCollectionObj from './monitoring_collection.devdocs.json'; diff --git a/api_docs/navigation.mdx b/api_docs/navigation.mdx index 2a2646719191a..b35a9742cc8ff 100644 --- a/api_docs/navigation.mdx +++ b/api_docs/navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/navigation title: "navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the navigation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'navigation'] --- import navigationObj from './navigation.devdocs.json'; diff --git a/api_docs/newsfeed.mdx b/api_docs/newsfeed.mdx index 52237b05e2fb7..af6ca5cfe0527 100644 --- a/api_docs/newsfeed.mdx +++ b/api_docs/newsfeed.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/newsfeed title: "newsfeed" image: https://source.unsplash.com/400x175/?github description: API docs for the newsfeed plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'newsfeed'] --- import newsfeedObj from './newsfeed.devdocs.json'; diff --git a/api_docs/no_data_page.mdx b/api_docs/no_data_page.mdx index 699dc8a702d59..661be84f9fa85 100644 --- a/api_docs/no_data_page.mdx +++ b/api_docs/no_data_page.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/noDataPage title: "noDataPage" image: https://source.unsplash.com/400x175/?github description: API docs for the noDataPage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'noDataPage'] --- import noDataPageObj from './no_data_page.devdocs.json'; diff --git a/api_docs/notifications.mdx b/api_docs/notifications.mdx index 77ca01fb07e14..e1ba47f12a2d5 100644 --- a/api_docs/notifications.mdx +++ b/api_docs/notifications.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/notifications title: "notifications" image: https://source.unsplash.com/400x175/?github description: API docs for the notifications plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'notifications'] --- import notificationsObj from './notifications.devdocs.json'; diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index f4f989686eea2..9ed4f3364ca6a 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observability title: "observability" image: https://source.unsplash.com/400x175/?github description: API docs for the observability plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observability'] --- import observabilityObj from './observability.devdocs.json'; diff --git a/api_docs/observability_a_i_assistant.mdx b/api_docs/observability_a_i_assistant.mdx index cbecb2500a5d5..f89df4370e906 100644 --- a/api_docs/observability_a_i_assistant.mdx +++ b/api_docs/observability_a_i_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAIAssistant title: "observabilityAIAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAIAssistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAIAssistant'] --- import observabilityAIAssistantObj from './observability_a_i_assistant.devdocs.json'; diff --git a/api_docs/observability_a_i_assistant_app.mdx b/api_docs/observability_a_i_assistant_app.mdx index 300f51cf7698b..92bf5f8ef8cd6 100644 --- a/api_docs/observability_a_i_assistant_app.mdx +++ b/api_docs/observability_a_i_assistant_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAIAssistantApp title: "observabilityAIAssistantApp" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAIAssistantApp plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAIAssistantApp'] --- import observabilityAIAssistantAppObj from './observability_a_i_assistant_app.devdocs.json'; diff --git a/api_docs/observability_ai_assistant_management.mdx b/api_docs/observability_ai_assistant_management.mdx index 347ad934690e8..d694b9d3486ca 100644 --- a/api_docs/observability_ai_assistant_management.mdx +++ b/api_docs/observability_ai_assistant_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAiAssistantManagement title: "observabilityAiAssistantManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAiAssistantManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAiAssistantManagement'] --- import observabilityAiAssistantManagementObj from './observability_ai_assistant_management.devdocs.json'; diff --git a/api_docs/observability_logs_explorer.mdx b/api_docs/observability_logs_explorer.mdx index f9bed9faec6b6..5b505b0c1c8e1 100644 --- a/api_docs/observability_logs_explorer.mdx +++ b/api_docs/observability_logs_explorer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityLogsExplorer title: "observabilityLogsExplorer" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityLogsExplorer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityLogsExplorer'] --- import observabilityLogsExplorerObj from './observability_logs_explorer.devdocs.json'; diff --git a/api_docs/observability_onboarding.mdx b/api_docs/observability_onboarding.mdx index 4fe3a7f3ffb47..ab7aef0e0b8b6 100644 --- a/api_docs/observability_onboarding.mdx +++ b/api_docs/observability_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityOnboarding title: "observabilityOnboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityOnboarding plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityOnboarding'] --- import observabilityOnboardingObj from './observability_onboarding.devdocs.json'; diff --git a/api_docs/observability_shared.mdx b/api_docs/observability_shared.mdx index 466094e5fb515..b4810403dbe69 100644 --- a/api_docs/observability_shared.mdx +++ b/api_docs/observability_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityShared title: "observabilityShared" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityShared plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityShared'] --- import observabilitySharedObj from './observability_shared.devdocs.json'; diff --git a/api_docs/osquery.mdx b/api_docs/osquery.mdx index 8eb07558af0b7..f462ef255cdc5 100644 --- a/api_docs/osquery.mdx +++ b/api_docs/osquery.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/osquery title: "osquery" image: https://source.unsplash.com/400x175/?github description: API docs for the osquery plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'osquery'] --- import osqueryObj from './osquery.devdocs.json'; diff --git a/api_docs/painless_lab.mdx b/api_docs/painless_lab.mdx index bd0b8585aae4b..3bfef6f6087ea 100644 --- a/api_docs/painless_lab.mdx +++ b/api_docs/painless_lab.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/painlessLab title: "painlessLab" image: https://source.unsplash.com/400x175/?github description: API docs for the painlessLab plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'painlessLab'] --- import painlessLabObj from './painless_lab.devdocs.json'; diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx index bef0dbefff4e7..4a5cd78ed55e8 100644 --- a/api_docs/plugin_directory.mdx +++ b/api_docs/plugin_directory.mdx @@ -7,7 +7,7 @@ id: kibDevDocsPluginDirectory slug: /kibana-dev-docs/api-meta/plugin-api-directory title: Directory description: Directory of public APIs available through plugins or packages. -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -21,7 +21,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | API Count | Any Count | Missing comments | Missing exports | |--------------|----------|-----------------|--------| -| 54983 | 253 | 41311 | 2061 | +| 54878 | 253 | 41238 | 2060 | ## Plugin Directory @@ -53,7 +53,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | crossClusterReplication | [@elastic/kibana-management](https://github.com/orgs/elastic/teams/kibana-management) | - | 0 | 0 | 0 | 0 | | customBranding | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | Enables customization of Kibana | 0 | 0 | 0 | 0 | | | [@elastic/fleet](https://github.com/orgs/elastic/teams/fleet) | Add custom data integrations so they can be displayed in the Fleet integrations app | 268 | 0 | 249 | 1 | -| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 117 | 0 | 113 | 13 | +| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 113 | 0 | 109 | 12 | | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 54 | 0 | 51 | 0 | | | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 3208 | 31 | 2593 | 25 | | | [@elastic/obs-ux-logs-team](https://github.com/orgs/elastic/teams/obs-ux-logs-team) | - | 6 | 0 | 6 | 0 | @@ -70,7 +70,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-data-discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | A stateful layer to register shared features and provide an access point to discover without a direct dependency | 26 | 0 | 23 | 2 | | | [@elastic/security-threat-hunting-explore](https://github.com/orgs/elastic/teams/security-threat-hunting-explore) | APIs used to assess the quality of data in Elasticsearch indexes | 2 | 0 | 0 | 0 | | | [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/security-generative-ai) | Server APIs for the Elastic AI Assistant | 55 | 0 | 40 | 2 | -| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds embeddables service to Kibana | 280 | 0 | 222 | 2 | +| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds embeddables service to Kibana | 179 | 0 | 152 | 2 | | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Extends embeddable plugin with more functionality | 15 | 0 | 15 | 2 | | | [@elastic/kibana-security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides encryption and decryption utilities for saved objects containing sensitive information. | 54 | 0 | 47 | 1 | | | [@elastic/search-kibana](https://github.com/orgs/elastic/teams/search-kibana) | Adds dashboards for discovering and managing Enterprise Search products. | 5 | 0 | 5 | 0 | @@ -241,7 +241,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Registers the vega visualization. Is the elastic version of vega and vega-lite libraries. | 2 | 0 | 2 | 0 | | | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Contains the vislib visualizations. These are the classical area/line/bar, gauge/goal and heatmap charts. We want to replace them with elastic-charts. | 1 | 0 | 1 | 0 | | | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Contains the new xy-axis chart using the elastic-charts library, which will eventually replace the vislib xy-axis charts including bar, area, and line. | 52 | 0 | 50 | 5 | -| | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 869 | 12 | 838 | 21 | +| | [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/kibana-visualizations) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 869 | 12 | 838 | 22 | | watcher | [@elastic/kibana-management](https://github.com/orgs/elastic/teams/kibana-management) | - | 0 | 0 | 0 | 0 | ## Package Directory @@ -521,7 +521,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 38 | 0 | 29 | 3 | | | [@elastic/security-threat-hunting-explore](https://github.com/orgs/elastic/teams/security-threat-hunting-explore) | - | 16 | 0 | 8 | 0 | | | [@elastic/obs-ux-logs-team](https://github.com/orgs/elastic/teams/obs-ux-logs-team) | - | 42 | 0 | 41 | 0 | -| | [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/security-generative-ai) | - | 174 | 0 | 145 | 10 | +| | [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/security-generative-ai) | - | 172 | 0 | 144 | 9 | | | [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/security-generative-ai) | - | 447 | 0 | 410 | 0 | | | [@elastic/obs-entities](https://github.com/orgs/elastic/teams/obs-entities) | - | 51 | 0 | 51 | 0 | | | [@elastic/kibana-operations](https://github.com/orgs/elastic/teams/kibana-operations) | - | 55 | 0 | 40 | 7 | @@ -648,7 +648,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-operations](https://github.com/orgs/elastic/teams/kibana-operations) | - | 1 | 0 | 1 | 0 | | | [@elastic/kibana-operations](https://github.com/orgs/elastic/teams/kibana-operations) | - | 1 | 0 | 1 | 0 | | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 87 | 0 | 75 | 1 | -| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 233 | 0 | 197 | 6 | +| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 235 | 0 | 199 | 6 | | | [@elastic/appex-ai-infra](https://github.com/orgs/elastic/teams/appex-ai-infra) | - | 1 | 0 | 1 | 0 | | | [@elastic/appex-ai-infra](https://github.com/orgs/elastic/teams/appex-ai-infra) | - | 31 | 0 | 31 | 0 | | | [@elastic/obs-ux-infra_services-team](https://github.com/orgs/elastic/teams/obs-ux-infra_services-team) | - | 168 | 0 | 55 | 0 | diff --git a/api_docs/presentation_panel.mdx b/api_docs/presentation_panel.mdx index 44f8ae4322d10..c292df15d23a2 100644 --- a/api_docs/presentation_panel.mdx +++ b/api_docs/presentation_panel.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/presentationPanel title: "presentationPanel" image: https://source.unsplash.com/400x175/?github description: API docs for the presentationPanel plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationPanel'] --- import presentationPanelObj from './presentation_panel.devdocs.json'; diff --git a/api_docs/presentation_util.mdx b/api_docs/presentation_util.mdx index 82965568e29a5..964c6dbc9eace 100644 --- a/api_docs/presentation_util.mdx +++ b/api_docs/presentation_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/presentationUtil title: "presentationUtil" image: https://source.unsplash.com/400x175/?github description: API docs for the presentationUtil plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationUtil'] --- import presentationUtilObj from './presentation_util.devdocs.json'; diff --git a/api_docs/product_doc_base.mdx b/api_docs/product_doc_base.mdx index dc74caa34b95d..e182efa19b3e8 100644 --- a/api_docs/product_doc_base.mdx +++ b/api_docs/product_doc_base.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/productDocBase title: "productDocBase" image: https://source.unsplash.com/400x175/?github description: API docs for the productDocBase plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'productDocBase'] --- import productDocBaseObj from './product_doc_base.devdocs.json'; diff --git a/api_docs/profiling.mdx b/api_docs/profiling.mdx index cec5c506ef871..2c97e4b106ab2 100644 --- a/api_docs/profiling.mdx +++ b/api_docs/profiling.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/profiling title: "profiling" image: https://source.unsplash.com/400x175/?github description: API docs for the profiling plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'profiling'] --- import profilingObj from './profiling.devdocs.json'; diff --git a/api_docs/profiling_data_access.mdx b/api_docs/profiling_data_access.mdx index c69b43eb2d552..36390c4f04d94 100644 --- a/api_docs/profiling_data_access.mdx +++ b/api_docs/profiling_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/profilingDataAccess title: "profilingDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the profilingDataAccess plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'profilingDataAccess'] --- import profilingDataAccessObj from './profiling_data_access.devdocs.json'; diff --git a/api_docs/remote_clusters.mdx b/api_docs/remote_clusters.mdx index 59bd4f46afc21..0a390a648019c 100644 --- a/api_docs/remote_clusters.mdx +++ b/api_docs/remote_clusters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/remoteClusters title: "remoteClusters" image: https://source.unsplash.com/400x175/?github description: API docs for the remoteClusters plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'remoteClusters'] --- import remoteClustersObj from './remote_clusters.devdocs.json'; diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx index 0f83b61bdbfd1..1de3a2d8e5aed 100644 --- a/api_docs/reporting.mdx +++ b/api_docs/reporting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/reporting title: "reporting" image: https://source.unsplash.com/400x175/?github description: API docs for the reporting plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'reporting'] --- import reportingObj from './reporting.devdocs.json'; diff --git a/api_docs/rollup.mdx b/api_docs/rollup.mdx index 6d7bde47d4c4a..a7e48464ee70c 100644 --- a/api_docs/rollup.mdx +++ b/api_docs/rollup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/rollup title: "rollup" image: https://source.unsplash.com/400x175/?github description: API docs for the rollup plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'rollup'] --- import rollupObj from './rollup.devdocs.json'; diff --git a/api_docs/rule_registry.mdx b/api_docs/rule_registry.mdx index 6223cc9cdd6b1..c37a518381559 100644 --- a/api_docs/rule_registry.mdx +++ b/api_docs/rule_registry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ruleRegistry title: "ruleRegistry" image: https://source.unsplash.com/400x175/?github description: API docs for the ruleRegistry plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ruleRegistry'] --- import ruleRegistryObj from './rule_registry.devdocs.json'; diff --git a/api_docs/runtime_fields.mdx b/api_docs/runtime_fields.mdx index 5559b95ec86c8..00542ba3d92f1 100644 --- a/api_docs/runtime_fields.mdx +++ b/api_docs/runtime_fields.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/runtimeFields title: "runtimeFields" image: https://source.unsplash.com/400x175/?github description: API docs for the runtimeFields plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'runtimeFields'] --- import runtimeFieldsObj from './runtime_fields.devdocs.json'; diff --git a/api_docs/saved_objects.mdx b/api_docs/saved_objects.mdx index 4baa7449ecbcb..eb6f12d6f495f 100644 --- a/api_docs/saved_objects.mdx +++ b/api_docs/saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjects title: "savedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjects plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjects'] --- import savedObjectsObj from './saved_objects.devdocs.json'; diff --git a/api_docs/saved_objects_finder.mdx b/api_docs/saved_objects_finder.mdx index 37af7def6bcd1..437a21bb27da8 100644 --- a/api_docs/saved_objects_finder.mdx +++ b/api_docs/saved_objects_finder.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsFinder title: "savedObjectsFinder" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsFinder plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsFinder'] --- import savedObjectsFinderObj from './saved_objects_finder.devdocs.json'; diff --git a/api_docs/saved_objects_management.mdx b/api_docs/saved_objects_management.mdx index 28dbd4f7b7a68..1a42254a7ae68 100644 --- a/api_docs/saved_objects_management.mdx +++ b/api_docs/saved_objects_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsManagement title: "savedObjectsManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsManagement plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsManagement'] --- import savedObjectsManagementObj from './saved_objects_management.devdocs.json'; diff --git a/api_docs/saved_objects_tagging.mdx b/api_docs/saved_objects_tagging.mdx index d1ae5fcc55ede..c301a3c1a98c8 100644 --- a/api_docs/saved_objects_tagging.mdx +++ b/api_docs/saved_objects_tagging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTagging title: "savedObjectsTagging" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTagging plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTagging'] --- import savedObjectsTaggingObj from './saved_objects_tagging.devdocs.json'; diff --git a/api_docs/saved_objects_tagging_oss.mdx b/api_docs/saved_objects_tagging_oss.mdx index 2b54e2bec7046..5b53b43b37703 100644 --- a/api_docs/saved_objects_tagging_oss.mdx +++ b/api_docs/saved_objects_tagging_oss.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTaggingOss title: "savedObjectsTaggingOss" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTaggingOss plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTaggingOss'] --- import savedObjectsTaggingOssObj from './saved_objects_tagging_oss.devdocs.json'; diff --git a/api_docs/saved_search.mdx b/api_docs/saved_search.mdx index 49a4e390c0aab..70a6ba6fcb119 100644 --- a/api_docs/saved_search.mdx +++ b/api_docs/saved_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedSearch title: "savedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the savedSearch plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedSearch'] --- import savedSearchObj from './saved_search.devdocs.json'; diff --git a/api_docs/screenshot_mode.mdx b/api_docs/screenshot_mode.mdx index 48e8b65fda97c..2c328d52a9e64 100644 --- a/api_docs/screenshot_mode.mdx +++ b/api_docs/screenshot_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotMode title: "screenshotMode" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotMode plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotMode'] --- import screenshotModeObj from './screenshot_mode.devdocs.json'; diff --git a/api_docs/screenshotting.mdx b/api_docs/screenshotting.mdx index b674f38f57bea..410e711906d57 100644 --- a/api_docs/screenshotting.mdx +++ b/api_docs/screenshotting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotting title: "screenshotting" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotting plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotting'] --- import screenshottingObj from './screenshotting.devdocs.json'; diff --git a/api_docs/search_assistant.mdx b/api_docs/search_assistant.mdx index 0c23e8ad80add..b31c1050493a5 100644 --- a/api_docs/search_assistant.mdx +++ b/api_docs/search_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchAssistant title: "searchAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the searchAssistant plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchAssistant'] --- import searchAssistantObj from './search_assistant.devdocs.json'; diff --git a/api_docs/search_connectors.mdx b/api_docs/search_connectors.mdx index 720b99cb3a996..46a4a11281d99 100644 --- a/api_docs/search_connectors.mdx +++ b/api_docs/search_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchConnectors title: "searchConnectors" image: https://source.unsplash.com/400x175/?github description: API docs for the searchConnectors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchConnectors'] --- import searchConnectorsObj from './search_connectors.devdocs.json'; diff --git a/api_docs/search_homepage.mdx b/api_docs/search_homepage.mdx index 517380b134c8e..9f97502757847 100644 --- a/api_docs/search_homepage.mdx +++ b/api_docs/search_homepage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchHomepage title: "searchHomepage" image: https://source.unsplash.com/400x175/?github description: API docs for the searchHomepage plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchHomepage'] --- import searchHomepageObj from './search_homepage.devdocs.json'; diff --git a/api_docs/search_indices.mdx b/api_docs/search_indices.mdx index 8386a6b9f64f3..7e73b9f6faf29 100644 --- a/api_docs/search_indices.mdx +++ b/api_docs/search_indices.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchIndices title: "searchIndices" image: https://source.unsplash.com/400x175/?github description: API docs for the searchIndices plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchIndices'] --- import searchIndicesObj from './search_indices.devdocs.json'; diff --git a/api_docs/search_inference_endpoints.mdx b/api_docs/search_inference_endpoints.mdx index c125e291126d1..0709f65b6f65c 100644 --- a/api_docs/search_inference_endpoints.mdx +++ b/api_docs/search_inference_endpoints.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchInferenceEndpoints title: "searchInferenceEndpoints" image: https://source.unsplash.com/400x175/?github description: API docs for the searchInferenceEndpoints plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchInferenceEndpoints'] --- import searchInferenceEndpointsObj from './search_inference_endpoints.devdocs.json'; diff --git a/api_docs/search_navigation.mdx b/api_docs/search_navigation.mdx index aed09b5cae058..0149c8e4643c5 100644 --- a/api_docs/search_navigation.mdx +++ b/api_docs/search_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchNavigation title: "searchNavigation" image: https://source.unsplash.com/400x175/?github description: API docs for the searchNavigation plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchNavigation'] --- import searchNavigationObj from './search_navigation.devdocs.json'; diff --git a/api_docs/search_notebooks.mdx b/api_docs/search_notebooks.mdx index a1103820230e8..a082e5edfe1f8 100644 --- a/api_docs/search_notebooks.mdx +++ b/api_docs/search_notebooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchNotebooks title: "searchNotebooks" image: https://source.unsplash.com/400x175/?github description: API docs for the searchNotebooks plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchNotebooks'] --- import searchNotebooksObj from './search_notebooks.devdocs.json'; diff --git a/api_docs/search_playground.mdx b/api_docs/search_playground.mdx index e7df79972e9b4..42fe881837c49 100644 --- a/api_docs/search_playground.mdx +++ b/api_docs/search_playground.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchPlayground title: "searchPlayground" image: https://source.unsplash.com/400x175/?github description: API docs for the searchPlayground plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchPlayground'] --- import searchPlaygroundObj from './search_playground.devdocs.json'; diff --git a/api_docs/security.mdx b/api_docs/security.mdx index a95153e3da912..a4a3b940b08b4 100644 --- a/api_docs/security.mdx +++ b/api_docs/security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/security title: "security" image: https://source.unsplash.com/400x175/?github description: API docs for the security plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'security'] --- import securityObj from './security.devdocs.json'; diff --git a/api_docs/security_solution.devdocs.json b/api_docs/security_solution.devdocs.json index 018e688768ea4..218075081744b 100644 --- a/api_docs/security_solution.devdocs.json +++ b/api_docs/security_solution.devdocs.json @@ -522,7 +522,7 @@ "\nExperimental flag needed to enable the link" ], "signature": [ - "\"assistantModelEvaluation\" | \"attackDiscoveryAlertFiltering\" | \"defendInsights\" | \"alertSuppressionForSequenceEqlRuleEnabled\" | \"excludePoliciesInFilterEnabled\" | \"kubernetesEnabled\" | \"donutChartEmbeddablesEnabled\" | \"previewTelemetryUrlEnabled\" | \"extendedRuleExecutionLoggingEnabled\" | \"socTrendsEnabled\" | \"responseActionUploadEnabled\" | \"automatedProcessActionsEnabled\" | \"responseActionsSentinelOneV1Enabled\" | \"responseActionsSentinelOneV2Enabled\" | \"responseActionsSentinelOneGetFileEnabled\" | \"responseActionsSentinelOneKillProcessEnabled\" | \"responseActionsSentinelOneProcessesEnabled\" | \"responseActionsCrowdstrikeManualHostIsolationEnabled\" | \"endpointManagementSpaceAwarenessEnabled\" | \"securitySolutionNotesDisabled\" | \"newUserDetailsFlyoutManagedUser\" | \"riskScoringPersistence\" | \"riskScoringRoutesEnabled\" | \"esqlRulesDisabled\" | \"protectionUpdatesEnabled\" | \"disableTimelineSaveTour\" | \"riskEnginePrivilegesRouteEnabled\" | \"sentinelOneDataInAnalyzerEnabled\" | \"sentinelOneManualHostActionsEnabled\" | \"crowdstrikeDataInAnalyzerEnabled\" | \"responseActionsTelemetryEnabled\" | \"jamfDataInAnalyzerEnabled\" | \"timelineEsqlTabDisabled\" | \"analyzerDatePickersAndSourcererDisabled\" | \"graphVisualizationInFlyoutEnabled\" | \"prebuiltRulesCustomizationEnabled\" | \"malwareOnWriteScanOptionAvailable\" | \"unifiedManifestEnabled\" | \"valueListItemsModalEnabled\" | \"filterProcessDescendantsForEventFiltersEnabled\" | \"dataIngestionHubEnabled\" | \"entityStoreDisabled\" | \"serviceEntityStoreEnabled\" | \"siemMigrationsEnabled\" | \"newExpandableFlyoutNavigationEnabled\" | \"crowdstrikeRunScriptEnabled\" | \"assetInventoryStoreEnabled\" | undefined" + "\"assistantModelEvaluation\" | \"attackDiscoveryAlertFiltering\" | \"defendInsights\" | \"alertSuppressionForSequenceEqlRuleEnabled\" | \"excludePoliciesInFilterEnabled\" | \"kubernetesEnabled\" | \"donutChartEmbeddablesEnabled\" | \"previewTelemetryUrlEnabled\" | \"extendedRuleExecutionLoggingEnabled\" | \"socTrendsEnabled\" | \"responseActionUploadEnabled\" | \"automatedProcessActionsEnabled\" | \"responseActionsSentinelOneV1Enabled\" | \"responseActionsSentinelOneV2Enabled\" | \"responseActionsSentinelOneGetFileEnabled\" | \"responseActionsSentinelOneKillProcessEnabled\" | \"responseActionsSentinelOneProcessesEnabled\" | \"responseActionsCrowdstrikeManualHostIsolationEnabled\" | \"endpointManagementSpaceAwarenessEnabled\" | \"securitySolutionNotesDisabled\" | \"newUserDetailsFlyoutManagedUser\" | \"riskScoringPersistence\" | \"riskScoringRoutesEnabled\" | \"esqlRulesDisabled\" | \"protectionUpdatesEnabled\" | \"disableTimelineSaveTour\" | \"riskEnginePrivilegesRouteEnabled\" | \"sentinelOneDataInAnalyzerEnabled\" | \"sentinelOneManualHostActionsEnabled\" | \"crowdstrikeDataInAnalyzerEnabled\" | \"responseActionsTelemetryEnabled\" | \"jamfDataInAnalyzerEnabled\" | \"timelineEsqlTabDisabled\" | \"analyzerDatePickersAndSourcererDisabled\" | \"graphVisualizationInFlyoutEnabled\" | \"prebuiltRulesCustomizationEnabled\" | \"malwareOnWriteScanOptionAvailable\" | \"unifiedManifestEnabled\" | \"valueListItemsModalEnabled\" | \"filterProcessDescendantsForEventFiltersEnabled\" | \"dataIngestionHubEnabled\" | \"entityStoreDisabled\" | \"serviceEntityStoreEnabled\" | \"siemMigrationsEnabled\" | \"newExpandableFlyoutNavigationEnabled\" | \"crowdstrikeRunScriptEnabled\" | \"assetInventoryUXEnabled\" | undefined" ], "path": "x-pack/solutions/security/plugins/security_solution/public/common/links/types.ts", "deprecated": false, @@ -602,7 +602,7 @@ "\nExperimental flag needed to disable the link. Opposite of experimentalKey" ], "signature": [ - "\"assistantModelEvaluation\" | \"attackDiscoveryAlertFiltering\" | \"defendInsights\" | \"alertSuppressionForSequenceEqlRuleEnabled\" | \"excludePoliciesInFilterEnabled\" | \"kubernetesEnabled\" | \"donutChartEmbeddablesEnabled\" | \"previewTelemetryUrlEnabled\" | \"extendedRuleExecutionLoggingEnabled\" | \"socTrendsEnabled\" | \"responseActionUploadEnabled\" | \"automatedProcessActionsEnabled\" | \"responseActionsSentinelOneV1Enabled\" | \"responseActionsSentinelOneV2Enabled\" | \"responseActionsSentinelOneGetFileEnabled\" | \"responseActionsSentinelOneKillProcessEnabled\" | \"responseActionsSentinelOneProcessesEnabled\" | \"responseActionsCrowdstrikeManualHostIsolationEnabled\" | \"endpointManagementSpaceAwarenessEnabled\" | \"securitySolutionNotesDisabled\" | \"newUserDetailsFlyoutManagedUser\" | \"riskScoringPersistence\" | \"riskScoringRoutesEnabled\" | \"esqlRulesDisabled\" | \"protectionUpdatesEnabled\" | \"disableTimelineSaveTour\" | \"riskEnginePrivilegesRouteEnabled\" | \"sentinelOneDataInAnalyzerEnabled\" | \"sentinelOneManualHostActionsEnabled\" | \"crowdstrikeDataInAnalyzerEnabled\" | \"responseActionsTelemetryEnabled\" | \"jamfDataInAnalyzerEnabled\" | \"timelineEsqlTabDisabled\" | \"analyzerDatePickersAndSourcererDisabled\" | \"graphVisualizationInFlyoutEnabled\" | \"prebuiltRulesCustomizationEnabled\" | \"malwareOnWriteScanOptionAvailable\" | \"unifiedManifestEnabled\" | \"valueListItemsModalEnabled\" | \"filterProcessDescendantsForEventFiltersEnabled\" | \"dataIngestionHubEnabled\" | \"entityStoreDisabled\" | \"serviceEntityStoreEnabled\" | \"siemMigrationsEnabled\" | \"newExpandableFlyoutNavigationEnabled\" | \"crowdstrikeRunScriptEnabled\" | \"assetInventoryStoreEnabled\" | undefined" + "\"assistantModelEvaluation\" | \"attackDiscoveryAlertFiltering\" | \"defendInsights\" | \"alertSuppressionForSequenceEqlRuleEnabled\" | \"excludePoliciesInFilterEnabled\" | \"kubernetesEnabled\" | \"donutChartEmbeddablesEnabled\" | \"previewTelemetryUrlEnabled\" | \"extendedRuleExecutionLoggingEnabled\" | \"socTrendsEnabled\" | \"responseActionUploadEnabled\" | \"automatedProcessActionsEnabled\" | \"responseActionsSentinelOneV1Enabled\" | \"responseActionsSentinelOneV2Enabled\" | \"responseActionsSentinelOneGetFileEnabled\" | \"responseActionsSentinelOneKillProcessEnabled\" | \"responseActionsSentinelOneProcessesEnabled\" | \"responseActionsCrowdstrikeManualHostIsolationEnabled\" | \"endpointManagementSpaceAwarenessEnabled\" | \"securitySolutionNotesDisabled\" | \"newUserDetailsFlyoutManagedUser\" | \"riskScoringPersistence\" | \"riskScoringRoutesEnabled\" | \"esqlRulesDisabled\" | \"protectionUpdatesEnabled\" | \"disableTimelineSaveTour\" | \"riskEnginePrivilegesRouteEnabled\" | \"sentinelOneDataInAnalyzerEnabled\" | \"sentinelOneManualHostActionsEnabled\" | \"crowdstrikeDataInAnalyzerEnabled\" | \"responseActionsTelemetryEnabled\" | \"jamfDataInAnalyzerEnabled\" | \"timelineEsqlTabDisabled\" | \"analyzerDatePickersAndSourcererDisabled\" | \"graphVisualizationInFlyoutEnabled\" | \"prebuiltRulesCustomizationEnabled\" | \"malwareOnWriteScanOptionAvailable\" | \"unifiedManifestEnabled\" | \"valueListItemsModalEnabled\" | \"filterProcessDescendantsForEventFiltersEnabled\" | \"dataIngestionHubEnabled\" | \"entityStoreDisabled\" | \"serviceEntityStoreEnabled\" | \"siemMigrationsEnabled\" | \"newExpandableFlyoutNavigationEnabled\" | \"crowdstrikeRunScriptEnabled\" | \"assetInventoryUXEnabled\" | undefined" ], "path": "x-pack/solutions/security/plugins/security_solution/public/common/links/types.ts", "deprecated": false, @@ -1876,7 +1876,7 @@ "label": "experimentalFeatures", "description": [], "signature": [ - "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryStoreEnabled: boolean; }" + "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryUXEnabled: boolean; }" ], "path": "x-pack/solutions/security/plugins/security_solution/public/types.ts", "deprecated": false, @@ -3124,7 +3124,7 @@ "\nThe security solution generic experimental features" ], "signature": [ - "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryStoreEnabled: boolean; }" + "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryUXEnabled: boolean; }" ], "path": "x-pack/solutions/security/plugins/security_solution/server/plugin_contract.ts", "deprecated": false, @@ -3297,7 +3297,7 @@ "label": "ExperimentalFeatures", "description": [], "signature": [ - "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryStoreEnabled: boolean; }" + "{ readonly alertSuppressionForSequenceEqlRuleEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly kubernetesEnabled: boolean; readonly donutChartEmbeddablesEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; readonly extendedRuleExecutionLoggingEnabled: boolean; readonly socTrendsEnabled: boolean; readonly responseActionUploadEnabled: boolean; readonly automatedProcessActionsEnabled: boolean; readonly responseActionsSentinelOneV1Enabled: boolean; readonly responseActionsSentinelOneV2Enabled: boolean; readonly responseActionsSentinelOneGetFileEnabled: boolean; readonly responseActionsSentinelOneKillProcessEnabled: boolean; readonly responseActionsSentinelOneProcessesEnabled: boolean; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: boolean; readonly endpointManagementSpaceAwarenessEnabled: boolean; readonly securitySolutionNotesDisabled: boolean; readonly assistantModelEvaluation: boolean; readonly attackDiscoveryAlertFiltering: boolean; readonly newUserDetailsFlyoutManagedUser: boolean; readonly riskScoringPersistence: boolean; readonly riskScoringRoutesEnabled: boolean; readonly esqlRulesDisabled: boolean; readonly protectionUpdatesEnabled: boolean; readonly disableTimelineSaveTour: boolean; readonly riskEnginePrivilegesRouteEnabled: boolean; readonly sentinelOneDataInAnalyzerEnabled: boolean; readonly sentinelOneManualHostActionsEnabled: boolean; readonly crowdstrikeDataInAnalyzerEnabled: boolean; readonly responseActionsTelemetryEnabled: boolean; readonly jamfDataInAnalyzerEnabled: boolean; readonly timelineEsqlTabDisabled: boolean; readonly analyzerDatePickersAndSourcererDisabled: boolean; readonly graphVisualizationInFlyoutEnabled: boolean; readonly prebuiltRulesCustomizationEnabled: boolean; readonly malwareOnWriteScanOptionAvailable: boolean; readonly unifiedManifestEnabled: boolean; readonly valueListItemsModalEnabled: boolean; readonly filterProcessDescendantsForEventFiltersEnabled: boolean; readonly dataIngestionHubEnabled: boolean; readonly entityStoreDisabled: boolean; readonly serviceEntityStoreEnabled: boolean; readonly siemMigrationsEnabled: boolean; readonly defendInsights: boolean; readonly newExpandableFlyoutNavigationEnabled: boolean; readonly crowdstrikeRunScriptEnabled: boolean; readonly assetInventoryUXEnabled: boolean; }" ], "path": "x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts", "deprecated": false, @@ -3363,7 +3363,7 @@ "\nA list of allowed values that can be used in `xpack.securitySolution.enableExperimental`.\nThis object is then used to validate and parse the value entered." ], "signature": [ - "{ readonly alertSuppressionForSequenceEqlRuleEnabled: true; readonly excludePoliciesInFilterEnabled: false; readonly kubernetesEnabled: false; readonly donutChartEmbeddablesEnabled: false; readonly previewTelemetryUrlEnabled: false; readonly extendedRuleExecutionLoggingEnabled: false; readonly socTrendsEnabled: false; readonly responseActionUploadEnabled: true; readonly automatedProcessActionsEnabled: true; readonly responseActionsSentinelOneV1Enabled: true; readonly responseActionsSentinelOneV2Enabled: true; readonly responseActionsSentinelOneGetFileEnabled: true; readonly responseActionsSentinelOneKillProcessEnabled: true; readonly responseActionsSentinelOneProcessesEnabled: true; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: true; readonly endpointManagementSpaceAwarenessEnabled: false; readonly securitySolutionNotesDisabled: false; readonly assistantModelEvaluation: false; readonly attackDiscoveryAlertFiltering: false; readonly newUserDetailsFlyoutManagedUser: false; readonly riskScoringPersistence: true; readonly riskScoringRoutesEnabled: true; readonly esqlRulesDisabled: false; readonly protectionUpdatesEnabled: true; readonly disableTimelineSaveTour: false; readonly riskEnginePrivilegesRouteEnabled: true; readonly sentinelOneDataInAnalyzerEnabled: true; readonly sentinelOneManualHostActionsEnabled: true; readonly crowdstrikeDataInAnalyzerEnabled: true; readonly responseActionsTelemetryEnabled: false; readonly jamfDataInAnalyzerEnabled: true; readonly timelineEsqlTabDisabled: false; readonly analyzerDatePickersAndSourcererDisabled: false; readonly graphVisualizationInFlyoutEnabled: false; readonly prebuiltRulesCustomizationEnabled: false; readonly malwareOnWriteScanOptionAvailable: true; readonly unifiedManifestEnabled: true; readonly valueListItemsModalEnabled: true; readonly filterProcessDescendantsForEventFiltersEnabled: true; readonly dataIngestionHubEnabled: false; readonly entityStoreDisabled: false; readonly serviceEntityStoreEnabled: false; readonly siemMigrationsEnabled: false; readonly defendInsights: false; readonly newExpandableFlyoutNavigationEnabled: false; readonly crowdstrikeRunScriptEnabled: false; readonly assetInventoryStoreEnabled: false; }" + "{ readonly alertSuppressionForSequenceEqlRuleEnabled: true; readonly excludePoliciesInFilterEnabled: false; readonly kubernetesEnabled: false; readonly donutChartEmbeddablesEnabled: false; readonly previewTelemetryUrlEnabled: false; readonly extendedRuleExecutionLoggingEnabled: false; readonly socTrendsEnabled: false; readonly responseActionUploadEnabled: true; readonly automatedProcessActionsEnabled: true; readonly responseActionsSentinelOneV1Enabled: true; readonly responseActionsSentinelOneV2Enabled: true; readonly responseActionsSentinelOneGetFileEnabled: true; readonly responseActionsSentinelOneKillProcessEnabled: true; readonly responseActionsSentinelOneProcessesEnabled: true; readonly responseActionsCrowdstrikeManualHostIsolationEnabled: true; readonly endpointManagementSpaceAwarenessEnabled: false; readonly securitySolutionNotesDisabled: false; readonly assistantModelEvaluation: false; readonly attackDiscoveryAlertFiltering: false; readonly newUserDetailsFlyoutManagedUser: false; readonly riskScoringPersistence: true; readonly riskScoringRoutesEnabled: true; readonly esqlRulesDisabled: false; readonly protectionUpdatesEnabled: true; readonly disableTimelineSaveTour: false; readonly riskEnginePrivilegesRouteEnabled: true; readonly sentinelOneDataInAnalyzerEnabled: true; readonly sentinelOneManualHostActionsEnabled: true; readonly crowdstrikeDataInAnalyzerEnabled: true; readonly responseActionsTelemetryEnabled: false; readonly jamfDataInAnalyzerEnabled: true; readonly timelineEsqlTabDisabled: false; readonly analyzerDatePickersAndSourcererDisabled: false; readonly graphVisualizationInFlyoutEnabled: false; readonly prebuiltRulesCustomizationEnabled: false; readonly malwareOnWriteScanOptionAvailable: true; readonly unifiedManifestEnabled: true; readonly valueListItemsModalEnabled: true; readonly filterProcessDescendantsForEventFiltersEnabled: true; readonly dataIngestionHubEnabled: false; readonly entityStoreDisabled: false; readonly serviceEntityStoreEnabled: false; readonly siemMigrationsEnabled: false; readonly defendInsights: false; readonly newExpandableFlyoutNavigationEnabled: false; readonly crowdstrikeRunScriptEnabled: false; readonly assetInventoryUXEnabled: false; }" ], "path": "x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts", "deprecated": false, diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index a611e42e80724..94ee298d736d4 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolution title: "securitySolution" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolution plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolution'] --- import securitySolutionObj from './security_solution.devdocs.json'; diff --git a/api_docs/security_solution_ess.mdx b/api_docs/security_solution_ess.mdx index 8b76db8991aa5..9efc0bb89b5da 100644 --- a/api_docs/security_solution_ess.mdx +++ b/api_docs/security_solution_ess.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolutionEss title: "securitySolutionEss" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolutionEss plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolutionEss'] --- import securitySolutionEssObj from './security_solution_ess.devdocs.json'; diff --git a/api_docs/security_solution_serverless.mdx b/api_docs/security_solution_serverless.mdx index 87738edfac6a6..d0bdedb9f5063 100644 --- a/api_docs/security_solution_serverless.mdx +++ b/api_docs/security_solution_serverless.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolutionServerless title: "securitySolutionServerless" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolutionServerless plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolutionServerless'] --- import securitySolutionServerlessObj from './security_solution_serverless.devdocs.json'; diff --git a/api_docs/serverless.mdx b/api_docs/serverless.mdx index 0aa59270bd907..60c0c1f8934c6 100644 --- a/api_docs/serverless.mdx +++ b/api_docs/serverless.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverless title: "serverless" image: https://source.unsplash.com/400x175/?github description: API docs for the serverless plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverless'] --- import serverlessObj from './serverless.devdocs.json'; diff --git a/api_docs/serverless_observability.mdx b/api_docs/serverless_observability.mdx index e273da9d624e8..467f7b98ebbe0 100644 --- a/api_docs/serverless_observability.mdx +++ b/api_docs/serverless_observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverlessObservability title: "serverlessObservability" image: https://source.unsplash.com/400x175/?github description: API docs for the serverlessObservability plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverlessObservability'] --- import serverlessObservabilityObj from './serverless_observability.devdocs.json'; diff --git a/api_docs/serverless_search.mdx b/api_docs/serverless_search.mdx index d8ae8c2a3beca..74acdad81a691 100644 --- a/api_docs/serverless_search.mdx +++ b/api_docs/serverless_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverlessSearch title: "serverlessSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the serverlessSearch plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverlessSearch'] --- import serverlessSearchObj from './serverless_search.devdocs.json'; diff --git a/api_docs/session_view.mdx b/api_docs/session_view.mdx index b85817443c761..743406db8ebd5 100644 --- a/api_docs/session_view.mdx +++ b/api_docs/session_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/sessionView title: "sessionView" image: https://source.unsplash.com/400x175/?github description: API docs for the sessionView plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'sessionView'] --- import sessionViewObj from './session_view.devdocs.json'; diff --git a/api_docs/share.mdx b/api_docs/share.mdx index cb26e57600411..6ec90014310bb 100644 --- a/api_docs/share.mdx +++ b/api_docs/share.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/share title: "share" image: https://source.unsplash.com/400x175/?github description: API docs for the share plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'share'] --- import shareObj from './share.devdocs.json'; diff --git a/api_docs/slo.mdx b/api_docs/slo.mdx index ef43e5087069c..37b0fdf76eccc 100644 --- a/api_docs/slo.mdx +++ b/api_docs/slo.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/slo title: "slo" image: https://source.unsplash.com/400x175/?github description: API docs for the slo plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'slo'] --- import sloObj from './slo.devdocs.json'; diff --git a/api_docs/snapshot_restore.mdx b/api_docs/snapshot_restore.mdx index 687a2023d313d..2d74aee218259 100644 --- a/api_docs/snapshot_restore.mdx +++ b/api_docs/snapshot_restore.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/snapshotRestore title: "snapshotRestore" image: https://source.unsplash.com/400x175/?github description: API docs for the snapshotRestore plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'snapshotRestore'] --- import snapshotRestoreObj from './snapshot_restore.devdocs.json'; diff --git a/api_docs/spaces.mdx b/api_docs/spaces.mdx index 3bc68adefaa95..55e225244e7af 100644 --- a/api_docs/spaces.mdx +++ b/api_docs/spaces.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/spaces title: "spaces" image: https://source.unsplash.com/400x175/?github description: API docs for the spaces plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'spaces'] --- import spacesObj from './spaces.devdocs.json'; diff --git a/api_docs/stack_alerts.mdx b/api_docs/stack_alerts.mdx index 054950ce2e785..7415065130fd2 100644 --- a/api_docs/stack_alerts.mdx +++ b/api_docs/stack_alerts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackAlerts title: "stackAlerts" image: https://source.unsplash.com/400x175/?github description: API docs for the stackAlerts plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackAlerts'] --- import stackAlertsObj from './stack_alerts.devdocs.json'; diff --git a/api_docs/stack_connectors.mdx b/api_docs/stack_connectors.mdx index e3cded17b37a0..b93aaa5a8ed37 100644 --- a/api_docs/stack_connectors.mdx +++ b/api_docs/stack_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackConnectors title: "stackConnectors" image: https://source.unsplash.com/400x175/?github description: API docs for the stackConnectors plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackConnectors'] --- import stackConnectorsObj from './stack_connectors.devdocs.json'; diff --git a/api_docs/streams.mdx b/api_docs/streams.mdx index c913ff72e5bac..705d5d5b3efd2 100644 --- a/api_docs/streams.mdx +++ b/api_docs/streams.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/streams title: "streams" image: https://source.unsplash.com/400x175/?github description: API docs for the streams plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'streams'] --- import streamsObj from './streams.devdocs.json'; diff --git a/api_docs/streams_app.mdx b/api_docs/streams_app.mdx index ddcb44f2bb56e..86561884c580e 100644 --- a/api_docs/streams_app.mdx +++ b/api_docs/streams_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/streamsApp title: "streamsApp" image: https://source.unsplash.com/400x175/?github description: API docs for the streamsApp plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'streamsApp'] --- import streamsAppObj from './streams_app.devdocs.json'; diff --git a/api_docs/task_manager.mdx b/api_docs/task_manager.mdx index d4469aaa51ff5..5e4b052a1f8c9 100644 --- a/api_docs/task_manager.mdx +++ b/api_docs/task_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/taskManager title: "taskManager" image: https://source.unsplash.com/400x175/?github description: API docs for the taskManager plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'taskManager'] --- import taskManagerObj from './task_manager.devdocs.json'; diff --git a/api_docs/telemetry.mdx b/api_docs/telemetry.mdx index 21b4a8a18e104..349736b692ce9 100644 --- a/api_docs/telemetry.mdx +++ b/api_docs/telemetry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetry title: "telemetry" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetry plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetry'] --- import telemetryObj from './telemetry.devdocs.json'; diff --git a/api_docs/telemetry_collection_manager.mdx b/api_docs/telemetry_collection_manager.mdx index b98ae55cfa69b..d740721a752bf 100644 --- a/api_docs/telemetry_collection_manager.mdx +++ b/api_docs/telemetry_collection_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionManager title: "telemetryCollectionManager" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryCollectionManager plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionManager'] --- import telemetryCollectionManagerObj from './telemetry_collection_manager.devdocs.json'; diff --git a/api_docs/telemetry_management_section.mdx b/api_docs/telemetry_management_section.mdx index fdf569db3e710..aea86b7eb547e 100644 --- a/api_docs/telemetry_management_section.mdx +++ b/api_docs/telemetry_management_section.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryManagementSection title: "telemetryManagementSection" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryManagementSection plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryManagementSection'] --- import telemetryManagementSectionObj from './telemetry_management_section.devdocs.json'; diff --git a/api_docs/threat_intelligence.mdx b/api_docs/threat_intelligence.mdx index 4de0cb2251d79..5d652a6dbdb02 100644 --- a/api_docs/threat_intelligence.mdx +++ b/api_docs/threat_intelligence.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/threatIntelligence title: "threatIntelligence" image: https://source.unsplash.com/400x175/?github description: API docs for the threatIntelligence plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'threatIntelligence'] --- import threatIntelligenceObj from './threat_intelligence.devdocs.json'; diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index b00179390efc8..d2919baa4567f 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/timelines title: "timelines" image: https://source.unsplash.com/400x175/?github description: API docs for the timelines plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'timelines'] --- import timelinesObj from './timelines.devdocs.json'; diff --git a/api_docs/transform.mdx b/api_docs/transform.mdx index dfc03807084e6..60b259965ea6e 100644 --- a/api_docs/transform.mdx +++ b/api_docs/transform.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/transform title: "transform" image: https://source.unsplash.com/400x175/?github description: API docs for the transform plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'transform'] --- import transformObj from './transform.devdocs.json'; diff --git a/api_docs/triggers_actions_ui.mdx b/api_docs/triggers_actions_ui.mdx index 937419feb9a11..92f27512366e5 100644 --- a/api_docs/triggers_actions_ui.mdx +++ b/api_docs/triggers_actions_ui.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/triggersActionsUi title: "triggersActionsUi" image: https://source.unsplash.com/400x175/?github description: API docs for the triggersActionsUi plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'triggersActionsUi'] --- import triggersActionsUiObj from './triggers_actions_ui.devdocs.json'; diff --git a/api_docs/ui_actions.mdx b/api_docs/ui_actions.mdx index 886b3d4ab357f..a03b80e881193 100644 --- a/api_docs/ui_actions.mdx +++ b/api_docs/ui_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActions title: "uiActions" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActions plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActions'] --- import uiActionsObj from './ui_actions.devdocs.json'; diff --git a/api_docs/ui_actions_enhanced.mdx b/api_docs/ui_actions_enhanced.mdx index d7107cc41a787..b392674de0da0 100644 --- a/api_docs/ui_actions_enhanced.mdx +++ b/api_docs/ui_actions_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActionsEnhanced title: "uiActionsEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActionsEnhanced plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActionsEnhanced'] --- import uiActionsEnhancedObj from './ui_actions_enhanced.devdocs.json'; diff --git a/api_docs/unified_doc_viewer.mdx b/api_docs/unified_doc_viewer.mdx index c19fcd6c1d281..c2e3630730e27 100644 --- a/api_docs/unified_doc_viewer.mdx +++ b/api_docs/unified_doc_viewer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedDocViewer title: "unifiedDocViewer" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedDocViewer plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedDocViewer'] --- import unifiedDocViewerObj from './unified_doc_viewer.devdocs.json'; diff --git a/api_docs/unified_histogram.mdx b/api_docs/unified_histogram.mdx index 5ba897c7f8aec..0233d68ae8474 100644 --- a/api_docs/unified_histogram.mdx +++ b/api_docs/unified_histogram.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedHistogram title: "unifiedHistogram" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedHistogram plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedHistogram'] --- import unifiedHistogramObj from './unified_histogram.devdocs.json'; diff --git a/api_docs/unified_search.mdx b/api_docs/unified_search.mdx index c7f8e7f76df27..1fb3d4826b4a2 100644 --- a/api_docs/unified_search.mdx +++ b/api_docs/unified_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch title: "unifiedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch'] --- import unifiedSearchObj from './unified_search.devdocs.json'; diff --git a/api_docs/unified_search_autocomplete.mdx b/api_docs/unified_search_autocomplete.mdx index fbe73091018c1..d2e290751160e 100644 --- a/api_docs/unified_search_autocomplete.mdx +++ b/api_docs/unified_search_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch-autocomplete title: "unifiedSearch.autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch.autocomplete plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch.autocomplete'] --- import unifiedSearchAutocompleteObj from './unified_search_autocomplete.devdocs.json'; diff --git a/api_docs/uptime.mdx b/api_docs/uptime.mdx index eb42929dd04b9..0527eef1c5c6c 100644 --- a/api_docs/uptime.mdx +++ b/api_docs/uptime.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uptime title: "uptime" image: https://source.unsplash.com/400x175/?github description: API docs for the uptime plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uptime'] --- import uptimeObj from './uptime.devdocs.json'; diff --git a/api_docs/url_forwarding.mdx b/api_docs/url_forwarding.mdx index beef3e5a388fe..d63bb649e3e8c 100644 --- a/api_docs/url_forwarding.mdx +++ b/api_docs/url_forwarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/urlForwarding title: "urlForwarding" image: https://source.unsplash.com/400x175/?github description: API docs for the urlForwarding plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'urlForwarding'] --- import urlForwardingObj from './url_forwarding.devdocs.json'; diff --git a/api_docs/usage_collection.mdx b/api_docs/usage_collection.mdx index 16725d37cc77a..4b1cbc76f14e0 100644 --- a/api_docs/usage_collection.mdx +++ b/api_docs/usage_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/usageCollection title: "usageCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the usageCollection plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'usageCollection'] --- import usageCollectionObj from './usage_collection.devdocs.json'; diff --git a/api_docs/ux.mdx b/api_docs/ux.mdx index 6408dbf0df831..253e9bfcf644c 100644 --- a/api_docs/ux.mdx +++ b/api_docs/ux.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ux title: "ux" image: https://source.unsplash.com/400x175/?github description: API docs for the ux plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ux'] --- import uxObj from './ux.devdocs.json'; diff --git a/api_docs/vis_default_editor.mdx b/api_docs/vis_default_editor.mdx index 3fa690596fd6e..3f712dc2b5f1e 100644 --- a/api_docs/vis_default_editor.mdx +++ b/api_docs/vis_default_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visDefaultEditor title: "visDefaultEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the visDefaultEditor plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visDefaultEditor'] --- import visDefaultEditorObj from './vis_default_editor.devdocs.json'; diff --git a/api_docs/vis_type_gauge.mdx b/api_docs/vis_type_gauge.mdx index 0fe853db3f36a..ad4112f1b4b6f 100644 --- a/api_docs/vis_type_gauge.mdx +++ b/api_docs/vis_type_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeGauge title: "visTypeGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeGauge plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeGauge'] --- import visTypeGaugeObj from './vis_type_gauge.devdocs.json'; diff --git a/api_docs/vis_type_heatmap.mdx b/api_docs/vis_type_heatmap.mdx index dff36ca5f80ea..ddb5a8dc6c7b9 100644 --- a/api_docs/vis_type_heatmap.mdx +++ b/api_docs/vis_type_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeHeatmap title: "visTypeHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeHeatmap plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeHeatmap'] --- import visTypeHeatmapObj from './vis_type_heatmap.devdocs.json'; diff --git a/api_docs/vis_type_pie.mdx b/api_docs/vis_type_pie.mdx index fe3a42270011f..08998177b32c1 100644 --- a/api_docs/vis_type_pie.mdx +++ b/api_docs/vis_type_pie.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypePie title: "visTypePie" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypePie plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypePie'] --- import visTypePieObj from './vis_type_pie.devdocs.json'; diff --git a/api_docs/vis_type_table.mdx b/api_docs/vis_type_table.mdx index aeb3fdb31ee96..d6a356122ac3f 100644 --- a/api_docs/vis_type_table.mdx +++ b/api_docs/vis_type_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTable title: "visTypeTable" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTable plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTable'] --- import visTypeTableObj from './vis_type_table.devdocs.json'; diff --git a/api_docs/vis_type_timelion.mdx b/api_docs/vis_type_timelion.mdx index 1986153f43e03..9238d028922ee 100644 --- a/api_docs/vis_type_timelion.mdx +++ b/api_docs/vis_type_timelion.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimelion title: "visTypeTimelion" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimelion plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimelion'] --- import visTypeTimelionObj from './vis_type_timelion.devdocs.json'; diff --git a/api_docs/vis_type_timeseries.mdx b/api_docs/vis_type_timeseries.mdx index cb004757b5c3b..0b929e16849ff 100644 --- a/api_docs/vis_type_timeseries.mdx +++ b/api_docs/vis_type_timeseries.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimeseries title: "visTypeTimeseries" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimeseries plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimeseries'] --- import visTypeTimeseriesObj from './vis_type_timeseries.devdocs.json'; diff --git a/api_docs/vis_type_vega.mdx b/api_docs/vis_type_vega.mdx index 42222a3853cac..0ba1ea321c78b 100644 --- a/api_docs/vis_type_vega.mdx +++ b/api_docs/vis_type_vega.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVega title: "visTypeVega" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVega plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVega'] --- import visTypeVegaObj from './vis_type_vega.devdocs.json'; diff --git a/api_docs/vis_type_vislib.mdx b/api_docs/vis_type_vislib.mdx index 31e643ed27c0d..9603b93821819 100644 --- a/api_docs/vis_type_vislib.mdx +++ b/api_docs/vis_type_vislib.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVislib title: "visTypeVislib" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVislib plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVislib'] --- import visTypeVislibObj from './vis_type_vislib.devdocs.json'; diff --git a/api_docs/vis_type_xy.mdx b/api_docs/vis_type_xy.mdx index 6072b147b2190..6a36ce57e1f34 100644 --- a/api_docs/vis_type_xy.mdx +++ b/api_docs/vis_type_xy.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeXy title: "visTypeXy" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeXy plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeXy'] --- import visTypeXyObj from './vis_type_xy.devdocs.json'; diff --git a/api_docs/visualizations.devdocs.json b/api_docs/visualizations.devdocs.json index 0a94dce7a5404..34aba489801b6 100644 --- a/api_docs/visualizations.devdocs.json +++ b/api_docs/visualizations.devdocs.json @@ -1314,13 +1314,7 @@ "text": "VisualizeEmbeddable" }, " extends ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.Embeddable", - "text": "Embeddable" - }, + "Embeddable", "<", { "pluginId": "visualizations", @@ -1336,20 +1330,7 @@ "path": "src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx", "deprecated": true, "trackAdoption": false, - "references": [ - { - "plugin": "maps", - "path": "x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts" - }, - { - "plugin": "maps", - "path": "x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts" - }, - { - "plugin": "maps", - "path": "x-pack/platform/plugins/shared/maps/public/legacy_visualizations/is_legacy_map.ts" - } - ], + "references": [], "children": [ { "parentPluginId": "visualizations", diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index b0818a3cdc827..29881fbc1da85 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visualizations title: "visualizations" image: https://source.unsplash.com/400x175/?github description: API docs for the visualizations plugin -date: 2025-01-02 +date: 2025-01-03 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualizations'] --- import visualizationsObj from './visualizations.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/k | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 869 | 12 | 838 | 21 | +| 869 | 12 | 838 | 22 | ## Client diff --git a/docs/setup/settings.asciidoc b/docs/setup/settings.asciidoc index e6923d95fad7f..aba0eb3a6bab5 100644 --- a/docs/setup/settings.asciidoc +++ b/docs/setup/settings.asciidoc @@ -472,9 +472,9 @@ identifies this {kib} instance. *Default: `"your-hostname"`* {kib} is served by a back end server. This setting specifies the port to use. *Default: `5601`* -`server.protocol`:: -experimental[] The http protocol to use, either `http1` or `http2`. Set to `http2` to enable `HTTP/2` support for the {kib} server. -*Default: `http1`* +[[server-protocol]] `server.protocol`:: +experimental[] The http protocol to use, either `http1` or `http2`. Set to `http1` to opt out of `HTTP/2` support when TLS is enabled. Use of `http1` may impact browser loading performance especially for dashboards with many panels. +*Default*: `http2` if TLS is enabled, otherwise `http1`. + NOTE: By default, enabling `http2` requires a valid `h2c` configuration, meaning that TLS must be enabled via <> and <>, if specified, must contain at least `TLSv1.2` or `TLSv1.3`. Strict validation of diff --git a/docs/upgrade-notes.asciidoc b/docs/upgrade-notes.asciidoc index 20ffef01b9b01..efad12e457b1d 100644 --- a/docs/upgrade-notes.asciidoc +++ b/docs/upgrade-notes.asciidoc @@ -179,4 +179,25 @@ It will no longer be possible to create new scripted fields directly from the *D *Action* + Migrate to runtime fields or ES|QL instead of creating new scripted fields. Existing scripted fields can still be edited or deleted. +==== + + +[discrete] +[[known-issue-204384]] +.Now HTTP/2 is the default protocol when TLS is enabled and a deprecation warning appears if HTTP/2 is not enabled or TLS is not configured (9.0.0) +[%collapsible] +==== +*Details* + +Starting from version 9.0.0, HTTP/2 is the default protocol when TLS is enabled. This ensures improved performance and security. However, if HTTP/2 is not enabled or TLS is not configured, a deprecation warning will be added. + +For more information, refer to {kibana-pull}204384[#204384]. + +*Impact* + +Systems that have TLS enabled but don't specify a protocol will start using HTTP/2 in 9.0.0. +Systems that use HTTP/1 or don't have TLS configured will get a deprecation warning. + +*Action* + +Verify that TLS is properly configured by enabling it and providing valid certificates in the settings. Test your system to ensure that connections are established securely over HTTP/2. + +If your Kibana server is hosted behind a load balancer or reverse proxy we recommend testing your deployment configuration before upgrading to 9.0. ==== \ No newline at end of file diff --git a/examples/grid_example/public/app.tsx b/examples/grid_example/public/app.tsx index 9519fd2af43a9..4f0a6c4a1dfa7 100644 --- a/examples/grid_example/public/app.tsx +++ b/examples/grid_example/public/app.tsx @@ -69,15 +69,19 @@ export const GridExample = ({ combineLatest([mockDashboardApi.panels$, mockDashboardApi.rows$]) .pipe(debounceTime(0)) // debounce to avoid subscribe being called twice when both panels$ and rows$ publish .subscribe(([panels, rows]) => { - const hasChanges = !( - deepEqual( - Object.values(panels).map(({ gridData }) => ({ row: 0, ...gridData })), - Object.values(savedState.current.panels).map(({ gridData }) => ({ - row: 0, // if row is undefined, then default to 0 - ...gridData, - })) - ) && deepEqual(rows, savedState.current.rows) - ); + const panelIds = Object.keys(panels); + let panelsAreEqual = true; + for (const panelId of panelIds) { + if (!panelsAreEqual) break; + const currentPanel = panels[panelId]; + const savedPanel = savedState.current.panels[panelId]; + panelsAreEqual = deepEqual( + { row: 0, ...currentPanel.gridData }, + { row: 0, ...savedPanel.gridData } + ); + } + + const hasChanges = !(panelsAreEqual && deepEqual(rows, savedState.current.rows)); setHasUnsavedChanges(hasChanges); setCurrentLayout(dashboardInputToGridLayout({ panels, rows })); }); diff --git a/examples/grid_example/public/use_mock_dashboard_api.tsx b/examples/grid_example/public/use_mock_dashboard_api.tsx index 51933f3a038e4..5b26b6c7eca02 100644 --- a/examples/grid_example/public/use_mock_dashboard_api.tsx +++ b/examples/grid_example/public/use_mock_dashboard_api.tsx @@ -46,6 +46,8 @@ export const useMockDashboardApi = ({ from: 'now-24h', to: 'now', }), + filters$: new BehaviorSubject([]), + query$: new BehaviorSubject(''), viewMode: new BehaviorSubject('edit'), panels$, rows$: new BehaviorSubject(savedState.rows), diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 2a942bc85c3bc..07661ab564a48 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -46989,6 +46989,20 @@ components: type: string required: - name + service: + type: object + properties: + asset: + type: object + properties: + criticality: + $ref: '#/components/schemas/Security_Entity_Analytics_API_AssetCriticalityLevel' + required: + - criticality + name: + type: string + required: + - name user: type: object properties: @@ -47307,6 +47321,7 @@ components: enum: - host.name - user.name + - service.name type: string Security_Entity_Analytics_API_IndexPattern: type: string diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 5845ba56ae895..4b896524ebbdc 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -53865,6 +53865,20 @@ components: type: string required: - name + service: + type: object + properties: + asset: + type: object + properties: + criticality: + $ref: '#/components/schemas/Security_Entity_Analytics_API_AssetCriticalityLevel' + required: + - criticality + name: + type: string + required: + - name user: type: object properties: @@ -54183,6 +54197,7 @@ components: enum: - host.name - user.name + - service.name type: string Security_Entity_Analytics_API_IndexPattern: type: string diff --git a/package.json b/package.json index 6fe68b44cefc7..0bfa176dfc081 100644 --- a/package.json +++ b/package.json @@ -764,7 +764,7 @@ "@kbn/resolver-test-plugin": "link:x-pack/test/plugin_functional/plugins/resolver_test", "@kbn/response-ops-feature-flag-service": "link:packages/response-ops/feature_flag_service", "@kbn/response-ops-rule-form": "link:packages/response-ops/rule_form", - "@kbn/response-ops-rule-params": "link:src/platform/packages/private/response-ops/rule_params", + "@kbn/response-ops-rule-params": "link:src/platform/packages/shared/response-ops/rule_params", "@kbn/response-stream-plugin": "link:examples/response_stream", "@kbn/rison": "link:src/platform/packages/shared/kbn-rison", "@kbn/rollup": "link:x-pack/platform/packages/private/rollup", @@ -1718,7 +1718,7 @@ "cssnano-preset-default": "^5.2.12", "cssstyle": "^4.1.0", "csstype": "^3.0.2", - "cypress": "13.15.2", + "cypress": "13.17.0", "cypress-axe": "^1.5.0", "cypress-file-upload": "^5.0.8", "cypress-multi-reporters": "^1.6.4", diff --git a/packages/kbn-code-owners/src/code_owner_areas.ts b/packages/kbn-code-owners/src/code_owner_areas.ts index fc961fd6d463e..d999457d0b03d 100644 --- a/packages/kbn-code-owners/src/code_owner_areas.ts +++ b/packages/kbn-code-owners/src/code_owner_areas.ts @@ -54,7 +54,6 @@ export const CODE_OWNER_AREA_MAPPINGS: { [area in CodeOwnerArea]: string[] } = { 'elastic/obs-ux-infra_services-team', 'elastic/obs-ux-logs-team', 'elastic/obs-ux-management-team', - 'elastic/obs-ux-onboarding-team', 'elastic/observability-design', 'elastic/observability-ui', 'elastic/observablt-robots', diff --git a/packages/kbn-grid-layout/grid/grid_layout.test.tsx b/packages/kbn-grid-layout/grid/grid_layout.test.tsx index 33b1bad784618..f28703f748bf7 100644 --- a/packages/kbn-grid-layout/grid/grid_layout.test.tsx +++ b/packages/kbn-grid-layout/grid/grid_layout.test.tsx @@ -32,6 +32,7 @@ describe('GridLayout', () => { rerender(), }; }; + const getAllThePanelIds = () => screen .getAllByRole('button', { name: /panelId:panel/i }) @@ -40,9 +41,11 @@ describe('GridLayout', () => { const startDragging = (handle: HTMLElement, options = { clientX: 0, clientY: 0 }) => { fireEvent.mouseDown(handle, options); }; + const moveTo = (options = { clientX: 256, clientY: 128 }) => { fireEvent.mouseMove(document, options); }; + const drop = (handle: HTMLElement) => { fireEvent.mouseUp(handle); }; @@ -123,6 +126,7 @@ describe('GridLayout', () => { 'panel10', ]); }); + it('after removing a panel', async () => { const { rerender } = renderGridLayout(); const sampleLayoutWithoutPanel1 = cloneDeep(getSampleLayout()); @@ -141,6 +145,7 @@ describe('GridLayout', () => { 'panel10', ]); }); + it('after replacing a panel id', async () => { const { rerender } = renderGridLayout(); const modifiedLayout = cloneDeep(getSampleLayout()); diff --git a/packages/kbn-grid-layout/grid/utils/resolve_grid_row.test.ts b/packages/kbn-grid-layout/grid/utils/resolve_grid_row.test.ts new file mode 100644 index 0000000000000..b194e89c3241e --- /dev/null +++ b/packages/kbn-grid-layout/grid/utils/resolve_grid_row.test.ts @@ -0,0 +1,155 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { resolveGridRow } from './resolve_grid_row'; + +describe('resolve grid row', () => { + test('does nothing if grid row has no collisions', () => { + const gridRow = { + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 3, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 4, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 5, column: 0, height: 1, width: 7 }, + panel4: { id: 'panel4', row: 0, column: 6, height: 3, width: 1 }, + }, + }; + const result = resolveGridRow(gridRow); + expect(result).toEqual(gridRow); + }); + + test('resolves grid row if it has collisions without drag event', () => { + const result = resolveGridRow({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 3, width: 4 }, + panel2: { id: 'panel2', row: 3, column: 0, height: 2, width: 2 }, + panel3: { id: 'panel3', row: 3, column: 2, height: 2, width: 2 }, + panel4: { id: 'panel4', row: 0, column: 3, height: 5, width: 4 }, + }, + }); + expect(result).toEqual({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 3, width: 4 }, + panel2: { id: 'panel2', row: 3, column: 0, height: 2, width: 2 }, + panel3: { id: 'panel3', row: 8, column: 2, height: 2, width: 2 }, // pushed down + panel4: { id: 'panel4', row: 3, column: 3, height: 5, width: 4 }, // pushed down + }, + }); + }); + + test('drag causes no collision', () => { + const result = resolveGridRow( + { + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 1, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 2, column: 0, height: 1, width: 7 }, + }, + }, + { id: 'panel4', row: 0, column: 7, height: 3, width: 1 } + ); + + expect(result).toEqual({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 1, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 2, column: 0, height: 1, width: 7 }, + panel4: { id: 'panel4', row: 0, column: 7, height: 3, width: 1 }, + }, + }); + }); + + test('drag causes collision with one panel that pushes down others', () => { + const result = resolveGridRow( + { + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 1, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 2, column: 0, height: 1, width: 8 }, + panel4: { id: 'panel4', row: 3, column: 4, height: 3, width: 4 }, + }, + }, + { id: 'panel5', row: 2, column: 0, height: 3, width: 3 } + ); + + expect(result).toEqual({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 1, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 5, column: 0, height: 1, width: 8 }, // pushed down + panel4: { id: 'panel4', row: 6, column: 4, height: 3, width: 4 }, // pushed down + panel5: { id: 'panel5', row: 2, column: 0, height: 3, width: 3 }, + }, + }); + }); + + test('drag causes collision with multiple panels', () => { + const result = resolveGridRow( + { + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 3, width: 4 }, + panel2: { id: 'panel2', row: 3, column: 0, height: 2, width: 2 }, + panel3: { id: 'panel3', row: 3, column: 2, height: 2, width: 2 }, + }, + }, + { id: 'panel4', row: 0, column: 3, height: 5, width: 4 } + ); + expect(result).toEqual({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 5, column: 0, height: 3, width: 4 }, // pushed down + panel2: { id: 'panel2', row: 8, column: 0, height: 2, width: 2 }, // pushed down + panel3: { id: 'panel3', row: 8, column: 2, height: 2, width: 2 }, // pushed down + panel4: { id: 'panel4', row: 0, column: 3, height: 5, width: 4 }, + }, + }); + }); + + test('drag causes collision with every panel', () => { + const result = resolveGridRow( + { + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 0, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 1, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 2, column: 0, height: 1, width: 7 }, + }, + }, + { id: 'panel4', row: 0, column: 6, height: 3, width: 1 } + ); + + expect(result).toEqual({ + title: 'Test', + isCollapsed: false, + panels: { + panel1: { id: 'panel1', row: 3, column: 0, height: 1, width: 7 }, + panel2: { id: 'panel2', row: 4, column: 0, height: 1, width: 7 }, + panel3: { id: 'panel3', row: 5, column: 0, height: 1, width: 7 }, + panel4: { id: 'panel4', row: 0, column: 6, height: 3, width: 1 }, + }, + }); + }); +}); diff --git a/packages/kbn-grid-layout/grid/utils/resolve_grid_row.ts b/packages/kbn-grid-layout/grid/utils/resolve_grid_row.ts index 38b778b5d0571..d41e3216ec1fb 100644 --- a/packages/kbn-grid-layout/grid/utils/resolve_grid_row.ts +++ b/packages/kbn-grid-layout/grid/utils/resolve_grid_row.ts @@ -34,6 +34,18 @@ const getAllCollisionsWithPanel = ( return collidingPanels; }; +const getFirstCollision = (gridLayout: GridRowData, keysInOrder: string[]): string | undefined => { + for (const panelA of keysInOrder) { + for (const panelB of keysInOrder) { + if (panelA === panelB) continue; + if (collides(gridLayout.panels[panelA], gridLayout.panels[panelB])) { + return panelA; + } + } + } + return undefined; +}; + export const getKeysInOrder = (panels: GridRowData['panels'], draggedId?: string): string[] => { const panelKeys = Object.keys(panels); return panelKeys.sort((panelKeyA, panelKeyB) => { @@ -81,28 +93,45 @@ export const resolveGridRow = ( originalRowData: GridRowData, dragRequest?: GridPanelData ): GridRowData => { - const nextRowData = { ...originalRowData, panels: { ...originalRowData.panels } }; - - // Apply drag request + let nextRowData = { ...originalRowData, panels: { ...originalRowData.panels } }; + // apply drag request if (dragRequest) { nextRowData.panels[dragRequest.id] = dragRequest; } - // return nextRowData; - - // push all panels down if they collide with another panel + // get keys in order from top to bottom, left to right, with priority on the dragged item if it exists const sortedKeys = getKeysInOrder(nextRowData.panels, dragRequest?.id); - for (const key of sortedKeys) { - const panel = nextRowData.panels[key]; - const collisions = getAllCollisionsWithPanel(panel, nextRowData, sortedKeys); - - for (const collision of collisions) { - const rowOverlap = panel.row + panel.height - collision.row; - if (rowOverlap > 0) { - collision.row += rowOverlap; - } - } + // while the layout has at least one collision, try to resolve them in order + let collision = getFirstCollision(nextRowData, sortedKeys); + while (collision !== undefined) { + nextRowData = resolvePanelCollisions(nextRowData, nextRowData.panels[collision], sortedKeys); + collision = getFirstCollision(nextRowData, sortedKeys); } - const compactedGrid = compactGridRow(nextRowData); - return compactedGrid; + return compactGridRow(nextRowData); // compact the grid to close any gaps }; + +/** + * for each panel that collides with `panelToResolve`, push the colliding panel down by a single row and + * recursively handle any collisions that result from that move + */ +function resolvePanelCollisions( + rowData: GridRowData, + panelToResolve: GridPanelData, + keysInOrder: string[] +): GridRowData { + const collisions = getAllCollisionsWithPanel(panelToResolve, rowData, keysInOrder); + for (const collision of collisions) { + if (collision.id === panelToResolve.id) continue; + rowData.panels[collision.id].row++; + rowData = resolvePanelCollisions( + rowData, + rowData.panels[collision.id], + /** + * when recursively resolving any collisions that result from moving this colliding panel down, + * ignore if `collision` is still colliding with `panelToResolve` to prevent an infinite loop + */ + keysInOrder.filter((key) => key !== panelToResolve.id) + ); + } + return rowData; +} diff --git a/packages/kbn-management/storybook/config/main.ts b/packages/kbn-management/storybook/config/main.ts index 5f521974bb959..31dac4f91e02f 100644 --- a/packages/kbn-management/storybook/config/main.ts +++ b/packages/kbn-management/storybook/config/main.ts @@ -11,7 +11,9 @@ import { defaultConfig } from '@kbn/storybook'; module.exports = { ...defaultConfig, - stories: ['../../**/*.stories.+(tsx|mdx)'], + stories: [ + '../../../../src/platform/packages/(private|shared)/kbn-management/**/*.stories.+(tsx|mdx)', + ], reactOptions: { strictMode: true, }, diff --git a/packages/kbn-react-mute-legacy-root-warning/kibana.jsonc b/packages/kbn-react-mute-legacy-root-warning/kibana.jsonc index 82f28f5477d39..504e635ae1b6b 100644 --- a/packages/kbn-react-mute-legacy-root-warning/kibana.jsonc +++ b/packages/kbn-react-mute-legacy-root-warning/kibana.jsonc @@ -1,5 +1,7 @@ { "type": "shared-common", "id": "@kbn/react-mute-legacy-root-warning", - "owner": "@elastic/appex-sharedux" + "owner": "@elastic/appex-sharedux", + "visibility": "private", + "group": "platform" } diff --git a/packages/kbn-test/index.ts b/packages/kbn-test/index.ts index b5506cc804ad3..cc97a4afa7906 100644 --- a/packages/kbn-test/index.ts +++ b/packages/kbn-test/index.ts @@ -69,8 +69,6 @@ export { getUrl } from './src/jest/get_url'; export { runCheckJestConfigsCli } from './src/jest/run_check_jest_configs_cli'; -export { runCheckFtrCodeOwnersCli } from './src/functional_test_runner/run_check_ftr_code_owners'; - export { runJest } from './src/jest/run'; export * from './src/kbn_archiver_cli'; diff --git a/packages/kbn-test/src/functional_test_runner/cli/code_owners.ts b/packages/kbn-test/src/functional_test_runner/cli/code_owners.ts new file mode 100644 index 0000000000000..62948bbfcde55 --- /dev/null +++ b/packages/kbn-test/src/functional_test_runner/cli/code_owners.ts @@ -0,0 +1,48 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { run } from '@kbn/dev-cli-runner'; +import { createFailError } from '@kbn/dev-cli-errors'; +import { getRepoFiles } from '@kbn/get-repo-files'; +import { getCodeOwnersEntries } from '@kbn/code-owners'; +import ignore from 'ignore'; + +const TEST_DIRECTORIES = ['test', 'x-pack/test', 'x-pack/test_serverless']; + +export async function checkFTRCodeOwnersCLI() { + await run( + async ({ log }) => { + const matcher = ignore().add( + getCodeOwnersEntries() + .filter((entry) => entry.teams.length > 0) + .map((entry) => entry.pattern) + ); + const hasOwner = (path: string): boolean => matcher.test(path).ignored; + + const testFiles = await getRepoFiles(TEST_DIRECTORIES); + const filesWithoutOwner = testFiles + .filter((repoPath) => !hasOwner(repoPath.repoRel)) + .map((repoPath) => repoPath.repoRel); + + log.info(`Checked ${testFiles.length} test files in ${process.uptime().toFixed(2)}s`); + + if (filesWithoutOwner.length === 0) { + log.success(`All test files have a code owner 🥳`); + return; + } + + log.write('Test files without a code owner:'); + log.write(filesWithoutOwner.map((i) => ` - ${i}`).join('\n')); + throw createFailError(`Found ${filesWithoutOwner.length} test files without code owner`); + }, + { + description: 'Check that all test files are covered by GitHub CODEOWNERS', + } + ); +} diff --git a/packages/kbn-test/src/functional_test_runner/cli.ts b/packages/kbn-test/src/functional_test_runner/cli/ftr.ts similarity index 98% rename from packages/kbn-test/src/functional_test_runner/cli.ts rename to packages/kbn-test/src/functional_test_runner/cli/ftr.ts index fe153e17b8d69..d9694973e9252 100644 --- a/packages/kbn-test/src/functional_test_runner/cli.ts +++ b/packages/kbn-test/src/functional_test_runner/cli/ftr.ts @@ -16,8 +16,8 @@ import { ToolingLog } from '@kbn/tooling-log'; import { getTimeReporter } from '@kbn/ci-stats-reporter'; import exitHook from 'exit-hook'; -import { readConfigFile, EsVersion } from './lib'; -import { FunctionalTestRunner } from './functional_test_runner'; +import { readConfigFile, EsVersion } from '../lib'; +import { FunctionalTestRunner } from '../functional_test_runner'; export function runFtrCli() { const runStartTime = Date.now(); diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/index.ts b/packages/kbn-test/src/functional_test_runner/cli/index.ts similarity index 59% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/index.ts rename to packages/kbn-test/src/functional_test_runner/cli/index.ts index 029a653a9f1c6..6e29c1bdc231f 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/index.ts +++ b/packages/kbn-test/src/functional_test_runner/cli/index.ts @@ -7,8 +7,5 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export * from '../../../common/lib/saved_object_embeddable'; -export { Embeddable } from './embeddable'; -export { EmbeddableErrorHandler } from './embeddable_error_handler'; -export { ErrorEmbeddable } from './error_embeddable'; -export type { EmbeddableInput, EmbeddableOutput, IEmbeddable } from './i_embeddable'; +export { runFtrCli } from './ftr'; +export { checkFTRCodeOwnersCLI } from './code_owners'; diff --git a/packages/kbn-test/src/functional_test_runner/index.ts b/packages/kbn-test/src/functional_test_runner/index.ts index 6c5641cbe8aab..42bdde23b0439 100644 --- a/packages/kbn-test/src/functional_test_runner/index.ts +++ b/packages/kbn-test/src/functional_test_runner/index.ts @@ -18,6 +18,6 @@ export { runCheckFtrConfigsCli, DedicatedTaskRunner, } from './lib'; -export { runFtrCli } from './cli'; +export * from './cli'; export * from './lib/docker_servers'; export * from './public_types'; diff --git a/packages/kbn-test/src/functional_test_runner/run_check_ftr_code_owners.ts b/packages/kbn-test/src/functional_test_runner/run_check_ftr_code_owners.ts deleted file mode 100644 index 8a1ec50bd1a3e..0000000000000 --- a/packages/kbn-test/src/functional_test_runner/run_check_ftr_code_owners.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { run } from '@kbn/dev-cli-runner'; -import { createFailError } from '@kbn/dev-cli-errors'; -import { getRepoFiles } from '@kbn/get-repo-files'; -import { getOwningTeamsForPath, getCodeOwnersEntries } from '@kbn/code-owners'; - -const TEST_DIRECTORIES = ['test', 'x-pack/test', 'x-pack/test_serverless']; - -const fmtMs = (ms: number) => { - if (ms < 1000) { - return `${Math.round(ms)} ms`; - } - - return `${(Math.round(ms) / 1000).toFixed(2)} s`; -}; - -const fmtList = (list: Iterable) => [...list].map((i) => ` - ${i}`).join('\n'); - -export async function runCheckFtrCodeOwnersCli() { - run( - async ({ log }) => { - const start = performance.now(); - - const missingOwners = new Set(); - - // cache codeowners for quicker lookup - log.info('Reading CODEOWNERS file'); - const codeOwnersEntries = getCodeOwnersEntries(); - - const testFiles = await getRepoFiles(TEST_DIRECTORIES); - log.info(`Checking ownership for ${testFiles.length} test files (this will take a while)`); - - for (const { repoRel } of testFiles) { - const owners = getOwningTeamsForPath(repoRel, codeOwnersEntries); - - if (owners.length === 0) { - missingOwners.add(repoRel); - } - } - - const timeSpent = fmtMs(performance.now() - start); - log.info(`Ownership check complete (took ${timeSpent})`); - - if (missingOwners.size) { - log.error( - `The following test files do not have a GitHub code owner:\n${fmtList(missingOwners)}` - ); - throw createFailError( - `Found ${missingOwners.size} test files without code owner (checked ${testFiles.length} test files in ${timeSpent})` - ); - } - - log.success(`All test files have a code owner. 🥳`); - }, - { - description: 'Check that all test files are covered by GitHub CODEOWNERS', - } - ); -} diff --git a/packages/shared-ux/router/mocks/kibana.jsonc b/packages/shared-ux/router/mocks/kibana.jsonc index 26dc0fde75a25..cb35bcc219c67 100644 --- a/packages/shared-ux/router/mocks/kibana.jsonc +++ b/packages/shared-ux/router/mocks/kibana.jsonc @@ -1,5 +1,7 @@ { "type": "shared-common", "id": "@kbn/shared-ux-router-mocks", - "owner": "@elastic/appex-sharedux" + "owner": "@elastic/appex-sharedux", + "group": "platform", + "visibility": "shared" } diff --git a/packages/shared-ux/router/types/kibana.jsonc b/packages/shared-ux/router/types/kibana.jsonc index 7508f5fa2f4b2..31242344b4096 100644 --- a/packages/shared-ux/router/types/kibana.jsonc +++ b/packages/shared-ux/router/types/kibana.jsonc @@ -1,5 +1,7 @@ { "type": "shared-common", "id": "@kbn/shared-ux-router-types", - "owner": "@elastic/appex-sharedux" + "owner": "@elastic/appex-sharedux", + "group": "platform", + "visibility": "shared" } diff --git a/packages/shared-ux/storybook/config/kibana.jsonc b/packages/shared-ux/storybook/config/kibana.jsonc index fdf4553e204c2..8f7361585ccee 100644 --- a/packages/shared-ux/storybook/config/kibana.jsonc +++ b/packages/shared-ux/storybook/config/kibana.jsonc @@ -1,5 +1,7 @@ { "type": "shared-common", "id": "@kbn/shared-ux-storybook-config", - "owner": "@elastic/appex-sharedux" + "owner": "@elastic/appex-sharedux", + "visibility": "private", + "group": "platform" } diff --git a/renovate.json b/renovate.json index 1c7043511e57d..c1d7b8b53ba76 100644 --- a/renovate.json +++ b/renovate.json @@ -2557,16 +2557,56 @@ "react-hook-form" ], "reviewers": [ - "team:security-asset-management", - "team:uptime" + "team:obs-ux-management-team" ], "matchBaseBranches": [ "main" ], "labels": [ "release_note:skip", - "backport:skip", - "ci:all-cypress-suites" + "backport:all-open", + "ci:all-cypress-suites", + "Team:obs-ux-management" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "@faker-js/faker", + "matchDepNames": [ + "@faker-js/faker" + ], + "reviewers": [ + "team:obs-ux-management-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open", + "ci:all-cypress-suites", + "Team:obs-ux-management" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "@elastic/synthetics", + "matchDepNames": [ + "@elastic/synthetics" + ], + "reviewers": [ + "team:obs-ux-management-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open", + "ci:all-cypress-suites", + "Team:obs-ux-management" ], "minimumReleaseAge": "7 days", "enabled": true @@ -2609,7 +2649,101 @@ ], "labels": [ "release_note:skip", - "backport:skip" + "backport:all-open" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "Cytoscape", + "matchDepNames": [ + "@types/cytoscape", + "cytoscape", + "cytoscape-dagre" + ], + "reviewers": [ + "team:obs-ux-infra_services-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "fnv-plus", + "matchDepNames": [ + "fnv-plus", + "@types/fnv-plus" + ], + "reviewers": [ + "team:obs-ux-infra_services-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "react-syntax-highlighter", + "matchDepNames": [ + "react-syntax-highlighter", + "@types/react-syntax-highlighter" + ], + "reviewers": [ + "team:obs-ux-infra_services-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "native-hdr-histogram", + "matchDepNames": [ + "native-hdr-histogram" + ], + "reviewers": [ + "team:obs-ux-infra_services-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open" + ], + "minimumReleaseAge": "7 days", + "enabled": true + }, + { + "groupName": "native-hdr-histogram", + "matchDepNames": [ + "native-hdr-histogram" + ], + "reviewers": [ + "team:obs-ux-infra_services-team" + ], + "matchBaseBranches": [ + "main" + ], + "labels": [ + "release_note:skip", + "backport:all-open" ], "minimumReleaseAge": "7 days", "enabled": true @@ -2667,7 +2801,8 @@ ], "labels": [ "Team:Obs UX Logs", - "release_note:skip" + "release_note:skip", + "backport:all-open" ], "minimumReleaseAge": "7 days", "enabled": true @@ -2850,6 +2985,7 @@ { "groupName": "Serve swagger docs", "matchDepNames": [ + "@types/express", "express", "swagger-jsdoc", "swagger-ui-express" @@ -2862,7 +2998,8 @@ ], "labels": [ "release_note:skip", - "team:obs-entities" + "team:obs-entities", + "backport:all-open" ], "enabled": true }, @@ -2968,4 +3105,4 @@ "datasourceTemplate": "docker" } ] -} +} \ No newline at end of file diff --git a/scripts/check_ftr_code_owners.js b/scripts/check_ftr_code_owners.js index 875f835d1d7b4..b35590500b313 100644 --- a/scripts/check_ftr_code_owners.js +++ b/scripts/check_ftr_code_owners.js @@ -8,4 +8,4 @@ */ require('../src/setup_node_env'); -require('@kbn/test').runCheckFtrCodeOwnersCli(); +void require('@kbn/test').checkFTRCodeOwnersCLI(); diff --git a/src/core/packages/http/server-internal/src/http_config.test.ts b/src/core/packages/http/server-internal/src/http_config.test.ts index fa2fbe7ad9f36..d81e25fa364d1 100644 --- a/src/core/packages/http/server-internal/src/http_config.test.ts +++ b/src/core/packages/http/server-internal/src/http_config.test.ts @@ -577,6 +577,22 @@ describe('cdn', () => { }); }); +describe('http1 protocol', () => { + it('uses http1 as default if protocol is empty and ssl is not enabled', () => { + expect( + config.schema.validate({ + ssl: { + enabled: false, + }, + }) + ).toEqual( + expect.objectContaining({ + protocol: 'http1', + }) + ); + }); +}); + describe('http2 protocol', () => { it('throws if http2 is enabled but TLS is not', () => { expect(() => @@ -642,6 +658,22 @@ describe('http2 protocol', () => { }) ); }); + it('uses http2 as default if protocol is empty and ssl is enabled', () => { + expect( + config.schema.validate({ + ssl: { + enabled: true, + supportedProtocols: ['TLSv1.2'], + certificate: '/path/to/certificate', + key: '/path/to/key', + }, + }) + ).toEqual( + expect.objectContaining({ + protocol: 'http2', + }) + ); + }); }); describe('HttpConfig', () => { diff --git a/src/core/packages/http/server-internal/src/http_config.ts b/src/core/packages/http/server-internal/src/http_config.ts index 4ba9bcb9e88be..6503bd2c87dde 100644 --- a/src/core/packages/http/server-internal/src/http_config.ts +++ b/src/core/packages/http/server-internal/src/http_config.ts @@ -17,6 +17,7 @@ import { uuidRegexp } from '@kbn/core-base-server-internal'; import type { HttpProtocol, ICspConfig, IExternalUrlConfig } from '@kbn/core-http-server'; import type { IHttpEluMonitorConfig } from '@kbn/core-http-server/src/elu_monitor'; import type { HandlerResolutionStrategy } from '@kbn/core-http-router-server-internal'; +import { get } from 'lodash'; import { CspConfig, CspConfigType } from './csp'; import { ExternalUrlConfig } from './external_url'; import { @@ -123,9 +124,16 @@ const configSchema = schema.object( } }, }), - protocol: schema.oneOf([schema.literal('http1'), schema.literal('http2')], { - defaultValue: 'http1', - }), + protocol: schema.conditional( + schema.siblingRef('ssl.enabled'), + schema.literal(true), + schema.oneOf([schema.literal('http1'), schema.literal('http2')], { + defaultValue: 'http2', + }), + schema.oneOf([schema.literal('http1'), schema.literal('http2')], { + defaultValue: 'http1', + }) + ), host: schema.string({ defaultValue: 'localhost', hostname: true, @@ -290,7 +298,27 @@ export type HttpConfigType = TypeOf; export const config: ServiceConfigDescriptor = { path: 'server' as const, schema: configSchema, - deprecations: ({ rename }) => [rename('maxPayloadBytes', 'maxPayload', { level: 'warning' })], + deprecations: ({ rename }) => [ + rename('maxPayloadBytes', 'maxPayload', { level: 'warning' }), + (settings, fromPath, addDeprecation, { docLinks }) => { + const cfg = get(settings, fromPath); + if (!cfg?.ssl?.enabled || cfg?.protocol === 'http1') { + addDeprecation({ + level: 'warning', + title: `Consider enabling TLS and using HTTP/2 to improve security and performance.`, + configPath: `${fromPath}.protocol,${fromPath}.ssl.enabled`, + message: `TLS is not enabled, or the HTTP protocol is set to HTTP/1. Enabling TLS and using HTTP/2 improves security and performance.`, + correctiveActions: { + manualSteps: [ + `Set up TLS by configuring ${fromPath}.ssl.`, + `Set the protocol to 'http2' by updating ${fromPath}.protocol to 'http2' in your configuration.`, + ], + }, + documentationUrl: docLinks.server.protocol, + }); + } + }, + ], }; export class HttpConfig implements IHttpConfig { diff --git a/src/core/server/integration_tests/config/config_deprecation.test.ts b/src/core/server/integration_tests/config/config_deprecation.test.ts index 42425f10a4c97..bdc9e3442c0f0 100644 --- a/src/core/server/integration_tests/config/config_deprecation.test.ts +++ b/src/core/server/integration_tests/config/config_deprecation.test.ts @@ -26,14 +26,17 @@ describe('configuration deprecations', () => { }); if (getFips() === 0) { - it('should not log deprecation warnings for default configuration', async () => { + it('should log one warning for default configuration, the http/tls deprecation warning', async () => { root = createRoot(); await root.preboot(); await root.setup(); const logs = loggingSystemMock.collect(mockLoggingSystem); - expect(logs.warn.flat()).toHaveLength(0); + expect(logs.warn.flat()).toHaveLength(1); + expect(logs.warn.flat()[0]).toEqual( + 'TLS is not enabled, or the HTTP protocol is set to HTTP/1. Enabling TLS and using HTTP/2 improves security and performance.' + ); }); } else { it('fips is enabled and the default configuration has been overridden', () => { diff --git a/src/platform/packages/private/response-ops/rule_params/tsconfig.json b/src/platform/packages/private/response-ops/rule_params/tsconfig.json deleted file mode 100644 index bd6cfc03c6683..0000000000000 --- a/src/platform/packages/private/response-ops/rule_params/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../../../../../tsconfig.base.json", - "compilerOptions": { - "outDir": "target/types", - "types": [ - "jest", - "node" - ] - }, - "include": [ - "**/*.ts", - ], - "exclude": [ - "target/**/*" - ], - "kbn_references": [ - "@kbn/config-schema", - ] -} diff --git a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts index 881dbf2069c60..f391114a85f26 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts @@ -469,6 +469,9 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D ruleApiOverview: `${SECURITY_SOLUTION_DOCS}rule-api-overview.html`, configureAlertSuppression: `${SECURITY_SOLUTION_DOCS}alert-suppression.html#_configure_alert_suppression`, }, + server: { + protocol: `${KIBANA_DOCS}settings.html#server-protocol`, + }, securitySolution: { artifactControl: `${SECURITY_SOLUTION_DOCS}artifact-control.html`, avcResults: `${ELASTIC_WEBSITE_URL}blog/elastic-av-comparatives-business-security-test`, diff --git a/src/platform/packages/shared/kbn-doc-links/src/types.ts b/src/platform/packages/shared/kbn-doc-links/src/types.ts index fd1c2cf8fe3ca..d561c8b214fb1 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/types.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/types.ts @@ -337,6 +337,9 @@ export interface DocLinks { readonly ruleApiOverview: string; readonly configureAlertSuppression: string; }; + readonly server: { + readonly protocol: string; + }; readonly securitySolution: { readonly aiAssistant: string; readonly artifactControl: string; diff --git a/src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts b/src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts new file mode 100644 index 0000000000000..3af7b7f428596 --- /dev/null +++ b/src/platform/packages/shared/presentation/presentation_publishing/embeddable_api_context.ts @@ -0,0 +1,22 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export interface EmbeddableApiContext { + /** + * TODO: once all actions are entirely decoupled from the embeddable system, this key should be renamed to "api" + * to reflect the fact that this context could contain any api. + */ + embeddable: unknown; +} + +export const isEmbeddableApiContext = (context: unknown): context is EmbeddableApiContext => + !!context && + typeof context === 'object' && + !!(context as EmbeddableApiContext).embeddable && + typeof (context as EmbeddableApiContext).embeddable === 'object'; diff --git a/src/platform/packages/shared/presentation/presentation_publishing/index.ts b/src/platform/packages/shared/presentation/presentation_publishing/index.ts index 09e6453586665..62e68521a5b09 100644 --- a/src/platform/packages/shared/presentation/presentation_publishing/index.ts +++ b/src/platform/packages/shared/presentation/presentation_publishing/index.ts @@ -7,13 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export interface EmbeddableApiContext { - /** - * TODO: once all actions are entirely decoupled from the embeddable system, this key should be renamed to "api" - * to reflect the fact that this context could contain any api. - */ - embeddable: unknown; -} +export { isEmbeddableApiContext, type EmbeddableApiContext } from './embeddable_api_context'; export { getInitialValuesFromComparators, diff --git a/src/platform/packages/private/response-ops/rule_params/README.md b/src/platform/packages/shared/response-ops/rule_params/README.md similarity index 100% rename from src/platform/packages/private/response-ops/rule_params/README.md rename to src/platform/packages/shared/response-ops/rule_params/README.md diff --git a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts new file mode 100644 index 0000000000000..dc6ebfe4ef99e --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export { anomalyParamsSchema } from './latest'; +export { anomalyParamsSchema as anomalyParamsSchemaV1 } from './v1'; + +export type { AnomalyRuleParams } from './latest'; +export type { AnomalyRuleParams as AnomalyRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/private/response-ops/rule_params/latest.ts b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts similarity index 100% rename from src/platform/packages/private/response-ops/rule_params/latest.ts rename to src/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts diff --git a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts new file mode 100644 index 0000000000000..9e550815602a8 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts @@ -0,0 +1,40 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { TypeOf, schema } from '@kbn/config-schema'; +import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; + +export enum AnomalyDetectorType { + txLatency = 'txLatency', + txThroughput = 'txThroughput', + txFailureRate = 'txFailureRate', +} + +const detectorsSchema = schema.oneOf([ + schema.literal(AnomalyDetectorType.txLatency), + schema.literal(AnomalyDetectorType.txThroughput), + schema.literal(AnomalyDetectorType.txFailureRate), +]); + +export const anomalyParamsSchema = schema.object({ + serviceName: schema.maybe(schema.string()), + transactionType: schema.maybe(schema.string()), + windowSize: schema.number(), + windowUnit: schema.string(), + environment: schema.string(), + anomalySeverityType: schema.oneOf([ + schema.literal(ML_ANOMALY_SEVERITY.CRITICAL), + schema.literal(ML_ANOMALY_SEVERITY.MAJOR), + schema.literal(ML_ANOMALY_SEVERITY.MINOR), + schema.literal(ML_ANOMALY_SEVERITY.WARNING), + ]), + anomalyDetectorTypes: schema.maybe(schema.arrayOf(detectorsSchema, { minSize: 1 })), +}); + +export type AnomalyRuleParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/index.ts b/src/platform/packages/shared/response-ops/rule_params/common/index.ts new file mode 100644 index 0000000000000..4eaa2806a1a10 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/common/index.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export * from './search_configuration_schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts b/src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts new file mode 100644 index 0000000000000..50b1f3ed1a561 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts @@ -0,0 +1,19 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { TypeOf, schema } from '@kbn/config-schema'; + +export const searchConfigurationSchema = schema.object({ + query: schema.object({ + query: schema.oneOf([schema.string(), schema.recordOf(schema.string(), schema.any())]), + language: schema.string(), + }), +}); + +export type SearchConfigurationType = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts b/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts new file mode 100644 index 0000000000000..e14153eb3083f --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export { errorCountParamsSchema } from './latest'; +export { errorCountParamsSchema as errorCountParamsSchemaV1 } from './v1'; + +export type { ErrorCountRuleParams } from './latest'; +export type { ErrorCountRuleParams as ErrorCountRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts b/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts new file mode 100644 index 0000000000000..f278309c22b03 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts b/src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts new file mode 100644 index 0000000000000..cbbd6742bf235 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts @@ -0,0 +1,25 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { TypeOf, schema } from '@kbn/config-schema'; +import { searchConfigurationSchema } from '../common/search_configuration_schema'; + +export const errorCountParamsSchema = schema.object({ + windowSize: schema.number(), + windowUnit: schema.string(), + threshold: schema.number(), + serviceName: schema.maybe(schema.string()), + environment: schema.string(), + groupBy: schema.maybe(schema.arrayOf(schema.string())), + errorGroupingKey: schema.maybe(schema.string()), + useKqlFilter: schema.maybe(schema.boolean()), + searchConfiguration: schema.maybe(searchConfigurationSchema), +}); + +export type ErrorCountRuleParams = TypeOf; diff --git a/src/platform/packages/private/response-ops/rule_params/index.ts b/src/platform/packages/shared/response-ops/rule_params/index.ts similarity index 100% rename from src/platform/packages/private/response-ops/rule_params/index.ts rename to src/platform/packages/shared/response-ops/rule_params/index.ts diff --git a/src/platform/packages/private/response-ops/rule_params/jest.config.js b/src/platform/packages/shared/response-ops/rule_params/jest.config.js similarity index 87% rename from src/platform/packages/private/response-ops/rule_params/jest.config.js rename to src/platform/packages/shared/response-ops/rule_params/jest.config.js index 76636c7d4fc78..6df21724dbd84 100644 --- a/src/platform/packages/private/response-ops/rule_params/jest.config.js +++ b/src/platform/packages/shared/response-ops/rule_params/jest.config.js @@ -10,5 +10,5 @@ module.exports = { preset: '@kbn/test/jest_node', rootDir: '../../../../../..', - roots: ['/src/platform/packages/private/response-ops/rule_params'], + roots: ['/src/platform/packages/shared/response-ops/rule_params'], }; diff --git a/src/platform/packages/private/response-ops/rule_params/kibana.jsonc b/src/platform/packages/shared/response-ops/rule_params/kibana.jsonc similarity index 56% rename from src/platform/packages/private/response-ops/rule_params/kibana.jsonc rename to src/platform/packages/shared/response-ops/rule_params/kibana.jsonc index 1315303258949..1bf690c87bfd9 100644 --- a/src/platform/packages/private/response-ops/rule_params/kibana.jsonc +++ b/src/platform/packages/shared/response-ops/rule_params/kibana.jsonc @@ -1,9 +1,7 @@ { "type": "shared-common", "id": "@kbn/response-ops-rule-params", - "owner": [ - "@elastic/response-ops" - ], + "owner": ["@elastic/response-ops"], "group": "platform", - "visibility": "private" -} \ No newline at end of file + "visibility": "shared" +} diff --git a/src/platform/packages/shared/response-ops/rule_params/latest.ts b/src/platform/packages/shared/response-ops/rule_params/latest.ts new file mode 100644 index 0000000000000..f278309c22b03 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/latest.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export * from './v1'; diff --git a/src/platform/packages/private/response-ops/rule_params/package.json b/src/platform/packages/shared/response-ops/rule_params/package.json similarity index 100% rename from src/platform/packages/private/response-ops/rule_params/package.json rename to src/platform/packages/shared/response-ops/rule_params/package.json diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts new file mode 100644 index 0000000000000..baf910d1c033c --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export { transactionDurationParamsSchema } from './latest'; +export { transactionDurationParamsSchema as transactionDurationParamsSchemaV1 } from './v1'; + +export type { TransactionDurationRuleParams } from './latest'; +export type { TransactionDurationRuleParams as TransactionDurationRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts new file mode 100644 index 0000000000000..f278309c22b03 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts new file mode 100644 index 0000000000000..ab80398666607 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts @@ -0,0 +1,37 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { TypeOf, schema } from '@kbn/config-schema'; +import { searchConfigurationSchema } from '../common/search_configuration_schema'; + +export enum AggregationType { + Avg = 'avg', + P95 = '95th', + P99 = '99th', +} + +export const transactionDurationParamsSchema = schema.object({ + serviceName: schema.maybe(schema.string()), + transactionType: schema.maybe(schema.string()), + transactionName: schema.maybe(schema.string()), + windowSize: schema.number(), + windowUnit: schema.string(), + threshold: schema.number(), + aggregationType: schema.oneOf([ + schema.literal(AggregationType.Avg), + schema.literal(AggregationType.P95), + schema.literal(AggregationType.P99), + ]), + environment: schema.string(), + groupBy: schema.maybe(schema.arrayOf(schema.string())), + useKqlFilter: schema.maybe(schema.boolean()), + searchConfiguration: schema.maybe(searchConfigurationSchema), +}); + +export type TransactionDurationRuleParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts new file mode 100644 index 0000000000000..c9630b7347e81 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export { transactionErrorRateParamsSchema } from './latest'; +export { transactionErrorRateParamsSchema as transactionErrorRateParamsSchemaV1 } from './v1'; + +export type { TransactionErrorRateRuleParams } from './latest'; +export type { TransactionErrorRateRuleParams as TransactionErrorRateRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts new file mode 100644 index 0000000000000..f278309c22b03 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts new file mode 100644 index 0000000000000..452279d8ddd19 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts @@ -0,0 +1,26 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +import { TypeOf, schema } from '@kbn/config-schema'; +import { searchConfigurationSchema } from '../common/search_configuration_schema'; + +export const transactionErrorRateParamsSchema = schema.object({ + windowSize: schema.number(), + windowUnit: schema.string(), + threshold: schema.number(), + transactionType: schema.maybe(schema.string()), + transactionName: schema.maybe(schema.string()), + serviceName: schema.maybe(schema.string()), + environment: schema.string(), + groupBy: schema.maybe(schema.arrayOf(schema.string())), + useKqlFilter: schema.maybe(schema.boolean()), + searchConfiguration: schema.maybe(searchConfigurationSchema), +}); + +export type TransactionErrorRateRuleParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/tsconfig.json b/src/platform/packages/shared/response-ops/rule_params/tsconfig.json new file mode 100644 index 0000000000000..47b4f90bb2813 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "types": ["jest", "node"] + }, + "include": ["**/*.ts"], + "exclude": ["target/**/*"], + "kbn_references": ["@kbn/config-schema", "@kbn/ml-anomaly-utils"] +} diff --git a/src/platform/packages/private/response-ops/rule_params/v1.ts b/src/platform/packages/shared/response-ops/rule_params/v1.ts similarity index 100% rename from src/platform/packages/private/response-ops/rule_params/v1.ts rename to src/platform/packages/shared/response-ops/rule_params/v1.ts diff --git a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts index dd327dd4706d5..81e564da36292 100644 --- a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts +++ b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts @@ -141,6 +141,7 @@ export const applicationUsageSchema = { enterpriseSearchAnalytics: commonSchema, enterpriseSearchApplications: commonSchema, enterpriseSearchAISearch: commonSchema, + enterpriseSearchRedirect: commonSchema, enterpriseSearchSemanticSearch: commonSchema, enterpriseSearchVectorSearch: commonSchema, enterpriseSearchElasticsearch: commonSchema, diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_api/types.ts b/src/platform/plugins/shared/dashboard/public/dashboard_api/types.ts index 73e7e9422641f..238bd5976bfa1 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_api/types.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_api/types.ts @@ -41,12 +41,7 @@ import { ControlGroupSerializedState, } from '@kbn/controls-plugin/public'; import { Filter, Query, TimeRange } from '@kbn/es-query'; -import { - DefaultEmbeddableApi, - EmbeddablePackageState, - ErrorEmbeddable, - IEmbeddable, -} from '@kbn/embeddable-plugin/public'; +import type { DefaultEmbeddableApi, EmbeddablePackageState } from '@kbn/embeddable-plugin/public'; import { Observable, Subject } from 'rxjs'; import { RefreshInterval, SearchSessionInfoProvider } from '@kbn/data-plugin/public'; import { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; @@ -175,9 +170,7 @@ export type DashboardApi = CanExpandPanels & setTags: (tags: string[]) => void; setTimeRange: (timeRange?: TimeRange | undefined) => void; unifiedSearchFilters$: PublishesUnifiedSearch['filters$']; - - // TODO remove types below this line - from legacy embeddable system - untilEmbeddableLoaded: (id: string) => Promise; + untilEmbeddableLoaded: (id: string) => Promise; }; export interface DashboardInternalApi { diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_container/index.ts b/src/platform/plugins/shared/dashboard/public/dashboard_container/index.ts index c3f1989d66cd6..02b84b619aaf9 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_container/index.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_container/index.ts @@ -16,4 +16,3 @@ export const LATEST_DASHBOARD_CONTAINER_VERSION = convertNumberToDashboardVersio export { LazyDashboardRenderer } from './external_api/lazy_dashboard_renderer'; export type { DashboardLocatorParams } from './types'; -export type { IProvidesLegacyPanelPlacementSettings } from './panel_placement'; diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/index.ts b/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/index.ts index d903886695745..3706aefca3512 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/index.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/index.ts @@ -11,4 +11,4 @@ export { placeClonePanel } from './place_clone_panel_strategy'; export { registerDashboardPanelPlacementSetting } from './panel_placement_registry'; -export type { GetPanelPlacementSettings, IProvidesLegacyPanelPlacementSettings } from './types'; +export type { GetPanelPlacementSettings } from './types'; diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts b/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts index 2dd826f9a5821..93f9d2d7fc78e 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_container/panel_placement/types.ts @@ -7,7 +7,6 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import { EmbeddableInput } from '@kbn/embeddable-plugin/public'; import { MaybePromise } from '@kbn/utility-types'; import { DashboardPanelState } from '../../../common'; import type { GridData } from '../../../server/content_management'; @@ -30,16 +29,6 @@ export interface PanelPlacementProps { currentPanels: { [key: string]: DashboardPanelState }; } -export interface IProvidesLegacyPanelPlacementSettings< - InputType extends EmbeddableInput = EmbeddableInput, - AttributesType = unknown -> { - getLegacyPanelPlacementSettings: ( - input: InputType, - attributes?: AttributesType - ) => Partial; -} - export type GetPanelPlacementSettings = ( serializedState?: SerializedState ) => MaybePromise; diff --git a/src/platform/plugins/shared/dashboard/public/index.ts b/src/platform/plugins/shared/dashboard/public/index.ts index 109be5bc0eaf0..458d1cc35ddde 100644 --- a/src/platform/plugins/shared/dashboard/public/index.ts +++ b/src/platform/plugins/shared/dashboard/public/index.ts @@ -22,7 +22,6 @@ export { LazyDashboardRenderer as DashboardRenderer, DASHBOARD_CONTAINER_TYPE, type DashboardLocatorParams, - type IProvidesLegacyPanelPlacementSettings, } from './dashboard_container'; export type { DashboardSetup, DashboardStart, DashboardFeatureFlagConfig } from './plugin'; diff --git a/src/platform/plugins/shared/embeddable/public/index.ts b/src/platform/plugins/shared/embeddable/public/index.ts index 4ec1c43df2dbb..b388427f402bc 100644 --- a/src/platform/plugins/shared/embeddable/public/index.ts +++ b/src/platform/plugins/shared/embeddable/public/index.ts @@ -17,10 +17,7 @@ export { CELL_VALUE_TRIGGER, contextMenuTrigger, CONTEXT_MENU_TRIGGER, - Embeddable, EmbeddableStateTransfer, - ErrorEmbeddable, - isContextMenuTriggerContext, isMultiValueClickTriggerContext, isRangeSelectTriggerContext, isRowClickTriggerContext, @@ -41,12 +38,8 @@ export { export type { CellValueContext, ChartActionContext, - EmbeddableContext, EmbeddableEditorState, - EmbeddableInput, - EmbeddableOutput, EmbeddablePackageState, - IEmbeddable, MultiValueClickContext, PropertySpec, RangeSelectContext, diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable_error_handler.tsx b/src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable_error_handler.tsx deleted file mode 100644 index 33402bfb85e0d..0000000000000 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable_error_handler.tsx +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { isFunction } from 'lodash'; -import React, { ReactNode, useEffect, useRef, useState } from 'react'; -import { isPromise } from '@kbn/std'; -import type { MaybePromise } from '@kbn/utility-types'; -import type { ErrorLike } from '@kbn/expressions-plugin/common'; -import type { EmbeddableInput, EmbeddableOutput, IEmbeddable } from './i_embeddable'; - -type IReactEmbeddable = IEmbeddable>; - -interface EmbeddableErrorHandlerProps { - children: IReactEmbeddable['catchError']; - embeddable?: IReactEmbeddable; - error: ErrorLike | string; -} - -export function EmbeddableErrorHandler({ - children, - embeddable, - error, -}: EmbeddableErrorHandlerProps) { - const [node, setNode] = useState(); - const ref = useRef(null); - - useEffect(() => { - if (!ref.current) { - return; - } - - const handler = embeddable?.catchError?.bind(embeddable) ?? children; - if (!handler) { - return; - } - - const renderedNode = handler( - typeof error === 'string' ? { message: error, name: '' } : error, - ref.current - ); - if (isFunction(renderedNode)) { - return renderedNode; - } - if (isPromise(renderedNode)) { - renderedNode.then(setNode); - } else { - setNode(renderedNode); - } - }, [children, embeddable, error]); - - return

{node}
; -} diff --git a/src/platform/plugins/shared/embeddable/public/lib/index.ts b/src/platform/plugins/shared/embeddable/public/lib/index.ts index 60f8a3638816d..3c816f15095b3 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/index.ts +++ b/src/platform/plugins/shared/embeddable/public/lib/index.ts @@ -8,7 +8,6 @@ */ export * from './errors'; -export * from './embeddables'; export * from './types'; export * from './triggers'; export * from './state_transfer'; diff --git a/src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts b/src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts index 818c80283bf1c..cdebc6129afb6 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts +++ b/src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts @@ -12,14 +12,6 @@ import type { EmbeddableApiContext } from '@kbn/presentation-publishing'; import { Datatable, DatatableColumnMeta } from '@kbn/expressions-plugin/common'; import { Trigger, RowClickContext } from '@kbn/ui-actions-plugin/public'; import { BooleanRelation } from '@kbn/es-query'; -import { IEmbeddable } from '..'; - -/** - * @deprecated use `EmbeddableApiContext` from `@kbn/presentation-publishing` - */ -export interface EmbeddableContext { - embeddable: T; -} export type ValueClickContext = Partial & { data: { @@ -192,9 +184,3 @@ export const isRowClickTriggerContext = (context: ChartActionContext): context i !!context.data && typeof context.data === 'object' && typeof (context as RowClickContext).data.rowIndex === 'number'; - -export const isContextMenuTriggerContext = (context: unknown): context is EmbeddableContext => - !!context && - typeof context === 'object' && - !!(context as EmbeddableContext).embeddable && - typeof (context as EmbeddableContext).embeddable === 'object'; diff --git a/src/platform/plugins/shared/embeddable/tsconfig.json b/src/platform/plugins/shared/embeddable/tsconfig.json index aeb64ab3f2c32..54498ade512b6 100644 --- a/src/platform/plugins/shared/embeddable/tsconfig.json +++ b/src/platform/plugins/shared/embeddable/tsconfig.json @@ -12,7 +12,6 @@ "@kbn/utility-types", "@kbn/es-query", "@kbn/i18n", - "@kbn/std", "@kbn/expressions-plugin", "@kbn/saved-objects-management-plugin", "@kbn/saved-objects-tagging-oss-plugin", diff --git a/src/platform/plugins/shared/presentation_util/public/components/floating_actions/floating_actions.tsx b/src/platform/plugins/shared/presentation_util/public/components/floating_actions/floating_actions.tsx index ade106ae11098..4fcc0ef869c96 100644 --- a/src/platform/plugins/shared/presentation_util/public/components/floating_actions/floating_actions.tsx +++ b/src/platform/plugins/shared/presentation_util/public/components/floating_actions/floating_actions.tsx @@ -15,7 +15,6 @@ import { Subscription } from 'rxjs'; import { PANEL_HOVER_TRIGGER, panelHoverTrigger, - type EmbeddableInput, type ViewMode, } from '@kbn/embeddable-plugin/public'; import { apiHasUniqueId } from '@kbn/presentation-publishing'; @@ -31,7 +30,7 @@ export interface FloatingActionsProps { isEnabled?: boolean; api?: unknown; viewMode?: ViewMode; - disabledActions?: EmbeddableInput['disabledActions']; + disabledActions?: string[]; } export type FloatingActionItem = AnyApiAction & { diff --git a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json index 0e324ad0b4343..5b0712ac1e5a4 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json @@ -2753,6 +2753,137 @@ } } }, + "enterpriseSearchRedirect": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, "enterpriseSearchSemanticSearch": { "properties": { "appId": { diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts b/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts index 640a3bbb70391..8493c00d522b5 100644 --- a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts +++ b/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts @@ -8,12 +8,10 @@ */ import { i18n } from '@kbn/i18n'; -import { IEmbeddable } from '@kbn/embeddable-plugin/public'; +import type { EmbeddableApiContext } from '@kbn/presentation-publishing'; import { UiActionsPresentableGrouping as PresentableGrouping } from '@kbn/ui-actions-plugin/public'; -export const dynamicActionGrouping: PresentableGrouping<{ - embeddable?: IEmbeddable; -}> = [ +export const dynamicActionGrouping: PresentableGrouping = [ { id: 'dynamicActions', getDisplayName: () => diff --git a/src/plugins/visualizations/kibana.jsonc b/src/plugins/visualizations/kibana.jsonc index 8e8b492e99a0b..33817bed4357f 100644 --- a/src/plugins/visualizations/kibana.jsonc +++ b/src/plugins/visualizations/kibana.jsonc @@ -45,7 +45,8 @@ "kibanaUtils", "kibanaReact", "charts", - "savedObjects" + "savedObjects", + "presentationPanel" ], "extraPublicDirs": [ "common/constants", diff --git a/src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts b/src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts index 76acb5da63c53..843aa51731abc 100644 --- a/src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts +++ b/src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts @@ -7,7 +7,6 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import { ErrorEmbeddable } from '@kbn/embeddable-plugin/public'; import type { DataView } from '@kbn/data-views-plugin/public'; import { Vis } from '../../types'; import type { @@ -22,6 +21,7 @@ import { getHttp, getTimeFilter, getCapabilities } from '../../services'; import { urlFor } from '../../utils/saved_visualize_utils'; import { createVisualizeEmbeddableAsync } from './visualize_embeddable_async'; import { AttributeService } from './attribute_service'; +import { ErrorEmbeddable } from './error_embeddable'; /** @deprecated * VisualizeEmbeddable is no longer registered with the legacy embeddable system and is only diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts b/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts similarity index 98% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts rename to src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts index b4b8a2a1da920..80724cca7cd9f 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts +++ b/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts @@ -7,9 +7,8 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import { ViewMode } from '..'; import { KibanaExecutionContext } from '@kbn/core/types'; -import { EmbeddableInput } from '.'; +import { EmbeddableInput, ViewMode } from '@kbn/embeddable-plugin/common'; import { omitGenericEmbeddableInput, genericEmbeddableInputIsEqual } from './diff_embeddable_input'; const getGenericEmbeddableState = (state?: Partial): EmbeddableInput => { diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.ts b/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.ts similarity index 97% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.ts rename to src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.ts index ba55f098bba45..baf145152f72b 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/diff_embeddable_input.ts +++ b/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.ts @@ -9,7 +9,7 @@ import fastIsEqual from 'fast-deep-equal'; import { pick, omit } from 'lodash'; -import { EmbeddableInput } from '.'; +import type { EmbeddableInput } from '@kbn/embeddable-plugin/common'; // list out the keys from the EmbeddableInput type to allow lodash to pick them later const allGenericInputKeys: Readonly> = [ diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx b/src/plugins/visualizations/public/legacy/embeddable/embeddable.tsx similarity index 99% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx rename to src/plugins/visualizations/public/legacy/embeddable/embeddable.tsx index 3af13b3d998a3..738df6d3280ea 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/embeddable.tsx +++ b/src/plugins/visualizations/public/legacy/embeddable/embeddable.tsx @@ -14,8 +14,8 @@ import { merge } from 'rxjs'; import { debounceTime, distinctUntilChanged, map, skip } from 'rxjs'; import { RenderCompleteDispatcher } from '@kbn/kibana-utils-plugin/public'; import { Adapters } from '@kbn/inspector-plugin/public'; +import { EmbeddableInput, ViewMode } from '@kbn/embeddable-plugin/common'; import { EmbeddableError, EmbeddableOutput, IEmbeddable } from './i_embeddable'; -import { EmbeddableInput, ViewMode } from '../../../common/types'; import { genericEmbeddableInputIsEqual, omitGenericEmbeddableInput } from './diff_embeddable_input'; function getPanelTitle(input: EmbeddableInput, output: EmbeddableOutput) { diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.scss b/src/plugins/visualizations/public/legacy/embeddable/error_embeddable.scss similarity index 100% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.scss rename to src/plugins/visualizations/public/legacy/embeddable/error_embeddable.scss diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx b/src/plugins/visualizations/public/legacy/embeddable/error_embeddable.tsx similarity index 100% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/error_embeddable.tsx rename to src/plugins/visualizations/public/legacy/embeddable/error_embeddable.tsx diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts b/src/plugins/visualizations/public/legacy/embeddable/i_embeddable.ts similarity index 98% rename from src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts rename to src/plugins/visualizations/public/legacy/embeddable/i_embeddable.ts index 51a24527dd4aa..29bb089ceeef2 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/i_embeddable.ts +++ b/src/plugins/visualizations/public/legacy/embeddable/i_embeddable.ts @@ -10,7 +10,7 @@ import { ErrorLike } from '@kbn/expressions-plugin/common'; import { Adapters } from '@kbn/inspector-plugin/public'; import { Observable } from 'rxjs'; -import { EmbeddableInput } from '../../../common/types'; +import type { EmbeddableInput } from '@kbn/embeddable-plugin/common'; export type EmbeddableError = ErrorLike; export type { EmbeddableInput }; diff --git a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx b/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx index 1f631f30f8eb5..3f77ce9ecb661 100644 --- a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx +++ b/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx @@ -22,7 +22,7 @@ import type { DataView } from '@kbn/data-views-plugin/public'; import { Warnings } from '@kbn/charts-plugin/public'; import { hasUnsupportedDownsampledAggregationFailure } from '@kbn/search-response-warnings'; import { Adapters } from '@kbn/inspector-plugin/public'; -import { Embeddable, EmbeddableInput, EmbeddableOutput } from '@kbn/embeddable-plugin/public'; +import { EmbeddableInput } from '@kbn/embeddable-plugin/common'; import { SavedObjectEmbeddableInput } from '@kbn/embeddable-plugin/common'; import { ExpressionAstExpression, @@ -47,6 +47,8 @@ import { VisSavedObject } from '../../types'; import { toExpressionAst } from '../../embeddable/to_ast'; import { AttributeService } from './attribute_service'; import { VisualizationsStartDeps } from '../../plugin'; +import { Embeddable } from './embeddable'; +import { EmbeddableOutput } from './i_embeddable'; export interface VisualizeEmbeddableDeps { start: StartServicesGetter< diff --git a/src/plugins/visualizations/tsconfig.json b/src/plugins/visualizations/tsconfig.json index 51deaf4139aa2..32811524e65f7 100644 --- a/src/plugins/visualizations/tsconfig.json +++ b/src/plugins/visualizations/tsconfig.json @@ -73,7 +73,8 @@ "@kbn/search-response-warnings", "@kbn/embeddable-enhanced-plugin", "@kbn/content-management-utils", - "@kbn/react-hooks" + "@kbn/react-hooks", + "@kbn/presentation-panel-plugin" ], "exclude": ["target/**/*"] } diff --git a/test/server_integration/http/ssl_redirect/config.ts b/test/server_integration/http/ssl_redirect/config.ts index 4bf1c09e57ba8..558ab873ba2a6 100644 --- a/test/server_integration/http/ssl_redirect/config.ts +++ b/test/server_integration/http/ssl_redirect/config.ts @@ -58,6 +58,9 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { `--server.ssl.key=${KBN_KEY_PATH}`, `--server.ssl.certificate=${KBN_CERT_PATH}`, `--server.ssl.redirectHttpFromPort=${redirectPort}`, + // supertest is configured with http1 so it fails when redirecting + // to an http2 server + `--server.protocol=http1`, ], }, }; diff --git a/tsconfig.base.json b/tsconfig.base.json index e50940069a163..1f50e924d4510 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1498,8 +1498,8 @@ "@kbn/response-ops-feature-flag-service/*": ["packages/response-ops/feature_flag_service/*"], "@kbn/response-ops-rule-form": ["packages/response-ops/rule_form"], "@kbn/response-ops-rule-form/*": ["packages/response-ops/rule_form/*"], - "@kbn/response-ops-rule-params": ["src/platform/packages/private/response-ops/rule_params"], - "@kbn/response-ops-rule-params/*": ["src/platform/packages/private/response-ops/rule_params/*"], + "@kbn/response-ops-rule-params": ["src/platform/packages/shared/response-ops/rule_params"], + "@kbn/response-ops-rule-params/*": ["src/platform/packages/shared/response-ops/rule_params/*"], "@kbn/response-stream-plugin": ["examples/response_stream"], "@kbn/response-stream-plugin/*": ["examples/response_stream/*"], "@kbn/rison": ["src/platform/packages/shared/kbn-rison"], diff --git a/x-pack/examples/screenshotting_example/kibana.jsonc b/x-pack/examples/screenshotting_example/kibana.jsonc index 3519bc91caa66..127706ad42e3d 100644 --- a/x-pack/examples/screenshotting_example/kibana.jsonc +++ b/x-pack/examples/screenshotting_example/kibana.jsonc @@ -2,10 +2,6 @@ "type": "plugin", "id": "@kbn/screenshotting-example-plugin", "owner": "@elastic/appex-sharedux", - // This plugin is not meant to be referenced or imported - "visibility": "private", - // If cloned / used as an inspiration, please bear in mind that your plugin might belong to a specific solution group - "group": "platform", "description": "An example integration with the screenshotting plugin.", "plugin": { "id": "screenshottingExample", diff --git a/x-pack/platform/packages/shared/ai-assistant/icon/__stories__/beacon.stories.tsx b/x-pack/platform/packages/shared/ai-assistant/icon/__stories__/beacon.stories.tsx index b0a77f6cab3cb..4027b431110ac 100644 --- a/x-pack/platform/packages/shared/ai-assistant/icon/__stories__/beacon.stories.tsx +++ b/x-pack/platform/packages/shared/ai-assistant/icon/__stories__/beacon.stories.tsx @@ -19,6 +19,11 @@ export default { options: ['original', 's', 'm', 'l', 'xl', 'xxl'], defaultValue: 'xxl', }, + backgroundColor: { + control: 'select', + options: ['body', 'emptyShade', 'lightShade', 'darkShade'], + defaultValue: 'body', + }, }, } as ComponentMeta; diff --git a/x-pack/platform/packages/shared/ai-assistant/icon/avatar.styles.ts b/x-pack/platform/packages/shared/ai-assistant/icon/avatar.styles.ts deleted file mode 100644 index 3b9d0b40ef274..0000000000000 --- a/x-pack/platform/packages/shared/ai-assistant/icon/avatar.styles.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { useEuiTheme } from '@elastic/eui'; -import { css } from '@emotion/react'; - -export const useStyles = () => { - const { - euiTheme: { border, size }, - } = useEuiTheme(); - - const root = css` - border: ${border.thin}; - padding: ${size.xs}; - `; - - return { root }; -}; diff --git a/x-pack/platform/packages/shared/ai-assistant/icon/avatar.tsx b/x-pack/platform/packages/shared/ai-assistant/icon/avatar.tsx index 40142b8b30fa8..ce539979f202c 100644 --- a/x-pack/platform/packages/shared/ai-assistant/icon/avatar.tsx +++ b/x-pack/platform/packages/shared/ai-assistant/icon/avatar.tsx @@ -9,7 +9,6 @@ import React from 'react'; import { EuiAvatar, EuiAvatarProps } from '@elastic/eui'; import { AssistantIcon } from './icon'; -import { useStyles } from './avatar.styles'; /** * Avatar component for the AI Assistant. @@ -23,11 +22,9 @@ export type AssistantAvatarProps = Omit< * A `EuiAvatar` component customized for the AI Assistant. */ export const AssistantAvatar = ({ - css, color = 'plain', size = 'm', ...props }: AssistantAvatarProps) => { - const { root } = useStyles(); - return ; + return ; }; diff --git a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/welcome_message.tsx b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/welcome_message.tsx index 6133df55c57e0..555461de16d77 100644 --- a/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/welcome_message.tsx +++ b/x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/welcome_message.tsx @@ -80,7 +80,7 @@ export function WelcomeMessage({ className={fullHeightClassName} > - + diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx index 3aa0e2271beff..86bd31318349c 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx @@ -9,7 +9,7 @@ import React, { Dispatch, SetStateAction } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiText } from '@elastic/eui'; import { css } from '@emotion/react'; import { PromptResponse } from '@kbn/elastic-assistant-common'; -import { AssistantAnimatedIcon } from '../assistant_animated_icon'; +import { AssistantBeacon } from '@kbn/ai-assistant-icon'; import { SystemPrompt } from '../prompt_editor/system_prompt'; import { SetupKnowledgeBaseButton } from '../../knowledge_base/setup_knowledge_base_button'; import * as i18n from '../translations'; @@ -41,7 +41,7 @@ export const EmptyConvo: React.FC = ({ > - + diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx index 757f385db058c..6fc10341864f3 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx @@ -18,7 +18,7 @@ import { HttpSetup } from '@kbn/core-http-browser'; import { euiThemeVars } from '@kbn/ui-theme'; import { css } from '@emotion/react'; import { PromptResponse } from '@kbn/elastic-assistant-common'; -import { AssistantAnimatedIcon } from '../assistant_animated_icon'; +import { AssistantBeacon } from '@kbn/ai-assistant-icon'; import { EmptyConvo } from './empty_convo'; import { WelcomeSetup } from './welcome_setup'; import { Conversation } from '../../..'; @@ -102,7 +102,10 @@ export const AssistantBody: FunctionComponent = ({ {isLoading ? ( - } /> + } + /> ) : isWelcomeSetup ? ( = ({ data-test-subj="welcome-setup" > - + diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx index 03016f143b6b0..5c78ab2552ab4 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx @@ -8,9 +8,9 @@ import React, { useCallback, useEffect, useState } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiInlineEditTitle } from '@elastic/eui'; import { css } from '@emotion/react'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import { DataStreamApis } from '../use_data_stream_apis'; import type { Conversation } from '../../..'; -import { AssistantAvatar } from '../assistant_avatar/assistant_avatar'; import { useConversation } from '../use_conversation'; import { NEW_CHAT } from '../conversations/conversation_sidepanel/translations'; @@ -51,7 +51,7 @@ export const AssistantTitle: React.FC<{ return ( - + { test('returns correct hex code for low for 0 <= score < 3', () => { - expect(getSeverityColor(0)).toBe('#d2e9f7'); - expect(getSeverityColor(0.001)).toBe('#d2e9f7'); - expect(getSeverityColor(2.99)).toBe('#d2e9f7'); + expect(getSeverityColor(0)).toBe(ML_SEVERITY_COLORS.LOW); + expect(getSeverityColor(0.001)).toBe(ML_SEVERITY_COLORS.LOW); + expect(getSeverityColor(2.99)).toBe(ML_SEVERITY_COLORS.LOW); }); test('returns correct hex code for warning for 3 <= score < 25', () => { - expect(getSeverityColor(3)).toBe('#8bc8fb'); - expect(getSeverityColor(24.99)).toBe('#8bc8fb'); + expect(getSeverityColor(3)).toBe(ML_SEVERITY_COLORS.WARNING); + expect(getSeverityColor(24.99)).toBe(ML_SEVERITY_COLORS.WARNING); }); test('returns correct hex code for minor for 25 <= score < 50', () => { - expect(getSeverityColor(25)).toBe('#fdec25'); - expect(getSeverityColor(49.99)).toBe('#fdec25'); + expect(getSeverityColor(25)).toBe(ML_SEVERITY_COLORS.MINOR); + expect(getSeverityColor(49.99)).toBe(ML_SEVERITY_COLORS.MINOR); }); test('returns correct hex code for major for 50 <= score < 75', () => { - expect(getSeverityColor(50)).toBe('#fba740'); - expect(getSeverityColor(74.99)).toBe('#fba740'); + expect(getSeverityColor(50)).toBe(ML_SEVERITY_COLORS.MAJOR); + expect(getSeverityColor(74.99)).toBe(ML_SEVERITY_COLORS.MAJOR); }); test('returns correct hex code for critical for score >= 75', () => { - expect(getSeverityColor(75)).toBe('#fe5050'); - expect(getSeverityColor(100)).toBe('#fe5050'); - expect(getSeverityColor(1000)).toBe('#fe5050'); + expect(getSeverityColor(75)).toBe(ML_SEVERITY_COLORS.CRITICAL); + expect(getSeverityColor(100)).toBe(ML_SEVERITY_COLORS.CRITICAL); + expect(getSeverityColor(1000)).toBe(ML_SEVERITY_COLORS.CRITICAL); }); test('returns correct hex code for unknown for scores less than 0', () => { - expect(getSeverityColor(-10)).toBe('#ffffff'); + expect(getSeverityColor(-10)).toBe(ML_SEVERITY_COLORS.UNKNOWN); }); }); diff --git a/x-pack/platform/packages/shared/ml/anomaly_utils/get_severity_color.ts b/x-pack/platform/packages/shared/ml/anomaly_utils/get_severity_color.ts index f17609ecef5e7..dcc5ac3544e1b 100644 --- a/x-pack/platform/packages/shared/ml/anomaly_utils/get_severity_color.ts +++ b/x-pack/platform/packages/shared/ml/anomaly_utils/get_severity_color.ts @@ -9,7 +9,7 @@ import { ML_ANOMALY_THRESHOLD } from './anomaly_threshold'; import { ML_SEVERITY_COLORS } from './severity_colors'; /** - * Returns a severity RGB color (one of critical, major, minor, warning, low or blank) + * Returns a severity RGB color (one of critical, major, minor, warning, low or unknown) * for the supplied normalized anomaly score (a value between 0 and 100). * @param normalizedScore - A normalized score between 0-100, which is based on the probability of the anomalousness of this record */ @@ -25,6 +25,6 @@ export function getSeverityColor(normalizedScore: number): string { } else if (normalizedScore >= ML_ANOMALY_THRESHOLD.LOW) { return ML_SEVERITY_COLORS.LOW; } else { - return ML_SEVERITY_COLORS.BLANK; + return ML_SEVERITY_COLORS.UNKNOWN; } } diff --git a/x-pack/platform/packages/shared/ml/anomaly_utils/severity_colors.ts b/x-pack/platform/packages/shared/ml/anomaly_utils/severity_colors.ts index e871528463399..67cc59fe46a2b 100644 --- a/x-pack/platform/packages/shared/ml/anomaly_utils/severity_colors.ts +++ b/x-pack/platform/packages/shared/ml/anomaly_utils/severity_colors.ts @@ -38,5 +38,5 @@ export const ML_SEVERITY_COLORS = { /** * Color used in the UI to indicate an anomaly for which the score is unknown. */ - BLANK: '#ffffff', + UNKNOWN: '#ffffff', }; diff --git a/x-pack/platform/plugins/private/translations/translations/fr-FR.json b/x-pack/platform/plugins/private/translations/translations/fr-FR.json index d1d7c38033ed5..e8b9a9637f474 100644 --- a/x-pack/platform/plugins/private/translations/translations/fr-FR.json +++ b/x-pack/platform/plugins/private/translations/translations/fr-FR.json @@ -25485,7 +25485,6 @@ "xpack.ingestPipelines.pipelineEditor.uppercaseForm.fieldNameHelpText": "Champ à mettre en majuscules. Pour un tableau de chaînes, chaque élément est mis en majuscules.", "xpack.ingestPipelines.pipelineEditor.uriPartsForm.fieldNameHelpText": "Champ contenant la chaîne d'URI.", "xpack.ingestPipelines.pipelineEditor.urlDecodeForm.fieldNameHelpText": "Champ à décoder. Pour un tableau de chaînes, chaque élément est décodé.", - "xpack.ingestPipelines.pipelineEditor.useCopyFromLabel": "Utiliser le champ Copier à partir de", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameFieldText": "Extraire le type d'appareil", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameTooltipText": "Cette fonctionnalité est en version bêta et susceptible d'être modifiée.", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceTypeFieldHelpText": "Extrait le type d'appareil à partir de la chaîne d'agent utilisateur.", @@ -25494,7 +25493,6 @@ "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldHelpText": "Fichier contenant les expressions régulières utilisées pour analyser la chaîne d'agent utilisateur.", "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldLabel": "Fichier d'expression régulière (facultatif)", "xpack.ingestPipelines.pipelineEditor.userAgentForm.targetFieldHelpText": "Champ de sortie. La valeur par défaut est {defaultField}.", - "xpack.ingestPipelines.pipelineEditor.useValueLabel": "Utiliser le champ de valeur", "xpack.ingestPipelines.pipelineEditorItem.droppedStatusAriaLabel": "Abandonné", "xpack.ingestPipelines.pipelineEditorItem.errorIgnoredStatusAriaLabel": "Erreur ignorée", "xpack.ingestPipelines.pipelineEditorItem.errorStatusAriaLabel": "Erreur", @@ -36783,7 +36781,6 @@ "xpack.securitySolution.assetCriticality.csvUpload.expectedColumnsError": "Trois colonnes attendues, {rowLength} reçues", "xpack.securitySolution.assetCriticality.csvUpload.idTooLongError": "L’identificateur est trop long. Il devrait contenir moins de {maxChars} caractères, mais en contient {idLength}", "xpack.securitySolution.assetCriticality.csvUpload.invalidCriticalityError": "Niveau de criticité non valide \"{criticalityLevel}\", un des {validLevels} attendu", - "xpack.securitySolution.assetCriticality.csvUpload.invalidEntityTypeError": "Type d'entité \"{entityType}\" non valide, hôte ou utilisateur attendu", "xpack.securitySolution.assetCriticality.csvUpload.missingCriticalityError": "Niveau de criticité manquant", "xpack.securitySolution.assetCriticality.csvUpload.missingEntityTypeError": "Type d'entité manquant", "xpack.securitySolution.assetCriticality.csvUpload.missingIdError": "Identificateur manquant", diff --git a/x-pack/platform/plugins/private/translations/translations/ja-JP.json b/x-pack/platform/plugins/private/translations/translations/ja-JP.json index f5ac3a85279a6..3dbfd5adf0bfe 100644 --- a/x-pack/platform/plugins/private/translations/translations/ja-JP.json +++ b/x-pack/platform/plugins/private/translations/translations/ja-JP.json @@ -25344,7 +25344,6 @@ "xpack.ingestPipelines.pipelineEditor.uppercaseForm.fieldNameHelpText": "大文字にするフィールド。文字列の配列の場合、各エレメントが大文字にされます。", "xpack.ingestPipelines.pipelineEditor.uriPartsForm.fieldNameHelpText": "URI文字列を含むフィールド。", "xpack.ingestPipelines.pipelineEditor.urlDecodeForm.fieldNameHelpText": "デコードするフィールド。文字列の配列の場合、各エレメントがデコードされます。", - "xpack.ingestPipelines.pipelineEditor.useCopyFromLabel": "フィールドからコピーを使用", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameFieldText": "デバイスタイプを抽出", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameTooltipText": "この機能はベータ段階で、変更される可能性があります。", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceTypeFieldHelpText": "ユーザーエージェント文字列からデバイスタイプを抽出します。", @@ -25353,7 +25352,6 @@ "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldHelpText": "ユーザーエージェント文字列を解析するために使用される正規表現を含むファイル。", "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldLabel": "正規表現ファイル(任意)", "xpack.ingestPipelines.pipelineEditor.userAgentForm.targetFieldHelpText": "出力フィールド。デフォルトは{defaultField}です。", - "xpack.ingestPipelines.pipelineEditor.useValueLabel": "値フィールドを使用", "xpack.ingestPipelines.pipelineEditorItem.droppedStatusAriaLabel": "ドロップ", "xpack.ingestPipelines.pipelineEditorItem.errorIgnoredStatusAriaLabel": "エラーを無視", "xpack.ingestPipelines.pipelineEditorItem.errorStatusAriaLabel": "エラー", @@ -36642,7 +36640,6 @@ "xpack.securitySolution.assetCriticality.csvUpload.expectedColumnsError": "3列でなければなりませんが、{rowLength}列でした", "xpack.securitySolution.assetCriticality.csvUpload.idTooLongError": "識別子が長すぎます。{maxChars}未満でなければなりませんが、{idLength}でした", "xpack.securitySolution.assetCriticality.csvUpload.invalidCriticalityError": "無効な重要度レベル\"{criticalityLevel}\"です。{validLevels}のいずれかでなければなりません", - "xpack.securitySolution.assetCriticality.csvUpload.invalidEntityTypeError": "無効なエンティティタイプ\"{entityType}\"です。ホストまたはユーザーでなければなりません", "xpack.securitySolution.assetCriticality.csvUpload.missingCriticalityError": "重要度レベルがありません", "xpack.securitySolution.assetCriticality.csvUpload.missingEntityTypeError": "エンティティタイプがありません", "xpack.securitySolution.assetCriticality.csvUpload.missingIdError": "識別子がありません", diff --git a/x-pack/platform/plugins/private/translations/translations/zh-CN.json b/x-pack/platform/plugins/private/translations/translations/zh-CN.json index 998dd0392f5a2..aeff58a5582c4 100644 --- a/x-pack/platform/plugins/private/translations/translations/zh-CN.json +++ b/x-pack/platform/plugins/private/translations/translations/zh-CN.json @@ -24951,7 +24951,6 @@ "xpack.ingestPipelines.pipelineEditor.uppercaseForm.fieldNameHelpText": "要大写的字段。对于字符串数组,每个元素都为大写。", "xpack.ingestPipelines.pipelineEditor.uriPartsForm.fieldNameHelpText": "包含 URI 字符串的字段。", "xpack.ingestPipelines.pipelineEditor.urlDecodeForm.fieldNameHelpText": "要解码的字段。对于字符串数组,每个元素都要解码。", - "xpack.ingestPipelines.pipelineEditor.useCopyFromLabel": "使用复制位置字段", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameFieldText": "确切设备类型", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceNameTooltipText": "此功能为公测版,可能会进行更改。", "xpack.ingestPipelines.pipelineEditor.userAgentForm.extractDeviceTypeFieldHelpText": "从用户代理字符串中提取设备类型。", @@ -24960,7 +24959,6 @@ "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldHelpText": "包含用于解析用户代理字符串的正则表达式的文件。", "xpack.ingestPipelines.pipelineEditor.userAgentForm.regexFileFieldLabel": "正则表达式文件(可选)", "xpack.ingestPipelines.pipelineEditor.userAgentForm.targetFieldHelpText": "输出字段。默认为 {defaultField}。", - "xpack.ingestPipelines.pipelineEditor.useValueLabel": "使用值字段", "xpack.ingestPipelines.pipelineEditorItem.droppedStatusAriaLabel": "已丢弃", "xpack.ingestPipelines.pipelineEditorItem.errorIgnoredStatusAriaLabel": "错误已忽略", "xpack.ingestPipelines.pipelineEditorItem.errorStatusAriaLabel": "错误", diff --git a/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/bulk_edit/bulk_edit_rules.ts b/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/bulk_edit/bulk_edit_rules.ts index f7d83545ec193..4ef8a2284c47b 100644 --- a/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/bulk_edit/bulk_edit_rules.ts +++ b/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/bulk_edit/bulk_edit_rules.ts @@ -513,7 +513,7 @@ async function updateRuleAttributesAndParamsInMemory( // Increment revision if params ended up being modified AND it wasn't already incremented as part of attribute update if ( - shouldIncrementRevision(ruleParams) && + shouldIncrementRevision(ruleParams as Params) && !isParamsUpdateSkipped && rule.attributes.revision === updatedRule.revision ) { diff --git a/x-pack/platform/plugins/shared/cases/common/types/domain/connector/v1.ts b/x-pack/platform/plugins/shared/cases/common/types/domain/connector/v1.ts index 9d21f034d6397..6d422024a4b0b 100644 --- a/x-pack/platform/plugins/shared/cases/common/types/domain/connector/v1.ts +++ b/x-pack/platform/plugins/shared/cases/common/types/domain/connector/v1.ts @@ -66,13 +66,20 @@ const ConnectorResilientTypeFieldsRt = rt.strict({ * ServiceNow */ -export const ServiceNowITSMFieldsRt = rt.strict({ - impact: rt.union([rt.string, rt.null]), - severity: rt.union([rt.string, rt.null]), - urgency: rt.union([rt.string, rt.null]), - category: rt.union([rt.string, rt.null]), - subcategory: rt.union([rt.string, rt.null]), -}); +export const ServiceNowITSMFieldsRt = rt.intersection([ + rt.strict({ + impact: rt.union([rt.string, rt.null]), + severity: rt.union([rt.string, rt.null]), + urgency: rt.union([rt.string, rt.null]), + category: rt.union([rt.string, rt.null]), + subcategory: rt.union([rt.string, rt.null]), + }), + rt.exact( + rt.partial({ + additionalFields: rt.union([rt.string, rt.null]), + }) + ), +]); export type ServiceNowITSMFieldsType = rt.TypeOf; @@ -81,15 +88,22 @@ const ConnectorServiceNowITSMTypeFieldsRt = rt.strict({ fields: rt.union([ServiceNowITSMFieldsRt, rt.null]), }); -export const ServiceNowSIRFieldsRt = rt.strict({ - category: rt.union([rt.string, rt.null]), - destIp: rt.union([rt.boolean, rt.null]), - malwareHash: rt.union([rt.boolean, rt.null]), - malwareUrl: rt.union([rt.boolean, rt.null]), - priority: rt.union([rt.string, rt.null]), - sourceIp: rt.union([rt.boolean, rt.null]), - subcategory: rt.union([rt.string, rt.null]), -}); +export const ServiceNowSIRFieldsRt = rt.intersection([ + rt.strict({ + category: rt.union([rt.string, rt.null]), + destIp: rt.union([rt.boolean, rt.null]), + malwareHash: rt.union([rt.boolean, rt.null]), + malwareUrl: rt.union([rt.boolean, rt.null]), + priority: rt.union([rt.string, rt.null]), + sourceIp: rt.union([rt.boolean, rt.null]), + subcategory: rt.union([rt.string, rt.null]), + }), + rt.exact( + rt.partial({ + additionalFields: rt.union([rt.string, rt.null]), + }) + ), +]); export type ServiceNowSIRFieldsType = rt.TypeOf; diff --git a/x-pack/platform/plugins/shared/cases/public/components/configure_cases/flyout.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/configure_cases/flyout.test.tsx index 0920950ed65b2..57bd1ab0fa431 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/configure_cases/flyout.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/configure_cases/flyout.test.tsx @@ -682,6 +682,7 @@ describe('CommonFlyout ', () => { impact: null, category: 'software', subcategory: null, + additionalFields: null, }, }, settings: { diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/card.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/card.test.tsx index cdc658a29a404..725b2be28df48 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/card.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/card.test.tsx @@ -74,4 +74,32 @@ describe('ConnectorCard ', () => { expect(getByText(`${item.title}: ${item.description}`)).toBeInTheDocument(); } }); + + it('shows a codeblock when applicable', async () => { + render( + + ); + + expect(await screen.findByTestId('card-list-item')).toBeInTheDocument(); + expect(await screen.findByTestId('card-list-code-block')).toBeInTheDocument(); + }); + + it('does not show a codeblock when not necessary', async () => { + render( + + ); + + expect(await screen.findByTestId('card-list-item')).toBeInTheDocument(); + expect(screen.queryByTestId('card-list-code-block')).not.toBeInTheDocument(); + }); }); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/card.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/card.tsx index 47ca384d175e6..c4f0f53a8e208 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/card.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/card.tsx @@ -6,7 +6,14 @@ */ import React, { memo } from 'react'; -import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSkeletonText, EuiText } from '@elastic/eui'; +import { + EuiFlexGroup, + EuiFlexItem, + EuiIcon, + EuiSkeletonText, + EuiText, + EuiCodeBlock, +} from '@elastic/eui'; import type { ConnectorTypes } from '../../../common/types/domain'; import { useKibana } from '../../common/lib/kibana'; @@ -15,7 +22,7 @@ import { getConnectorIcon } from '../utils'; interface ConnectorCardProps { connectorType: ConnectorTypes; title: string; - listItems: Array<{ title: string; description: React.ReactNode }>; + listItems: Array<{ title: string; description: React.ReactNode; displayAsCodeBlock?: boolean }>; isLoading: boolean; } @@ -47,12 +54,28 @@ const ConnectorCardDisplay: React.FC = ({ {listItems.length > 0 && - listItems.map((item, i) => ( - - {`${item.title}: `} - {`${item.description}`} - - ))} + listItems.map((item, i) => + item.displayAsCodeBlock ? ( + <> + + {`${item.title}:`} + + + {`${item.description}`} + + + ) : ( + + {`${item.title}: `} + {`${item.description}`} + + ) + )} diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.test.tsx new file mode 100644 index 0000000000000..740baab98e3c0 --- /dev/null +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.test.tsx @@ -0,0 +1,80 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import React, { type ComponentProps } from 'react'; +import { render, screen, waitFor } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; + +import { JsonEditorField } from './json_editor_field'; +import { MockedCodeEditor } from '@kbn/code-editor-mock'; +import type { FieldHook } from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib'; +import type { MockedMonacoEditor } from '@kbn/code-editor-mock/monaco_mock'; + +jest.mock('@kbn/code-editor', () => { + const original = jest.requireActual('@kbn/code-editor'); + return { + ...original, + CodeEditor: (props: ComponentProps) => ( + + ), + }; +}); + +const setXJson = jest.fn(); +const XJson = { + useXJsonMode: (value: unknown) => ({ + convertToJson: (toJson: unknown) => toJson, + setXJson, + xJson: value, + }), +}; + +jest.mock('@kbn/es-ui-shared-plugin/public', () => { + const original = jest.requireActual('@kbn/es-ui-shared-plugin/public'); + return { + ...original, + XJson, + }; +}); + +describe('JsonEditorField', () => { + const setValue = jest.fn(); + const props = { + field: { + label: 'my label', + helpText: 'help', + value: 'foobar', + setValue, + errors: [], + } as unknown as FieldHook, + paramsProperty: 'myField', + label: 'label', + dataTestSubj: 'foobarTestSubj', + }; + + beforeEach(() => jest.resetAllMocks()); + + it('renders as expected', async () => { + render(); + + expect(await screen.findByTestId('foobarTestSubj')).toBeInTheDocument(); + expect(await screen.findByTestId('myFieldJsonEditor')).toBeInTheDocument(); + expect(await screen.findByText('my label')).toBeInTheDocument(); + }); + + it('calls setValue and xJson on editor change', async () => { + render(); + + await userEvent.click(await screen.findByTestId('myFieldJsonEditor')); + await userEvent.paste('JSON'); + + await waitFor(() => { + expect(setValue).toBeCalledWith('foobarJSON'); + }); + + expect(setXJson).toBeCalledWith('foobarJSON'); + }); +}); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.tsx new file mode 100644 index 0000000000000..c0d425d35de28 --- /dev/null +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/json_editor_field.tsx @@ -0,0 +1,106 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React, { useCallback, useEffect } from 'react'; +import { EuiFormRow } from '@elastic/eui'; + +import { XJsonLang } from '@kbn/monaco'; + +import { XJson } from '@kbn/es-ui-shared-plugin/public'; +import { CodeEditor } from '@kbn/code-editor'; + +import { + getFieldValidityAndErrorMessage, + type FieldHook, +} from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib'; +import { i18n } from '@kbn/i18n'; + +interface Props { + field: FieldHook; + paramsProperty: string; + ariaLabel?: string; + onBlur?: () => void; + dataTestSubj?: string; + euiCodeEditorProps?: { [key: string]: unknown }; +} + +const { useXJsonMode } = XJson; + +export const JsonEditorField: React.FunctionComponent = ({ + field, + paramsProperty, + ariaLabel, + dataTestSubj, + euiCodeEditorProps = {}, +}) => { + const { label: fieldLabel, helpText, value: inputTargetValue, setValue } = field; + const { errorMessage } = getFieldValidityAndErrorMessage(field); + + const onDocumentsChange = useCallback( + (updatedJson: string) => { + setValue(updatedJson); + }, + [setValue] + ); + const errors = errorMessage ? [errorMessage] : []; + + const label = + fieldLabel ?? + i18n.translate('xpack.cases.jsonEditorField.defaultLabel', { + defaultMessage: 'JSON Editor', + }); + + const { convertToJson, setXJson, xJson } = useXJsonMode(inputTargetValue ?? null); + + useEffect(() => { + if (!xJson && inputTargetValue) { + setXJson(inputTargetValue); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [inputTargetValue]); + + return ( + 0 && inputTargetValue !== undefined} + label={label} + helpText={helpText} + > + { + setXJson(xjson); + // Keep the documents in sync with the editor content + onDocumentsChange(convertToJson(xjson)); + }} + /> + + ); +}; + +JsonEditorField.displayName = 'JsonEditorField'; diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx index c807152ba84a9..fbdbf60d507fb 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx @@ -20,10 +20,15 @@ jest.mock('../../../common/lib/kibana'); jest.mock('./use_get_choices'); const useGetChoicesMock = useGetChoices as jest.Mock; -let appMockRenderer: AppMockRenderer; +useGetChoicesMock.mockReturnValue({ + isLoading: false, + isFetching: false, + data: { data: choices }, +}); describe('ServiceNowITSM Fields', () => { let user: UserEvent; + const appMockRenderer: AppMockRenderer = createAppMockRenderer(); beforeAll(() => { jest.useFakeTimers(); @@ -39,6 +44,7 @@ describe('ServiceNowITSM Fields', () => { impact: '3', category: 'software', subcategory: 'os', + additionalFields: '', }; beforeEach(() => { @@ -46,12 +52,9 @@ describe('ServiceNowITSM Fields', () => { user = userEvent.setup({ advanceTimers: jest.advanceTimersByTime, }); - appMockRenderer = createAppMockRenderer(); - useGetChoicesMock.mockReturnValue({ - isLoading: false, - isFetching: false, - data: { data: choices }, - }); + }); + + afterEach(() => { jest.clearAllMocks(); }); @@ -62,11 +65,12 @@ describe('ServiceNowITSM Fields', () => { ); - expect(await screen.findByTestId('severitySelect')).toBeInTheDocument(); - expect(await screen.findByTestId('urgencySelect')).toBeInTheDocument(); - expect(await screen.findByTestId('impactSelect')).toBeInTheDocument(); - expect(await screen.findByTestId('categorySelect')).toBeInTheDocument(); - expect(await screen.findByTestId('subcategorySelect')).toBeInTheDocument(); + expect(screen.getByTestId('severitySelect')).toBeInTheDocument(); + expect(screen.getByTestId('urgencySelect')).toBeInTheDocument(); + expect(screen.getByTestId('impactSelect')).toBeInTheDocument(); + expect(screen.getByTestId('categorySelect')).toBeInTheDocument(); + expect(screen.getByTestId('subcategorySelect')).toBeInTheDocument(); + expect(screen.getByTestId('additionalFieldsEditor')).toBeInTheDocument(); }); it('transforms the categories to options correctly', async () => { @@ -76,11 +80,13 @@ describe('ServiceNowITSM Fields', () => { ); - expect(await screen.findByRole('option', { name: 'Privilege Escalation' })); - expect(await screen.findByRole('option', { name: 'Criminal activity/investigation' })); - expect(await screen.findByRole('option', { name: 'Denial of Service' })); - expect(await screen.findByRole('option', { name: 'Software' })); - expect(await screen.findByRole('option', { name: 'Failed Login' })); + const categorySelect = screen.getByTestId('categorySelect'); + + expect(within(categorySelect).getByRole('option', { name: 'Privilege Escalation' })); + expect(within(categorySelect).getByRole('option', { name: 'Criminal activity/investigation' })); + expect(within(categorySelect).getByRole('option', { name: 'Denial of Service' })); + expect(within(categorySelect).getByRole('option', { name: 'Software' })); + expect(within(categorySelect).getByRole('option', { name: 'Failed Login' })); }); it('transforms the subcategories to options correctly', async () => { diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx index 7d6981fda05e4..75a33a1bc21b5 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx @@ -22,6 +22,8 @@ import { useGetChoices } from './use_get_choices'; import type { Fields } from './types'; import { choicesToEuiOptions } from './helpers'; import { DeprecatedCallout } from '../deprecated_callout'; +import { validateJSON } from './validate_json'; +import { JsonEditorField } from './json_editor_field'; const choicesToGet = ['urgency', 'severity', 'impact', 'category', 'subcategory']; const defaultFields: Fields = { @@ -205,6 +207,33 @@ const ServiceNowITSMFieldsComponent: React.FunctionComponent + + + + + ); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.test.tsx index bffb0f2d0500d..27f5670e47071 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.test.tsx @@ -26,6 +26,7 @@ describe('ServiceNowITSM Fields: Preview', () => { impact: '3', category: 'Denial of Service', subcategory: '12', + additionalFields: '{"foo": "bar"}', }; let appMockRenderer: AppMockRenderer; @@ -50,5 +51,7 @@ describe('ServiceNowITSM Fields: Preview', () => { expect(getByText('Impact: 3 - Moderate')).toBeInTheDocument(); expect(getByText('Category: Denial of Service')).toBeInTheDocument(); expect(getByText('Subcategory: Inbound or outbound')).toBeInTheDocument(); + expect(getByText('Additional Fields:')).toBeInTheDocument(); + expect(getByText('{"foo": "bar"}')).toBeInTheDocument(); }); }); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.tsx index c88960b15f94f..8c1b4fd4f86fb 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields_preview.tsx @@ -37,6 +37,7 @@ const ServiceNowITSMFieldsPreviewComponent: React.FunctionComponent< impact = null, category = null, subcategory = null, + additionalFields = null, } = fields ?? {}; const { http } = useKibana().services; @@ -134,8 +135,18 @@ const ServiceNowITSMFieldsPreviewComponent: React.FunctionComponent< }, ] : []), + ...(additionalFields != null && additionalFields.length > 0 + ? [ + { + title: i18n.ADDITIONAL_FIELDS_LABEL, + description: additionalFields, + displayAsCodeBlock: true, + }, + ] + : []), ], [ + additionalFields, category, categoryOptions, impact, diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx index f60a06521c472..ee7719f14547f 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx @@ -32,6 +32,7 @@ describe('ServiceNowSIR Fields', () => { priority: '1', category: 'Denial of Service', subcategory: '26', + additionalFields: '{}', }; beforeAll(() => { @@ -68,6 +69,7 @@ describe('ServiceNowSIR Fields', () => { expect(screen.getByTestId('prioritySelect')).toBeInTheDocument(); expect(screen.getByTestId('categorySelect')).toBeInTheDocument(); expect(screen.getByTestId('subcategorySelect')).toBeInTheDocument(); + expect(screen.getByTestId('additionalFieldsEditor')).toBeInTheDocument(); }); it('transforms the categories to options correctly', async () => { diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx index e07fcc204c9da..5b90bd753c4d3 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx @@ -23,6 +23,8 @@ import { choicesToEuiOptions } from './helpers'; import * as i18n from './translations'; import { DeprecatedCallout } from '../deprecated_callout'; +import { validateJSON } from './validate_json'; +import { JsonEditorField } from './json_editor_field'; const choicesToGet = ['category', 'subcategory', 'priority']; const defaultFields: Fields = { @@ -223,6 +225,33 @@ const ServiceNowSIRFieldsComponent: React.FunctionComponent + + + + + ); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.test.tsx index 7a0cce7ae4e9d..4d5eb24bb8ffd 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.test.tsx @@ -28,6 +28,7 @@ describe('ServiceNowITSM Fields: Preview', () => { priority: '2', category: 'Denial of Service', subcategory: '12', + additionalFields: '{"foo": "bar"}', }; let appMockRenderer: AppMockRenderer; @@ -54,5 +55,7 @@ describe('ServiceNowITSM Fields: Preview', () => { expect(getByText('Priority: 2 - High')).toBeInTheDocument(); expect(getByText('Category: Denial of Service')).toBeInTheDocument(); expect(getByText('Subcategory: Inbound or outbound')).toBeInTheDocument(); + expect(getByText('Additional Fields:')).toBeInTheDocument(); + expect(getByText('{"foo": "bar"}')).toBeInTheDocument(); }); }); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.tsx b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.tsx index e89bff6251718..a84654c0bbaac 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/servicenow_sir_case_fields_preview.tsx @@ -38,6 +38,7 @@ const ServiceNowSIRFieldsPreviewComponent: React.FunctionComponent< priority = null, sourceIp = true, subcategory = null, + additionalFields = null, } = fields ?? {}; const { http } = useKibana().services; @@ -140,6 +141,15 @@ const ServiceNowSIRFieldsPreviewComponent: React.FunctionComponent< }, ] : []), + ...(additionalFields != null && additionalFields.length > 0 + ? [ + { + title: i18n.ADDITIONAL_FIELDS_LABEL, + description: additionalFields, + displayAsCodeBlock: true, + }, + ] + : []), ], [ category, @@ -152,6 +162,7 @@ const ServiceNowSIRFieldsPreviewComponent: React.FunctionComponent< sourceIp, subcategory, subcategoryOptions, + additionalFields, ] ); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/translations.ts b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/translations.ts index d9ed86b594ecc..50f7c9679ccfb 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/translations.ts +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/translations.ts @@ -73,3 +73,23 @@ export const ALERT_FIELD_ENABLED_TEXT = i18n.translate( defaultMessage: 'Yes', } ); + +export const ADDITIONAL_FIELDS_LABEL = i18n.translate( + 'xpack.cases.connectors.serviceNow.additionalFieldsLabel', + { + defaultMessage: 'Additional Fields', + } +); + +export const INVALID_JSON_FORMAT = i18n.translate( + 'xpack.cases.connectors.serviceNow.additionalFieldsFormatErrorMessage', + { + defaultMessage: 'Invalid JSON.', + } +); + +export const MAX_ATTRIBUTES_ERROR = (length: number) => + i18n.translate('xpack.cases.connectors.serviceNow.additionalFieldsLengthError', { + values: { length }, + defaultMessage: 'A maximum of {length} additional fields can be defined at a time.', + }); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.test.ts b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.test.ts new file mode 100644 index 0000000000000..7ae94e8adf3b2 --- /dev/null +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.test.ts @@ -0,0 +1,70 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { ValidationFuncArg } from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib/types'; +import { validateJSON } from './validate_json'; + +describe('validateJSON', () => { + const formData = {} as ValidationFuncArg; + + it('does not return an error for valid JSON with less than maxProperties', () => { + expect(validateJSON({ ...formData, value: JSON.stringify({ foo: 'test' }) })).toBeUndefined(); + }); + + it('does not return an error with an empty string value', () => { + expect(validateJSON({ ...formData, value: '' })).toBeUndefined(); + }); + + it('does not return an error with undefined value', () => { + expect(validateJSON(formData)).toBeUndefined(); + }); + + it('does not return an error with a null value', () => { + expect(validateJSON({ ...formData, value: null })).toBeUndefined(); + }); + + it('validates syntax errors correctly', () => { + expect(validateJSON({ ...formData, value: 'foo' })).toEqual({ + code: 'ERR_JSON_FORMAT', + message: 'Invalid JSON.', + }); + }); + + it('validates a string with spaces correctly', () => { + expect(validateJSON({ ...formData, value: ' ' })).toEqual({ + code: 'ERR_JSON_FORMAT', + message: 'Invalid JSON.', + }); + }); + + it('validates max properties correctly', () => { + let value = '{"a":"1"'; + for (let i = 0; i < 10; i += 1) { + value = `${value}, "${i}": "foobar"`; + } + value += '}'; + + expect(validateJSON({ ...formData, value })).toEqual({ + code: 'ERR_JSON_FORMAT', + message: 'A maximum of 10 additional fields can be defined at a time.', + }); + }); + + it('throws when a non object string is found', () => { + expect(validateJSON({ ...formData, value: '"foobar"' })).toEqual({ + code: 'ERR_JSON_FORMAT', + message: 'Invalid JSON.', + }); + }); + + it('throws when a non object empty string is found', () => { + expect(validateJSON({ ...formData, value: '""' })).toEqual({ + code: 'ERR_JSON_FORMAT', + message: 'Invalid JSON.', + }); + }); +}); diff --git a/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.ts b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.ts new file mode 100644 index 0000000000000..369663e078919 --- /dev/null +++ b/x-pack/platform/plugins/shared/cases/public/components/connectors/servicenow/validate_json.ts @@ -0,0 +1,41 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { ValidationFunc } from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib'; +import { isEmpty, isObject } from 'lodash'; +import * as i18n from './translations'; + +const MAX_ADDITIONAL_FIELDS_LENGTH = 10; + +export const validateJSON = (...args: Parameters): ReturnType => { + const [{ value }] = args; + + try { + if (typeof value === 'string' && !isEmpty(value)) { + const parsedJSON = JSON.parse(value); + + if (!isObject(parsedJSON)) { + return { + code: 'ERR_JSON_FORMAT', + message: i18n.INVALID_JSON_FORMAT, + }; + } + + if (Object.keys(parsedJSON).length > MAX_ADDITIONAL_FIELDS_LENGTH) { + return { + code: 'ERR_JSON_FORMAT', + message: i18n.MAX_ATTRIBUTES_ERROR(MAX_ADDITIONAL_FIELDS_LENGTH), + }; + } + } + } catch (error) { + return { + code: 'ERR_JSON_FORMAT', + message: i18n.INVALID_JSON_FORMAT, + }; + } +}; diff --git a/x-pack/platform/plugins/shared/cases/public/components/create/form_context.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/create/form_context.test.tsx index 252726ef559c9..de3f5223fd16d 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/create/form_context.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/create/form_context.test.tsx @@ -618,6 +618,7 @@ describe('Create case', () => { urgency: null, category: null, subcategory: null, + additionalFields: null, }, id: 'servicenow-1', name: 'My SN connector', @@ -818,7 +819,7 @@ describe('Create case', () => { }); await user.selectOptions(screen.getByTestId('severitySelect'), '4 - Low'); - expect(screen.getByTestId('severitySelect')).toHaveValue('4'); + expect(await screen.findByTestId('severitySelect')).toHaveValue('4'); await user.click(screen.getByTestId('dropdown-connectors')); await user.click(screen.getByTestId('dropdown-connector-servicenow-2')); @@ -836,6 +837,7 @@ describe('Create case', () => { impact: null, severity: null, urgency: null, + additionalFields: null, }, id: 'servicenow-2', name: 'My SN connector 2', diff --git a/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.test.tsx index 04604ecfa60b3..69aabef03d7c4 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.test.tsx @@ -44,6 +44,7 @@ describe('ConnectorsForm ', () => { impact: '2', category: 'Denial of Service', subcategory: '12', + additionalFields: '{}', }, }, 'resilient-2': { @@ -90,17 +91,13 @@ describe('ConnectorsForm ', () => { it('sets the selected connector correctly', async () => { appMockRender.render(); - await waitFor(() => { - expect(screen.getByText('My SN connector')).toBeInTheDocument(); - }); + expect(screen.getByText('My SN connector')).toBeInTheDocument(); }); it('sets the fields for the selected connector correctly', async () => { appMockRender.render(); - await waitFor(() => { - expect(screen.getByTestId('connector-fields-sn-itsm')).toBeInTheDocument(); - }); + expect(screen.getByTestId('connector-fields-sn-itsm')).toBeInTheDocument(); const severitySelect = screen.getByTestId('severitySelect'); const urgencySelect = screen.getByTestId('urgencySelect'); @@ -163,6 +160,7 @@ describe('ConnectorsForm ', () => { impact: '2', category: 'Denial of Service', subcategory: '12', + additionalFields: '{}', }, }); }); @@ -367,17 +365,13 @@ describe('ConnectorsForm ', () => { /> ); - await waitFor(() => { - expect(screen.getByText('My SN connector')).toBeInTheDocument(); - }); + expect(await screen.findByText('My SN connector')).toBeInTheDocument(); await userEvent.click(screen.getByTestId('dropdown-connectors')); await waitForEuiPopoverOpen(); await userEvent.click(screen.getByTestId('dropdown-connector-servicenow-2')); - await waitFor(() => { - expect(screen.getByText('My SN connector 2')).toBeInTheDocument(); - }); + expect(await screen.findByText('My SN connector 2')).toBeInTheDocument(); await userEvent.click(screen.getByTestId('edit-connectors-submit')); @@ -389,6 +383,7 @@ describe('ConnectorsForm ', () => { impact: null, severity: null, urgency: null, + additionalFields: null, }, id: 'servicenow-2', name: 'My SN connector 2', diff --git a/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.tsx b/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.tsx index 2cbe8c185061b..04ed2d8520919 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/edit_connector/connectors_form.tsx @@ -13,7 +13,7 @@ import { useFormData, } from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib'; import React, { useCallback, useMemo } from 'react'; -import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { NONE_CONNECTOR_ID } from '../../../common/constants'; import type { CaseConnectors, CaseUI } from '../../../common/ui/types'; import { ConnectorFieldsForm } from '../connectors/fields_form'; @@ -141,6 +141,7 @@ const ConnectorsFormComponent: React.FC = ({ + diff --git a/x-pack/platform/plugins/shared/cases/server/client/cases/utils.test.ts b/x-pack/platform/plugins/shared/cases/server/client/cases/utils.test.ts index c6c9f1063df60..f8e07522c46b8 100644 --- a/x-pack/platform/plugins/shared/cases/server/client/cases/utils.test.ts +++ b/x-pack/platform/plugins/shared/cases/server/client/cases/utils.test.ts @@ -141,6 +141,7 @@ describe('utils', () => { expect(res).toEqual({ incident: { + additional_fields: null, category: null, subcategory: null, correlation_display: 'Elastic Case', @@ -174,6 +175,7 @@ describe('utils', () => { expect(res).toEqual({ incident: { + additional_fields: null, category: null, subcategory: null, correlation_display: 'Elastic Case', diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.test.ts b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.test.ts index 3841d15f8aa90..fedaae941b703 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.test.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.test.ts @@ -12,14 +12,27 @@ describe('ITSM formatter', () => { const theCase = { id: 'case-id', connector: { - fields: { severity: '2', urgency: '2', impact: '2', category: 'software', subcategory: 'os' }, + fields: { + severity: '2', + urgency: '2', + impact: '2', + category: 'software', + subcategory: 'os', + additionalFields: '{}', + }, }, } as Case; it('it formats correctly', async () => { const res = await format(theCase, []); + expect(res).toEqual({ - ...theCase.connector.fields, + severity: '2', + urgency: '2', + impact: '2', + category: 'software', + subcategory: 'os', + additional_fields: '{}', correlation_display: 'Elastic Case', correlation_id: 'case-id', }); @@ -29,6 +42,7 @@ describe('ITSM formatter', () => { const invalidFields = { connector: { fields: null } } as Case; const res = await format(invalidFields, []); expect(res).toEqual({ + additional_fields: null, severity: null, urgency: null, impact: null, diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.ts b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.ts index 2063bd49e1eff..dae920d0f09ca 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/itsm_format.ts @@ -15,6 +15,7 @@ export const format: ServiceNowITSMFormat = (theCase, alerts) => { impact = null, category = null, subcategory = null, + additionalFields = null, } = (theCase.connector.fields as ConnectorServiceNowITSMTypeFields['fields']) ?? {}; return { severity, @@ -22,6 +23,7 @@ export const format: ServiceNowITSMFormat = (theCase, alerts) => { impact, category, subcategory, + additional_fields: additionalFields, correlation_id: theCase.id ?? null, correlation_display: 'Elastic Case', }; diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.test.ts b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.test.ts index fec26c9b032f2..268ffd2873c73 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.test.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.test.ts @@ -20,6 +20,7 @@ describe('SIR formatter', () => { malwareHash: true, malwareUrl: true, priority: '2 - High', + additionalFields: '{"foo": "bar"}', }, }, } as Case; @@ -36,6 +37,7 @@ describe('SIR formatter', () => { priority: '2 - High', correlation_display: 'Elastic Case', correlation_id: 'case-id', + additional_fields: '{"foo": "bar"}', }); }); @@ -52,6 +54,7 @@ describe('SIR formatter', () => { priority: null, correlation_display: 'Elastic Case', correlation_id: null, + additional_fields: null, }); }); @@ -92,6 +95,7 @@ describe('SIR formatter', () => { priority: '2 - High', correlation_display: 'Elastic Case', correlation_id: 'case-id', + additional_fields: '{"foo": "bar"}', }); }); @@ -129,6 +133,7 @@ describe('SIR formatter', () => { priority: '2 - High', correlation_display: 'Elastic Case', correlation_id: 'case-id', + additional_fields: '{"foo": "bar"}', }); }); @@ -172,6 +177,7 @@ describe('SIR formatter', () => { priority: '2 - High', correlation_display: 'Elastic Case', correlation_id: 'case-id', + additional_fields: '{"foo": "bar"}', }); }); }); diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.ts b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.ts index 810a9a11d0e54..259ddbe46b10f 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/sir_format.ts @@ -17,6 +17,7 @@ export const format: ServiceNowSIRFormat = (theCase, alerts) => { malwareHash = null, malwareUrl = null, priority = null, + additionalFields = null, } = (theCase.connector.fields as ConnectorServiceNowSIRTypeFields['fields']) ?? {}; const alertFieldMapping: AlertFieldMappingAndValues = { destIp: { alertPath: 'destination.ip', sirFieldKey: 'dest_ip', add: !!destIp }, @@ -72,6 +73,7 @@ export const format: ServiceNowSIRFormat = (theCase, alerts) => { category, subcategory, priority, + additional_fields: additionalFields, correlation_id: theCase.id ?? null, correlation_display: 'Elastic Case', }; diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/types.ts b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/types.ts index 7e0c0330c2dea..942ba5591d8f3 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/types.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/servicenow/types.ts @@ -5,7 +5,6 @@ * 2.0. */ -import type { ServiceNowITSMFieldsType } from '../../../common/types/domain'; import type { ICasesConnector } from '../types'; interface CorrelationValues { @@ -13,6 +12,7 @@ interface CorrelationValues { correlation_display: string | null; } +// ServiceNow SIR export interface ServiceNowSIRFieldsType extends CorrelationValues { dest_ip: string[] | null; source_ip: string[] | null; @@ -21,6 +21,7 @@ export interface ServiceNowSIRFieldsType extends CorrelationValues { malware_hash: string[] | null; malware_url: string[] | null; priority: string | null; + additional_fields: string | null; } export type SirFieldKey = 'dest_ip' | 'source_ip' | 'malware_hash' | 'malware_url'; @@ -30,11 +31,19 @@ export type AlertFieldMappingAndValues = Record< >; // ServiceNow ITSM -export type ServiceNowITSMCasesConnector = ICasesConnector; -export type ServiceNowITSMFormat = ICasesConnector< - ServiceNowITSMFieldsType & CorrelationValues ->['format']; -export type ServiceNowITSMGetMapping = ICasesConnector['getMapping']; +export interface ServiceNowITSMFieldsTypeConnector extends CorrelationValues { + impact: string | null; + severity: string | null; + urgency: string | null; + category: string | null; + subcategory: string | null; + additional_fields: string | null; +} + +export type ServiceNowITSMCasesConnector = ICasesConnector; +export type ServiceNowITSMFormat = ICasesConnector['format']; +export type ServiceNowITSMGetMapping = + ICasesConnector['getMapping']; // ServiceNow SIR export type ServiceNowSIRCasesConnector = ICasesConnector; diff --git a/x-pack/platform/plugins/shared/cases/tsconfig.json b/x-pack/platform/plugins/shared/cases/tsconfig.json index 9a334a1df1828..5368aa8418ef3 100644 --- a/x-pack/platform/plugins/shared/cases/tsconfig.json +++ b/x-pack/platform/plugins/shared/cases/tsconfig.json @@ -79,6 +79,9 @@ "@kbn/cloud-plugin", "@kbn/core-http-server-mocks", "@kbn/core-http-server-utils", + "@kbn/code-editor-mock", + "@kbn/monaco", + "@kbn/code-editor", ], "exclude": [ "target/**/*", diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx index ec87383456e80..7c2ef37dcdb1f 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx @@ -228,7 +228,6 @@ export function useFetchAgentsData() { full: false, }), sendGetAgentTags({ - kuery: kuery && kuery !== '' ? kuery : undefined, showInactive, }), sendGetActionStatus({ diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx index 51119dabf4cf9..42256b1e9d23d 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx @@ -33,6 +33,7 @@ import { useStartServices, useUpgradePackagePolicyDryRunQuery, useUpdatePackageMutation, + useAuthz, } from '../../../../../hooks'; import { PACKAGE_POLICY_SAVED_OBJECT_TYPE, @@ -118,6 +119,7 @@ interface Props { export const SettingsPage: React.FC = memo( ({ packageInfo, packageMetadata, startServices }: Props) => { + const authz = useAuthz(); const { name, title, latestVersion, version, keepPoliciesUpToDate } = packageInfo; const [isUpgradingPackagePolicies, setIsUpgradingPackagePolicies] = useState(false); const [isChangelogModalOpen, setIsChangelogModalOpen] = useState(false); @@ -160,8 +162,11 @@ export const SettingsPage: React.FC = memo( }, [name]); const isShowKeepPoliciesUpToDateSwitchDisabled = useMemo(() => { - return AUTO_UPGRADE_POLICIES_PACKAGES.some((pkg) => pkg.name === name); - }, [name]); + return ( + !authz.integrations.writePackageSettings || + AUTO_UPGRADE_POLICIES_PACKAGES.some((pkg) => pkg.name === name) + ); + }, [authz.integrations.writePackageSettings, name]); const [keepPoliciesUpToDateSwitchValue, setKeepPoliciesUpToDateSwitchValue] = useState( keepPoliciesUpToDate ?? false diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/pipeline_processors_editor.test.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/pipeline_processors_editor.test.tsx index 90bba1b4ed14a..ba2964bab8039 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/pipeline_processors_editor.test.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/pipeline_processors_editor.test.tsx @@ -144,7 +144,7 @@ describe('Pipeline Editor', () => { // Open the edit processor form for the set processor actions.openProcessorEditor('processors>2'); expect(exists('editProcessorForm')).toBeTruthy(); - form.setInputValue('editProcessorForm.valueFieldInput', 'test44'); + form.setInputValue('editProcessorForm.textValueField.input', 'test44'); jest.advanceTimersByTime(0); // advance timers to allow the form to validate await actions.submitProcessorForm(); const [onUpdateResult] = onUpdate.mock.calls[onUpdate.mock.calls.length - 1]; @@ -175,7 +175,7 @@ describe('Pipeline Editor', () => { // Change its type to `append` and set the missing required fields await actions.setProcessorType('append'); await act(async () => { - find('appendValueField.input').simulate('change', [{ label: 'some_value' }]); + find('comboxValueField.input').simulate('change', [{ label: 'some_value' }]); }); component.update(); diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/append.test.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/append.test.tsx index 95dafec27b6aa..73a1de0e4b6ab 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/append.test.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/append.test.tsx @@ -75,7 +75,7 @@ describe('Processor: Append', () => { form.setInputValue('fieldNameField.input', 'field_1'); await act(async () => { - find('appendValueField.input').simulate('change', [{ label: 'Some_Value' }]); + find('comboxValueField.input').simulate('change', [{ label: 'Some_Value' }]); }); component.update(); @@ -102,7 +102,7 @@ describe('Processor: Append', () => { // Set optional parameteres await act(async () => { - find('appendValueField.input').simulate('change', [{ label: 'Some_Value' }]); + find('comboxValueField.input').simulate('change', [{ label: 'Some_Value' }]); component.update(); }); form.toggleEuiSwitch('allowDuplicatesSwitch.input'); @@ -134,14 +134,14 @@ describe('Processor: Append', () => { // Shouldn't be able to set media_type if value is not a template string await act(async () => { - find('appendValueField.input').simulate('change', [{ label: 'value_1' }]); + find('comboxValueField.input').simulate('change', [{ label: 'value_1' }]); }); component.update(); expect(exists('mediaTypeSelectorField')).toBe(false); // Set value to a template snippet and media_type to a non-default value await act(async () => { - find('appendValueField.input').simulate('change', [{ label: '{{{value_2}}}' }]); + find('comboxValueField.input').simulate('change', [{ label: '{{{value_2}}}' }]); }); component.update(); form.setSelectValue('mediaTypeSelectorField', 'text/plain'); @@ -156,4 +156,42 @@ describe('Processor: Append', () => { media_type: 'text/plain', }); }); + + test('saves with json parameter values', async () => { + const { + actions: { saveNewProcessor }, + form, + find, + component, + } = testBed; + + // Add "field" value (required) + form.setInputValue('fieldNameField.input', 'field_1'); + + await act(async () => { + find('comboxValueField.input').simulate('change', [{ label: 'Some_Value' }]); + }); + component.update(); + + find('toggleTextField').simulate('click'); + + await act(async () => { + find('jsonValueField').simulate('change', { + jsonContent: '{"value_1":"""aaa"bbb""", "value_2":"aaa(bbb"}', + }); + + // advance timers to allow the form to validate + jest.advanceTimersByTime(0); + }); + + // Save the field + await saveNewProcessor(); + + const processors = getProcessorValue(onUpdate, APPEND_TYPE); + expect(processors[0].append).toEqual({ + field: 'field_1', + // eslint-disable-next-line prettier/prettier + value: { value_1: 'aaa\"bbb', value_2: 'aaa(bbb' }, + }); + }); }); diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/processor.helpers.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/processor.helpers.tsx index 3eeff809999b7..e7b1fc8cd2acc 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/processor.helpers.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/processor.helpers.tsx @@ -122,7 +122,7 @@ type TestSubject = | 'addProcessorForm.submitButton' | 'addProcessorButton' | 'addProcessorForm.submitButton' - | 'appendValueField.input' + | 'comboxValueField.input' | 'allowDuplicatesSwitch.input' | 'formatsValueField.input' | 'timezoneField.input' @@ -157,10 +157,11 @@ type TestSubject = | 'extractDeviceTypeSwitch.input' | 'propertiesValueField' | 'regexFileField.input' - | 'valueFieldInput' + | 'textValueField.input' | 'mediaTypeSelectorField' | 'networkDirectionField.input' | 'toggleCustomField' + | 'toggleCustomField.input' | 'ignoreEmptyField.input' | 'overrideField.input' | 'fieldsValueField.input' @@ -175,7 +176,7 @@ type TestSubject = | 'ianaField.input' | 'transportField.input' | 'seedField.input' - | 'copyFromInput' + | 'copyFromInput.input' | 'trimSwitch.input' | 'droppableList.addButton' | 'droppableList.input-0' @@ -205,4 +206,6 @@ type TestSubject = | 'scriptSource' | 'inferenceModelId.input' | 'inferenceConfig' - | 'fieldMap'; + | 'fieldMap' + | 'toggleTextField' + | 'jsonValueField'; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/set.test.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/set.test.tsx index 79eecd0bcb739..99e1ef5a35324 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/set.test.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/__jest__/processors/set.test.tsx @@ -67,7 +67,7 @@ describe('Processor: Set', () => { } = testBed; // Add required fields - form.setInputValue('valueFieldInput', 'value'); + form.setInputValue('textValueField.input', 'value'); form.setInputValue('fieldNameField.input', 'field_1'); // Save the field await saveNewProcessor(); @@ -83,18 +83,17 @@ describe('Processor: Set', () => { const { actions: { saveNewProcessor }, form, - find, } = testBed; // Add required fields form.setInputValue('fieldNameField.input', 'field_1'); // Set value field - form.setInputValue('valueFieldInput', 'value'); + form.setInputValue('textValueField.input', 'value'); // Toggle to copy_from field and set a random value - find('toggleCustomField').simulate('click'); - form.setInputValue('copyFromInput', 'copy_from'); + form.toggleEuiSwitch('toggleCustomField.input'); + form.setInputValue('copyFromInput.input', 'copy_from'); // Save the field with new changes await saveNewProcessor(); @@ -117,11 +116,11 @@ describe('Processor: Set', () => { form.setInputValue('fieldNameField.input', 'field_1'); // Shouldnt be able to set mediaType if value is not a template string - form.setInputValue('valueFieldInput', 'hello'); + form.setInputValue('textValueField.input', 'hello'); expect(exists('mediaTypeSelectorField')).toBe(false); // Set value to a template snippet and media_type to a non-default value - form.setInputValue('valueFieldInput', '{{{hello}}}'); + form.setInputValue('textValueField.input', '{{{hello}}}'); form.setSelectValue('mediaTypeSelectorField', 'text/plain'); // Save the field with new changes @@ -145,7 +144,7 @@ describe('Processor: Set', () => { form.setInputValue('fieldNameField.input', 'field_1'); // Set optional parameteres - form.setInputValue('valueFieldInput', '{{{hello}}}'); + form.setInputValue('textValueField.input', '{{{hello}}}'); form.toggleEuiSwitch('overrideField.input'); form.toggleEuiSwitch('ignoreEmptyField.input'); @@ -160,4 +159,37 @@ describe('Processor: Set', () => { override: false, }); }); + + test('saves with json parameter value', async () => { + const { + actions: { saveNewProcessor }, + form, + find, + component, + } = testBed; + + form.setInputValue('textValueField.input', 'value'); + + find('toggleTextField').simulate('click'); + + form.setInputValue('fieldNameField.input', 'field_1'); + await act(async () => { + find('jsonValueField').simulate('change', { + jsonContent: '{"value_1":"""aaa"bbb""", "value_2":"aaa(bbb"}', + }); + + // advance timers to allow the form to validate + jest.advanceTimersByTime(0); + }); + component.update(); + // Save the field + await saveNewProcessor(); + + const processors = getProcessorValue(onUpdate, SET_TYPE); + expect(processors[0][SET_TYPE]).toEqual({ + field: 'field_1', + // eslint-disable-next-line prettier/prettier + value: { value_1: 'aaa\"bbb', value_2: 'aaa(bbb' }, + }); + }); }); diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/index.ts b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/index.ts index e4b9817e89579..565e5ddca5f82 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/index.ts +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/index.ts @@ -9,3 +9,4 @@ export { DragAndDropTextList } from './drag_and_drop_text_list'; export { XJsonEditor } from './xjson_editor'; export { TextEditor } from './text_editor'; export { InputList } from './input_list'; +export { XJsonToggle } from './xjson_toggle'; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/text_editor.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/text_editor.tsx index b45e349c1e2ef..09bc196eeec2c 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/text_editor.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/text_editor.tsx @@ -19,9 +19,10 @@ import './text_editor.scss'; interface Props { field: FieldHook; editorProps: { [key: string]: any }; + euiFieldProps?: Record; } -export const TextEditor: FunctionComponent = ({ field, editorProps }) => { +export const TextEditor: FunctionComponent = ({ field, editorProps, euiFieldProps }) => { const { value, helpText, setValue, label } = field; const { errorMessage } = getFieldValidityAndErrorMessage(field); @@ -32,11 +33,13 @@ export const TextEditor: FunctionComponent = ({ field, editorProps }) => isInvalid={typeof errorMessage === 'string'} error={errorMessage} fullWidth + labelAppend={editorProps.labelAppend} > diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_editor.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_editor.tsx index b5f98c260661d..43ca1b226fb7b 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_editor.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_editor.tsx @@ -14,6 +14,7 @@ import { TextEditor } from './text_editor'; interface Props { field: FieldHook; editorProps: { [key: string]: any }; + disabled?: boolean; } const defaultEditorOptions = { @@ -21,7 +22,7 @@ const defaultEditorOptions = { lineNumbers: 'off', }; -export const XJsonEditor: FunctionComponent = ({ field, editorProps }) => { +export const XJsonEditor: FunctionComponent = ({ field, editorProps, disabled }) => { const { value, setValue } = field; const onChange = useCallback( (s: any) => { @@ -29,6 +30,7 @@ export const XJsonEditor: FunctionComponent = ({ field, editorProps }) => }, [setValue] ); + return ( = ({ field, editorProps }) => onChange, ...editorProps, }} + euiFieldProps={{ disabled }} /> ); }; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_toggle.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_toggle.tsx new file mode 100644 index 0000000000000..6735d57cb85e3 --- /dev/null +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/field_components/xjson_toggle.tsx @@ -0,0 +1,152 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import React, { + FunctionComponent, + useCallback, + useEffect, + useState, + useMemo, + MouseEventHandler, +} from 'react'; +import { i18n } from '@kbn/i18n'; + +import { FormattedMessage } from '@kbn/i18n-react'; +import { EuiLink, EuiText } from '@elastic/eui'; +import { EDITOR_PX_HEIGHT, isXJsonValue } from '../processors/shared'; +import { ComboBoxField, Field, FieldHook } from '../../../../../../shared_imports'; + +import { XJsonEditor } from '.'; + +type FieldType = 'text' | 'combox'; + +interface Props { + field: FieldHook; + disabled?: boolean; + handleIsJson: Function; + fieldType: FieldType; +} +interface ToggleProps { + field: FieldHook; + disabled?: boolean; + toggleJson: MouseEventHandler; + fieldType: FieldType; +} + +const FieldToToggle: FunctionComponent = ({ + field, + disabled, + toggleJson, + fieldType, +}) => { + if (fieldType === 'text') { + return ( + + + + + + } + /> + ); + } + + if (fieldType === 'combox') { + return ( + + + + + + } + /> + ); + } +}; + +export const XJsonToggle: FunctionComponent = ({ + field, + disabled = false, + handleIsJson, + fieldType, +}) => { + const { value, setValue } = field; + const [defineAsJson, setDefineAsJson] = useState(undefined); + + const toggleJson = useCallback(() => { + const defaultValue = fieldType === 'text' ? '' : []; + const newValueIsJson = !defineAsJson; + setValue(newValueIsJson ? '{}' : defaultValue); + setDefineAsJson(newValueIsJson); + handleIsJson(newValueIsJson); + }, [defineAsJson, fieldType, handleIsJson, setValue]); + + useEffect(() => { + if (defineAsJson === undefined) { + setDefineAsJson(isXJsonValue(value)); + handleIsJson(isXJsonValue(value)); + } + }, [defineAsJson, handleIsJson, setValue, value]); + + const mustRenderXJsonEditor = useMemo(() => { + if (defineAsJson === undefined) { + return isXJsonValue(value); + } + return defineAsJson; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [defineAsJson]); + + return mustRenderXJsonEditor ? ( + } + disabled={disabled} + editorProps={{ + 'data-test-subj': 'jsonValueField', + height: disabled ? EDITOR_PX_HEIGHT.extraSmall : EDITOR_PX_HEIGHT.medium, + 'aria-label': i18n.translate( + 'xpack.ingestPipelines.pipelineEditor.toggleJson.valueAriaLabel', + { + defaultMessage: 'Value editor', + } + ), + options: { readOnly: disabled }, + labelAppend: ( + + + + + + ), + }} + /> + ) : ( + + ); +}; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/append.tsx b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/append.tsx index 74d57eebc07fa..3b22e6e6ebeab 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/append.tsx +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/append.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import React, { FunctionComponent } from 'react'; +import React, { FunctionComponent, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; @@ -14,22 +14,26 @@ import { FIELD_TYPES, fieldValidators, UseField, - ComboBoxField, ToggleField, SelectField, useFormData, } from '../../../../../../shared_imports'; -import { FieldsConfig, from, to } from './shared'; +import { FieldsConfig, from, to, isXJsonValue, isXJsonField } from './shared'; import { FieldNameField } from './common_fields/field_name_field'; +import { XJsonToggle } from '../field_components'; const { emptyField } = fieldValidators; const fieldsConfig: FieldsConfig = { value: { - defaultValue: [], - type: FIELD_TYPES.COMBO_BOX, - deserializer: to.arrayOfStrings, + defaultValue: (value: string | string[]) => { + return isXJsonValue(value) ? '{}' : []; + }, + type: FIELD_TYPES.TEXT, + deserializer: (value: string | string[] | object) => { + return isXJsonValue(value) ? to.xJsonString(value) : to.arrayOfStrings(value); + }, label: i18n.translate('xpack.ingestPipelines.pipelineEditor.appendForm.valueFieldLabel', { defaultMessage: 'Value', }), @@ -44,6 +48,26 @@ const fieldsConfig: FieldsConfig = { }) ), }, + { + validator: (args) => { + const { + customData: { value: isJson }, + } = args; + if (isJson) { + return isXJsonField( + i18n.translate( + 'xpack.ingestPipelines.pipelineEditor.appendForm.valueInvalidJsonError', + { + defaultMessage: 'Invalid JSON', + } + ), + { + allowEmptyString: true, + } + )({ ...args }); + } + }, + }, ], }, allow_duplicates: { @@ -82,6 +106,12 @@ const fieldsConfig: FieldsConfig = { export const Append: FunctionComponent = () => { const [{ fields }] = useFormData({ watch: ['fields.value'] }); + const [isDefineAsJson, setIsDefineAsJson] = useState(undefined); + + const getIsJsonValue = (isJson: boolean) => { + setIsDefineAsJson(isJson); + }; + return ( <> { })} /> - - { path="fields.allow_duplicates" /> + + {hasTemplateSnippet(fields?.value) && ( ; -}; +import { XJsonToggle } from '../field_components'; // Optional fields config const fieldsConfig: FieldsConfig = { @@ -94,134 +84,131 @@ const fieldsConfig: FieldsConfig = { /> ), }, -}; - -// Required fields config -const getValueConfig: (toggleCustom: () => void) => Record< - keyof ValueToggleFields, - { - path: string; - config?: FieldConfig; - euiFieldProps?: Record; - labelAppend: JSX.Element; - } -> = (toggleCustom: () => void) => ({ value: { - path: 'fields.value', - euiFieldProps: { - 'data-test-subj': 'valueFieldInput', + type: FIELD_TYPES.TEXT, + defaultValue: (value: string) => { + return isXJsonValue(value) ? '{}' : ''; }, - config: { - type: FIELD_TYPES.TEXT, - serializer: from.emptyStringToUndefined, - label: i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.valueFieldLabel', { - defaultMessage: 'Value', - }), - helpText: ( - - ), - fieldsToValidateOnChange: ['fields.value', 'fields.copy_from'], - validations: [ - { - validator: ({ value, path, formData }) => { - if (isEmpty(value) && isEmpty(formData['fields.copy_from'])) { - return { - path, - message: i18n.translate('xpack.ingestPipelines.pipelineEditor.requiredValue', { - defaultMessage: 'A value is required.', - }), - }; - } - }, - }, - ], + deserializer: (value: string | object) => { + return isXJsonValue(value) ? to.xJsonString(value) : value; }, - labelAppend: ( - - - - - + serializer: (value: string) => { + return isXJsonValue(value) ? value : from.emptyStringToUndefined(value); + }, + label: i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.valueFieldLabel', { + defaultMessage: 'Value', + }), + helpText: ( + ), - key: 'value', + validations: [ + { + validator: ({ value, path, formData }) => { + if (isEmpty(value) && isUndefined(formData['fields.copy_from'])) { + return { + path, + message: i18n.translate('xpack.ingestPipelines.pipelineEditor.requiredValue', { + defaultMessage: 'A value is required.', + }), + }; + } + }, + }, + { + validator: (args) => { + const { + customData: { value: isJson }, + } = args; + if (isJson) { + return isXJsonField( + i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.valueInvalidJsonError', { + defaultMessage: 'Invalid JSON', + }), + { + allowEmptyString: true, + } + )({ ...args }); + } + }, + }, + ], }, copy_from: { - path: 'fields.copy_from', - euiFieldProps: { - 'data-test-subj': 'copyFromInput', - }, - config: { - type: FIELD_TYPES.TEXT, - serializer: from.emptyStringToUndefined, - fieldsToValidateOnChange: ['fields.value', 'fields.copy_from'], - validations: [ - { - validator: ({ value, path, formData }) => { - if (isEmpty(value) && isEmpty(formData['fields.value'])) { - return { - path, - message: i18n.translate('xpack.ingestPipelines.pipelineEditor.requiredCopyFrom', { - defaultMessage: 'A copy from value is required.', - }), - }; - } - }, + type: FIELD_TYPES.TEXT, + serializer: from.emptyStringToUndefined, + fieldsToValidateOnChange: ['fields.value', 'fields.copy_from'], + validations: [ + { + validator: ({ value, path }) => { + if (isEmpty(value)) { + return { + path, + message: i18n.translate('xpack.ingestPipelines.pipelineEditor.requiredCopyFrom', { + defaultMessage: 'A copy from value is required.', + }), + }; + } }, - ], - label: i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.copyFromFieldLabel', { - defaultMessage: 'Copy from', - }), - helpText: ( - {'Field'}, - }} - /> - ), - }, - labelAppend: ( - - - - - + }, + ], + label: i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.copyFromFieldLabel', { + defaultMessage: 'Copy from', + }), + helpText: ( + {'Field'}, + }} + /> ), - key: 'copy_from', }, -}); + toggle_custom_field: { + type: FIELD_TYPES.TOGGLE, + label: i18n.translate('xpack.ingestPipelines.pipelineEditor.setForm.enablingCopyFieldLabel', { + defaultMessage: 'Use Copy instead of Value', + }), + fieldsToValidateOnChange: ['fields.value', 'fields.copy_from'], + helpText: ( + {'Field'}, + value: {'Value'}, + }} + /> + ), + }, +}; /** * Disambiguate name from the Set data structure */ export const SetProcessor: FunctionComponent = () => { - const { getFieldDefaultValue } = useFormContext(); - const [{ fields }] = useFormData({ watch: ['fields.value', 'fields.copy_from'] }); + const { getFieldDefaultValue, setFieldValue } = useFormContext(); + const [{ fields }] = useFormData({ + watch: ['fields.value', 'fields.copy_from'], + }); const isCopyFromDefined = getFieldDefaultValue('fields.copy_from') !== undefined; const [isCopyFromEnabled, setIsCopyFrom] = useState(isCopyFromDefined); + const [isDefineAsJson, setIsDefineAsJson] = useState(undefined); + + const getIsJsonValue = (isJson: boolean) => { + setIsDefineAsJson(isJson); + }; const toggleCustom = useCallback(() => { + const newIsCopyFrom = !isCopyFromEnabled; setIsCopyFrom((prev) => !prev); - }, []); - - const valueFieldProps = useMemo( - () => - isCopyFromEnabled - ? getValueConfig(toggleCustom).copy_from - : getValueConfig(toggleCustom).value, - [isCopyFromEnabled, toggleCustom] - ); + setFieldValue('fields.value', !newIsCopyFrom && isDefineAsJson ? '{}' : ''); + setFieldValue('fields.copy_from', ''); + }, [isCopyFromEnabled, isDefineAsJson, setFieldValue]); return ( <> @@ -231,7 +218,17 @@ export const SetProcessor: FunctionComponent = () => { })} /> - + {hasTemplateSnippet(fields?.value) && ( { /> )} + + + {isCopyFromEnabled && ( + + )} + >; export type FormFieldsComponent = FunctionComponent<{ initialFieldValues?: Record; }>; + +export const isXJsonValue = (value: any) => { + if (typeof value === 'string') { + return isJSON(collapseEscapedStrings(value)); + } + return isPlainObject(value); +}; diff --git a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/utils.ts b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/utils.ts index 533f9621bbec9..f8905be3d1284 100644 --- a/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/utils.ts +++ b/x-pack/platform/plugins/shared/ingest_pipelines/public/application/components/pipeline_editor/utils.ts @@ -154,6 +154,7 @@ const fieldToConvertToJson = [ 'params', 'pattern_definitions', 'processor', + 'value', ]; export const convertProccesorsToJson = (obj: { [key: string]: any }): { [key: string]: any } => { diff --git a/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx b/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx index 7b417aee5576f..609226c48c8dd 100644 --- a/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx +++ b/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_assistant/header/header.tsx @@ -5,16 +5,9 @@ * 2.0. */ -import { - EuiAvatar, - EuiFlexGroup, - EuiFlexItem, - EuiSpacer, - EuiText, - useEuiTheme, -} from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText, useEuiTheme } from '@elastic/eui'; import { css } from '@emotion/react'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantAvatar } from '@kbn/ai-assistant-icon'; import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template'; import React from 'react'; import { useActions } from '../state'; @@ -40,8 +33,8 @@ interface HeaderProps { } export const Header = React.memo(({ currentStep, isGenerating }) => { const { setStep } = useActions(); - const { euiTheme } = useEuiTheme(); const avatarCss = useAvatarCss(); + return ( @@ -56,13 +49,7 @@ export const Header = React.memo(({ currentStep, isGenerating }) => justifyContent="center" > - + diff --git a/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx b/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx index 3dec795111425..dbae30ad664de 100644 --- a/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx +++ b/x-pack/platform/plugins/shared/integration_assistant/public/components/create_integration/create_integration_landing/integration_assistant_card.tsx @@ -15,7 +15,7 @@ import { EuiTitle, EuiBetaBadge, } from '@elastic/eui'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import { useAuthorization } from '../../../common/hooks/use_authorization'; import { MissingPrivilegesTooltip } from '../../../common/components/authorization'; import { useNavigate, Page } from '../../../common/hooks/use_navigate'; @@ -28,7 +28,7 @@ export const IntegrationAssistantCard = React.memo(() => { - + { @@ -19,31 +24,31 @@ describe('getAlertFormatters', () => { test('format anomaly score correctly', () => { expect(alertFormatter(ALERT_ANOMALY_SCORE, 50.3)).toEqual( - + 50 ); expect(alertFormatter(ALERT_ANOMALY_SCORE, '50.3,89.6')).toEqual( - + 89 ); expect(alertFormatter(ALERT_ANOMALY_SCORE, '0.7')).toEqual( - + < 1 ); expect(alertFormatter(ALERT_ANOMALY_SCORE, '0')).toEqual( - + < 1 ); expect(alertFormatter(ALERT_ANOMALY_SCORE, '')).toEqual( - + < 1 ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/_index.scss b/x-pack/platform/plugins/shared/ml/public/application/_index.scss index 91201434b20b1..66b04a8ff0e78 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/_index.scss +++ b/x-pack/platform/plugins/shared/ml/public/application/_index.scss @@ -1,6 +1,3 @@ -// ML has it's own variables for coloring -@import 'variables'; - // Protect the rest of Kibana from ML generic namespacing // SASSTODO: Prefix ml selectors instead .ml-app { @@ -14,4 +11,4 @@ @import 'components/job_selector/index'; @import 'components/rule_editor/index'; // SASSTODO: This file overwrites EUI directly -} \ No newline at end of file +} diff --git a/x-pack/platform/plugins/shared/ml/public/application/_variables.scss b/x-pack/platform/plugins/shared/ml/public/application/_variables.scss deleted file mode 100644 index f81a97cf8c156..0000000000000 --- a/x-pack/platform/plugins/shared/ml/public/application/_variables.scss +++ /dev/null @@ -1,12 +0,0 @@ -$mlColorCritical: #FE5050; -$mlColorMajor: #FBA740; -$mlColorMinor: #FDEC25; -$mlColorWarning: #8BC8FB; -$mlColorLowWarning: #D2E9F7; -$mlColorUnknown: #C0C0C0; - -$mlColorCriticalText: makeHighContrastColor($mlColorCritical, $euiColorEmptyShade); -$mlColorMajorText: makeHighContrastColor($mlColorMajor, $euiColorEmptyShade); -$mlColorMinorText: makeHighContrastColor($mlColorMinor, $euiColorEmptyShade); -$mlColorWarningText: makeHighContrastColor($mlColorWarning, $euiColorEmptyShade); -$mlColorUnknownText: $euiColorDarkShade; diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/anomalies_table/severity_cell/severity_cell.test.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/anomalies_table/severity_cell/severity_cell.test.tsx index e9166c0c6c28c..25071f30400cb 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/anomalies_table/severity_cell/severity_cell.test.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/anomalies_table/severity_cell/severity_cell.test.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { render } from '@testing-library/react'; +import { ML_SEVERITY_COLORS } from '@kbn/ml-anomaly-utils/severity_colors'; import { SeverityCell } from './severity_cell'; describe('SeverityCell', () => { @@ -18,7 +19,7 @@ describe('SeverityCell', () => { const { container } = render(); expect(container.textContent).toBe('75'); const svgEl = container.querySelectorAll('[data-euiicon-type]')[0]; - expect(svgEl && svgEl.getAttribute('color')).toBe('#fe5050'); + expect(svgEl && svgEl.getAttribute('color')).toBe(ML_SEVERITY_COLORS.CRITICAL); }); test('should render a multi-bucket marker with low severity score', () => { @@ -29,6 +30,6 @@ describe('SeverityCell', () => { const { container } = render(); expect(container.textContent).toBe('< 1'); const svgEl = container.getElementsByTagName('svg').item(0); - expect(svgEl && svgEl.getAttribute('fill')).toBe('#d2e9f7'); + expect(svgEl && svgEl.getAttribute('fill')).toBe(ML_SEVERITY_COLORS.LOW); }); }); diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/influencers_list/influencers_list_styles.ts b/x-pack/platform/plugins/shared/ml/public/application/components/influencers_list/influencers_list_styles.ts index d54eb495a0a33..e6cfd5b3f66fa 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/influencers_list/influencers_list_styles.ts +++ b/x-pack/platform/plugins/shared/ml/public/application/components/influencers_list/influencers_list_styles.ts @@ -9,7 +9,7 @@ import { css } from '@emotion/react'; import { useEuiFontSize, useEuiTheme } from '@elastic/eui'; -import { mlColors } from '../../styles'; +import { ML_SEVERITY_COLORS } from '@kbn/ml-anomaly-utils'; export const useInfluencersListStyles = () => { const { euiTheme } = useEuiTheme(); @@ -50,12 +50,12 @@ export const useInfluencersListStyles = () => { width: `${barScore}%`, backgroundColor: severity === 'critical' - ? mlColors.critical + ? ML_SEVERITY_COLORS.CRITICAL : severity === 'major' - ? mlColors.major + ? ML_SEVERITY_COLORS.MAJOR : severity === 'minor' - ? mlColors.minor - : mlColors.warning, + ? ML_SEVERITY_COLORS.MINOR + : ML_SEVERITY_COLORS.WARNING, }), scoreLabel: (severity: string) => css({ @@ -67,12 +67,12 @@ export const useInfluencersListStyles = () => { display: 'inline', borderColor: severity === 'critical' - ? mlColors.critical + ? ML_SEVERITY_COLORS.CRITICAL : severity === 'major' - ? mlColors.major + ? ML_SEVERITY_COLORS.MAJOR : severity === 'minor' - ? mlColors.minor - : mlColors.warning, + ? ML_SEVERITY_COLORS.MINOR + : ML_SEVERITY_COLORS.WARNING, }), totalScoreLabel: css({ width: euiTheme.size.xl, diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/severity_control/severity_control.tsx b/x-pack/platform/plugins/shared/ml/public/application/components/severity_control/severity_control.tsx index 1392c38d84507..096b7d263b183 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/severity_control/severity_control.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/components/severity_control/severity_control.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import type { EuiRangeProps } from '@elastic/eui'; import { EuiFieldNumber, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiRange } from '@elastic/eui'; -import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils'; +import { ML_ANOMALY_THRESHOLD, ML_SEVERITY_COLORS } from '@kbn/ml-anomaly-utils'; export interface SeveritySelectorProps { value: number | undefined; @@ -24,22 +24,22 @@ export const SeverityControl: FC = React.memo(({ value, o { min: ML_ANOMALY_THRESHOLD.LOW, max: ML_ANOMALY_THRESHOLD.MINOR, - color: '#8BC8FB', + color: ML_SEVERITY_COLORS.WARNING, }, { min: ML_ANOMALY_THRESHOLD.MINOR, max: ML_ANOMALY_THRESHOLD.MAJOR, - color: '#FDEC25', + color: ML_SEVERITY_COLORS.MINOR, }, { min: ML_ANOMALY_THRESHOLD.MAJOR, max: ML_ANOMALY_THRESHOLD.CRITICAL, - color: '#FBA740', + color: ML_SEVERITY_COLORS.MAJOR, }, { min: ML_ANOMALY_THRESHOLD.CRITICAL, max: MAX_ANOMALY_SCORE, - color: '#FE5050', + color: ML_SEVERITY_COLORS.CRITICAL, }, ]; diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_explorer_chart.scss b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_explorer_chart.scss deleted file mode 100644 index 29967e8db9b3f..0000000000000 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_explorer_chart.scss +++ /dev/null @@ -1,120 +0,0 @@ -// stylelint-disable selector-no-qualifying-type -.ml-explorer-chart-container { - overflow: hidden; - - .ml-explorer-chart-svg { - font-size: $euiFontSizeXS; - font-family: $euiFontFamily; - - .line-chart { - rect { - fill: $euiColorEmptyShade; - opacity: 1; - } - - rect.selected-interval { - fill: rgba(200, 200, 200, .1); - stroke: $euiColorDarkShade; - stroke-width: calc($euiSizeXS / 2); - stroke-opacity: .8; - } - - rect.scheduled-event-marker { - stroke-width: 1px; - stroke: $euiColorDarkShade; - fill: $euiColorLightShade; - pointer-events: none; - } - } - } - - .axis path, .axis line { - fill: none; - stroke: $euiBorderColor; - shape-rendering: crispEdges; - } - - .axis .tick line.ml-tick-emphasis { - stroke: rgba(0, 0, 0, .2); - } - - .axis text { - fill: $euiColorDarkShade; - } - - .axis .tick line { - stroke: $euiColorLightShade; - stroke-width: 1px; - } - - .values-line { - fill: none; - stroke: $euiColorPrimary; - stroke-width: 2; - } - - .values-dots circle, - .values-dots-circle { - fill: $euiColorPrimary; - stroke-width: 0; - } - - .values-dots circle.values-dots-circle-blur { - fill: $euiColorMediumShade; - } - - .metric-value { - opacity: 1; - fill: transparent; - stroke: $euiColorPrimary; - stroke-width: 0; - } - - .anomaly-marker { - stroke-width: 1px; - stroke: $euiColorMediumShade; - } - - .anomaly-marker:hover { - stroke-width: 6px; - stroke: $euiColorPrimary; - } - - .anomaly-marker.critical { - fill: $mlColorCritical; - } - - .anomaly-marker.major { - fill: $mlColorMajor; - } - - .anomaly-marker.minor { - fill: $mlColorMinor; - } - - .anomaly-marker.warning { - fill: $mlColorWarning; - } - - .anomaly-marker.low { - fill: $mlColorLowWarning; - } - - .metric-value:hover, - .anomaly-marker:hover { - stroke-width: 6px; - stroke-opacity: .65; - } -} - -.ml-explorer-chart { - overflow: hidden; -} - -.ml-explorer-chart-content-wrapper { - height: 215px; -} - -.ml-explorer-chart-axis-emphasis { - font-weight: bold; -} diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_index.scss b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_index.scss index d32d1ce81cd78..62ef4c05e1f7a 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_index.scss +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/_index.scss @@ -1,3 +1 @@ -@import '../../../application/variables'; @import 'components/explorer_chart_label/index'; -@import 'explorer_chart'; diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_distribution.js b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_distribution.js index c7fcddbe4c515..0210663103ac5 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_distribution.js +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_distribution.js @@ -47,6 +47,7 @@ import { CHART_HEIGHT, TRANSPARENT_BACKGROUND } from './constants'; import { filter } from 'rxjs'; import { drawCursor } from './utils/draw_anomaly_explorer_charts_cursor'; import { SCHEDULE_EVENT_MARKER_ENTITY } from '../../../../common/constants/charts'; +import { cssMlExplorerChart } from './explorer_chart_styles'; const popoverMenuOffset = 0; const CONTENT_WRAPPER_HEIGHT = 215; @@ -776,7 +777,7 @@ export class ExplorerChartDistribution extends React.Component { )} -
+
{isLoading && } {!isLoading &&
}
diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js index 1b746647ef38d..9935af37feec6 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js @@ -12,6 +12,7 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { css } from '@emotion/react'; import d3 from 'd3'; import moment from 'moment'; @@ -48,10 +49,15 @@ import { LoadingIndicator } from '../../components/loading_indicator/loading_ind import { CHART_HEIGHT, TRANSPARENT_BACKGROUND } from './constants'; import { filter } from 'rxjs'; import { drawCursor } from './utils/draw_anomaly_explorer_charts_cursor'; +import { cssMlExplorerChart } from './explorer_chart_styles'; const popoverMenuOffset = 0; const CONTENT_WRAPPER_HEIGHT = 215; +// Not used for CSS, but with d3 to select elements. const CONTENT_WRAPPER_CLASS = 'ml-explorer-chart-content-wrapper'; +const mlExplorerChartContentWrapper = css({ + height: `${CONTENT_WRAPPER_HEIGHT}px`, +}); export class ExplorerChartSingleMetric extends React.Component { static contextType = context; @@ -721,9 +727,11 @@ export class ExplorerChartSingleMetric extends React.Component {
)} -
+
{isLoading && } - {!isLoading &&
} + {!isLoading && ( +
+ )}
); diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_styles.ts b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_styles.ts new file mode 100644 index 0000000000000..e89877fc03392 --- /dev/null +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_chart_styles.ts @@ -0,0 +1,131 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { css } from '@emotion/react'; + +import { useEuiFontSize, useEuiTheme, mathWithUnits, transparentize } from '@elastic/eui'; + +import { ML_SEVERITY_COLORS } from '@kbn/ml-anomaly-utils'; + +export const useCssMlExplorerChartContainer = () => { + const { euiTheme } = useEuiTheme(); + const euiFontSizeXS = useEuiFontSize('xs').fontSize; + + return css({ + overflow: 'hidden', + + '.ml-explorer-chart-svg': { + fontSize: euiFontSizeXS, + fontFamily: euiTheme.font.family, + + '.line-chart': { + rect: { + fill: euiTheme.colors.emptyShade, + opacity: 1, + }, + + 'rect.selected-interval': { + fill: transparentize('#c8c8c8', 0.1), + stroke: euiTheme.colors.darkShade, + strokeWidth: mathWithUnits(euiTheme.size.xs, (x) => x / 2), + strokeOpacity: 0.8, + }, + + 'rect.scheduled-event-marker': { + strokeWidth: '1px', + stroke: euiTheme.colors.darkShade, + fill: euiTheme.colors.lightShade, + pointerEvents: 'none', + }, + }, + }, + + '.axis path, .axis line': { + fill: 'none', + stroke: euiTheme.border.color, + shapeRendering: 'crispEdges', + }, + + '.axis .tick line.ml-tick-emphasis': { + stroke: transparentize('#000', 0.2), + }, + + '.axis text': { + fill: euiTheme.colors.lightShade, + }, + + '.axis .tick line': { + stroke: euiTheme.colors.lightShade, + strokeWidth: '1px', + }, + + '.values-line': { + fill: 'none', + stroke: euiTheme.colors.primary, + strokeWidth: '2px', + }, + + '.values-dots circle, .values-dots-circle': { + fill: euiTheme.colors.primary, + strokeWidth: 0, + }, + + '.values-dots circle.values-dots-circle-blur': { + fill: euiTheme.colors.mediumShade, + }, + + '.metric-value': { + opacity: 1, + fill: 'transparent', + stroke: euiTheme.colors.primary, + strokeWidth: 0, + }, + + '.anomaly-marker': { + strokeWidth: '1px', + stroke: euiTheme.colors.mediumShade, + }, + + '.anomaly-marker:hover': { + strokeWidth: '6px', + stroke: euiTheme.colors.primary, + }, + + '.anomaly-marker.critical': { + fill: ML_SEVERITY_COLORS.CRITICAL, + }, + + '.anomaly-marker.major': { + fill: ML_SEVERITY_COLORS.MAJOR, + }, + + '.anomaly-marker.minor': { + fill: ML_SEVERITY_COLORS.MINOR, + }, + + '.anomaly-marker.warning': { + fill: ML_SEVERITY_COLORS.WARNING, + }, + + '.anomaly-marker.low': { + fill: ML_SEVERITY_COLORS.LOW, + }, + + '.metric-value:hover, .anomaly-marker:hover': { + strokeWidth: '6px', + strokeOpacity: 0.65, + }, + + 'ml-explorer-chart-axis-emphasis': { + fontWeight: 'bold', + }, + }); +}; + +export const cssMlExplorerChart = css({ + overflow: 'hidden', +}); diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js index 9bc1317a9aa50..1f3a2d20eea28 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js @@ -45,6 +45,7 @@ import { EmbeddedMapComponentWrapper } from './explorer_chart_embedded_map'; import { useActiveCursor } from '@kbn/charts-plugin/public'; import { BarSeries, Chart, Settings, LEGACY_LIGHT_THEME } from '@elastic/charts'; import { escapeKueryForFieldValuePair } from '../../util/string_utils'; +import { useCssMlExplorerChartContainer } from './explorer_chart_styles'; const textTooManyBuckets = i18n.translate('xpack.ml.explorer.charts.tooManyBucketsDescription', { defaultMessage: @@ -398,6 +399,7 @@ export const ExplorerChartsContainerUI = ({ chartsService, showFilterIcons = true, }) => { + const cssMlExplorerChartContainer = useCssMlExplorerChartContainer(); const { services: { embeddable: embeddablePlugin, maps: mapsPlugin }, } = kibana; @@ -443,7 +445,8 @@ export const ExplorerChartsContainerUI = ({ return ( { // We test child components with snapshots separately // so we just do a high level check here. - expect(wrapper.find('div.ml-explorer-chart-container').children()).toHaveLength(1); + expect( + wrapper.find('div[data-test-subj="mlExplorerChartContainerItem"]').children() + ).toHaveLength(1); // Check if the additional y-axis information for rare charts is not part of the chart expect(wrapper.html().search(rareChartUniqueString)).toBe(-1); @@ -148,7 +150,9 @@ describe('ExplorerChartsContainer', () => { // We test child components with snapshots separately // so we just do a high level check here. - expect(wrapper.find('div.ml-explorer-chart-container').children()).toHaveLength(1); + expect( + wrapper.find('div[data-test-subj="mlExplorerChartContainerItem"]').children() + ).toHaveLength(1); // Check if the additional y-axis information for rare charts is part of the chart expect(wrapper.html().search(rareChartUniqueString)).toBeGreaterThan(0); diff --git a/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js b/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js index f39bab106c643..d43603684b043 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js +++ b/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart.js @@ -20,7 +20,11 @@ import moment from 'moment'; import { EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { getFormattedSeverityScore, getSeverityWithLow } from '@kbn/ml-anomaly-utils'; +import { + getFormattedSeverityScore, + getSeverityWithLow, + ML_SEVERITY_COLORS, +} from '@kbn/ml-anomaly-utils'; import { formatHumanReadableDateTimeSeconds } from '@kbn/ml-date-utils'; import { context } from '@kbn/kibana-react-plugin/public'; @@ -87,7 +91,13 @@ const ZOOM_INTERVAL_OPTIONS = [ const anomalyColorScale = d3.scale .threshold() .domain([3, 25, 50, 75, 100]) - .range(['#d2e9f7', '#8bc8fb', '#ffdd00', '#ff7e00', '#fe5050']); + .range([ + ML_SEVERITY_COLORS.LOW, + ML_SEVERITY_COLORS.WARNING, + ML_SEVERITY_COLORS.MINOR, + ML_SEVERITY_COLORS.MAJOR, + ML_SEVERITY_COLORS.CRITICAL, + ]); // Create a gray-toned version of the color scale to use under the context chart mask. const anomalyGrayScale = d3.scale diff --git a/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/styles.ts b/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/styles.ts index 7c4315e01688b..0c9ba5619908d 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/styles.ts +++ b/x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/styles.ts @@ -10,7 +10,7 @@ import { css } from '@emotion/react'; import { useEuiFontSize, useEuiTheme, transparentize } from '@elastic/eui'; -import { mlColors } from '../styles'; +import { ML_SEVERITY_COLORS } from '@kbn/ml-anomaly-utils'; // Annotations constants const mlAnnotationBorderWidth = '2px'; @@ -119,23 +119,23 @@ export const useTimeseriesExplorerStyles = () => { stroke: euiTheme.colors.mediumShade, '&.critical': { - fill: mlColors.critical, + fill: ML_SEVERITY_COLORS.CRITICAL, }, '&.major': { - fill: mlColors.major, + fill: ML_SEVERITY_COLORS.MAJOR, }, '&.minor': { - fill: mlColors.minor, + fill: ML_SEVERITY_COLORS.MINOR, }, '&.warning': { - fill: mlColors.warning, + fill: ML_SEVERITY_COLORS.WARNING, }, '&.low': { - fill: mlColors.lowWarning, + fill: ML_SEVERITY_COLORS.LOW, }, }, diff --git a/x-pack/platform/plugins/shared/ml/public/embeddables/types.ts b/x-pack/platform/plugins/shared/ml/public/embeddables/types.ts index 1bcb0f9ae3579..56749e7ab40cb 100644 --- a/x-pack/platform/plugins/shared/ml/public/embeddables/types.ts +++ b/x-pack/platform/plugins/shared/ml/public/embeddables/types.ts @@ -7,7 +7,8 @@ import type { CoreStart } from '@kbn/core/public'; import type { RefreshInterval } from '@kbn/data-plugin/common'; -import type { DefaultEmbeddableApi, EmbeddableInput } from '@kbn/embeddable-plugin/public'; +import type { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; +import type { EmbeddableInput } from '@kbn/embeddable-plugin/common'; import type { Filter, Query, TimeRange } from '@kbn/es-query'; import type { MlEntityField } from '@kbn/ml-anomaly-utils'; import type { diff --git a/x-pack/platform/plugins/shared/rule_registry/server/search_strategy/search_strategy.ts b/x-pack/platform/plugins/shared/rule_registry/server/search_strategy/search_strategy.ts index 246b38aaf733d..bfecc958ce3d1 100644 --- a/x-pack/platform/plugins/shared/rule_registry/server/search_strategy/search_strategy.ts +++ b/x-pack/platform/plugins/shared/rule_registry/server/search_strategy/search_strategy.ts @@ -64,7 +64,7 @@ export const ruleRegistrySearchStrategyProvider = ( const registeredRuleTypes = alerting.listTypes(); - const [validRuleTypeIds, invalidRuleTypeIds] = partition(request.ruleTypeIds, (ruleTypeId) => + const [validRuleTypeIds, _] = partition(request.ruleTypeIds, (ruleTypeId) => registeredRuleTypes.has(ruleTypeId) ); @@ -75,12 +75,6 @@ export const ruleRegistrySearchStrategyProvider = ( ); } - invalidRuleTypeIds.forEach((ruleTypeId) => { - logger.warn( - `Found invalid rule type '${ruleTypeId}' while using ${RULE_SEARCH_STRATEGY_NAME} search strategy. No alert data from this rule type will be searched.` - ); - }); - const securityAuditLogger = security?.audit.asScoped(deps.request); const getActiveSpace = async () => spaces?.spacesService.getActiveSpace(deps.request); diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_modal.tsx b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_modal.tsx index e90c7db5de0b4..6e590b0ed38d4 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_modal.tsx +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/connector_add_modal.tsx @@ -21,6 +21,7 @@ import { EuiBetaBadge, EuiButtonGroup, EuiSpacer, + useGeneratedHtmlId, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import './connector_add_modal.scss'; @@ -214,12 +215,15 @@ const ConnectorAddModal = ({ // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + const modalTitleId = useGeneratedHtmlId(); + return ( @@ -231,7 +235,7 @@ const ConnectorAddModal = ({ - + { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -317,7 +316,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -348,7 +346,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', @@ -365,7 +362,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', diff --git a/x-pack/plugins/reporting/server/lib/content_stream.ts b/x-pack/plugins/reporting/server/lib/content_stream.ts index b3c113dd43c3b..e5006a4a45268 100644 --- a/x-pack/plugins/reporting/server/lib/content_stream.ts +++ b/x-pack/plugins/reporting/server/lib/content_stream.ts @@ -192,7 +192,6 @@ export class ContentStream extends Duplex { const body = await this.client.update({ ...this.document, - refresh: 'wait_for', body: { doc: { output: { content }, @@ -212,7 +211,6 @@ export class ContentStream extends Duplex { await this.client.index({ id, index: REPORTING_DATA_STREAM_ALIAS, - refresh: 'wait_for', op_type: 'create', body: { parent_id: parentId, diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx b/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx index 0ddb633cd1f5c..8d0dba194520c 100644 --- a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx +++ b/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx @@ -120,8 +120,6 @@ describe('SpaceAssignedRolesTable', () => { expect(screen.getByTestId('checkboxSelectAll')).toBeInTheDocument(); }); - // it('will not render the bulk actions context menu when the table is in readOnly mode', () => {}) - it('prevents modification of reserved roles', () => { renderTestComponent({ assignedRoles: spaceAssignedRoles, @@ -134,8 +132,7 @@ describe('SpaceAssignedRolesTable', () => { expect(trisolarisRow).toBeInTheDocument(); - // We expect a length of 2 because EUI also adds a second node for screen readers - expect(within(trisolarisRow).getAllByText('Reserved')).toHaveLength(2); + expect(within(trisolarisRow).getAllByText('Reserved')).toHaveLength(1); expect(within(trisolarisRow).getByTestId('spaceRoleCellActionLocked')).toBeInTheDocument(); expect(within(trisolarisRow).getByTestId('spaceRoleCellActionLocked')).toBeDisabled(); expect( diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx b/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx index f59bd00561671..ca58a724df928 100644 --- a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx +++ b/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx @@ -9,6 +9,7 @@ import { EuiBadge, EuiButton, EuiButtonEmpty, + EuiButtonIcon, EuiContextMenu, EuiFlexGroup, EuiFlexItem, @@ -18,6 +19,7 @@ import { EuiPopover, EuiText, EuiTextColor, + EuiToolTip, } from '@elastic/eui'; import type { CriteriaWithPagination, @@ -140,33 +142,43 @@ const getTableColumns = ({ ), actions: [ { - type: 'icon', - icon: 'lock', - href: '#', - target: '_self', - 'data-test-subj': 'spaceRoleCellActionLocked', - name: (role) => - isRoleReserved(role) - ? i18n.translate( - 'xpack.spaces.management.spaceDetails.rolesTable.column.actions.notEditableTitle.isReserved', - { defaultMessage: 'Reserved' } - ) - : i18n.translate( - 'xpack.spaces.management.spaceDetails.rolesTable.column.actions.notEditableTitle.isAssignedToAll', - { defaultMessage: 'Assigned to all spaces' } - ), - description: (role) => - isRoleReserved(role) - ? i18n.translate( - 'xpack.spaces.management.spaceDetails.rolesTable.column.actions.notEditableDescription.isReserved', - { defaultMessage: `You can’t edit the access of reserved roles to this space.` } - ) - : i18n.translate( - 'xpack.spaces.management.spaceDetails.rolesTable.column.actions.notEditableDescription.isAssignedToAll', - { - defaultMessage: `You can't edit the access of a role that is assigned to all spaces.`, + render: (role) => { + return ( + + + + ); + }, showOnHover: true, enabled: () => false, available: (rowRecord) => !isEditableRole(rowRecord), diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/configuration_types.d.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/configuration_types.d.ts index db0b4163f174d..69bd7887a41b4 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/configuration_types.d.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/configuration_types.d.ts @@ -5,8 +5,8 @@ * 2.0. */ -import t from 'io-ts'; -import { agentConfigurationIntakeRt } from './runtime_types/agent_configuration_intake_rt'; +import type t from 'io-ts'; +import type { agentConfigurationIntakeRt } from './runtime_types/agent_configuration_intake_rt'; export type AgentConfigurationIntake = t.TypeOf; diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/agent_configuration_intake_rt.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/agent_configuration_intake_rt.ts index 7d5b6ad12a388..518aeeacb2dbe 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/agent_configuration_intake_rt.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/agent_configuration_intake_rt.ts @@ -7,7 +7,7 @@ import * as t from 'io-ts'; import { settingDefinitions } from '../setting_definitions'; -import { SettingValidation } from '../setting_definitions/types'; +import type { SettingValidation } from '../setting_definitions/types'; // retrieve validation from config definitions settings and validate on the server const knownSettings = settingDefinitions.reduce>( diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/duration_rt.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/duration_rt.ts index c968a7cacebc4..1b78248ed7304 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/duration_rt.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/runtime_types/duration_rt.ts @@ -7,8 +7,10 @@ import * as t from 'io-ts'; import { either } from 'fp-ts/lib/Either'; -import moment, { unitOfTime } from 'moment'; -import { amountAndUnitToObject, AmountAndUnit } from '../amount_and_unit'; +import type { unitOfTime } from 'moment'; +import moment from 'moment'; +import type { AmountAndUnit } from '../amount_and_unit'; +import { amountAndUnitToObject } from '../amount_and_unit'; import { getRangeTypeMessage } from './get_range_type_message'; function toMilliseconds({ amount, unit }: AmountAndUnit) { diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/general_settings.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/general_settings.ts index 07db609558346..8f134814d8b30 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/general_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/general_settings.ts @@ -10,7 +10,7 @@ import { captureBodyRt } from '../runtime_types/capture_body_rt'; import { logLevelRt } from '../runtime_types/log_level_rt'; import { logEcsReformattingRt } from '../runtime_types/log_ecs_reformatting_rt'; import { traceContinuationStrategyRt } from '../runtime_types/trace_continuation_strategy_rt'; -import { RawSettingDefinition } from './types'; +import type { RawSettingDefinition } from './types'; export const generalSettings: RawSettingDefinition[] = [ // API Request Size diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.test.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.test.ts index 8f64a88a5dc0e..341026bd094b7 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.test.ts @@ -7,8 +7,8 @@ import { omit } from 'lodash'; import { filterByAgent, settingDefinitions } from '.'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; -import { SettingDefinition } from './types'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { SettingDefinition } from './types'; describe('filterByAgent', () => { describe('when `excludeAgents` is dotnet and nodejs', () => { diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.ts index ce675efa094e5..561c822307bec 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/index.ts @@ -9,13 +9,13 @@ import * as t from 'io-ts'; import { sortBy } from 'lodash'; import { isRight } from 'fp-ts/lib/Either'; import { PathReporter } from 'io-ts/lib/PathReporter'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; import { booleanRt } from '../runtime_types/boolean_rt'; import { getIntegerRt } from '../runtime_types/integer_rt'; import { isRumOrMobileAgentName } from '../../agent_name'; import { floatThreeDecimalPlacesRt } from '../runtime_types/float_three_decimal_places_rt'; import { floatFourDecimalPlacesRt } from '../runtime_types/float_four_decimal_places_rt'; -import { RawSettingDefinition, SettingDefinition } from './types'; +import type { RawSettingDefinition, SettingDefinition } from './types'; import { generalSettings } from './general_settings'; import { javaSettings } from './java_settings'; import { mobileSettings } from './mobile_settings'; diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/java_settings.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/java_settings.ts index efba2ca061e73..b7b3e0f6016e4 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/java_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/java_settings.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { RawSettingDefinition } from './types'; +import type { RawSettingDefinition } from './types'; export const javaSettings: RawSettingDefinition[] = [ { diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/mobile_settings.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/mobile_settings.ts index b171614f7fb2a..94b446e03e345 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/mobile_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/mobile_settings.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { RawSettingDefinition } from './types'; +import type { RawSettingDefinition } from './types'; export const mobileSettings: RawSettingDefinition[] = [ // Session sample rate diff --git a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/types.d.ts b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/types.d.ts index 213e8c7cf86fc..1a1bcb0d079c3 100644 --- a/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/types.d.ts +++ b/x-pack/solutions/observability/plugins/apm/common/agent_configuration/setting_definitions/types.d.ts @@ -5,8 +5,8 @@ * 2.0. */ -import * as t from 'io-ts'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type * as t from 'io-ts'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; // TODO: is it possible to get rid of `any`? export type SettingValidation = t.Type; diff --git a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/apm_ml_job.ts b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/apm_ml_job.ts index b2091433e0c5f..ded3de81f6193 100644 --- a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/apm_ml_job.ts +++ b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/apm_ml_job.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { DATAFEED_STATE, JOB_STATE } from '@kbn/ml-plugin/common'; -import { Environment } from '../environment_rt'; +import type { DATAFEED_STATE, JOB_STATE } from '@kbn/ml-plugin/common'; +import type { Environment } from '../environment_rt'; export interface ApmMlJob { environment: Environment; diff --git a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.test.ts b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.test.ts index 1b24efd98f2a0..165ba04f18b57 100644 --- a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.test.ts @@ -6,10 +6,10 @@ */ import { v4 as uuidv4 } from 'uuid'; import { ENVIRONMENT_ALL } from '../environment_filter_values'; -import { Environment } from '../environment_rt'; +import type { Environment } from '../environment_rt'; import { AnomalyDetectorType } from './apm_ml_detectors'; import { getPreferredServiceAnomalyTimeseries } from './get_preferred_service_anomaly_timeseries'; -import { ServiceAnomalyTimeseries } from './service_anomaly_timeseries'; +import type { ServiceAnomalyTimeseries } from './service_anomaly_timeseries'; const PROD = 'production' as Environment; const DEV = 'development' as Environment; diff --git a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.ts b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.ts index 0f1ff8c4f30a6..34ff0467a6625 100644 --- a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/get_preferred_service_anomaly_timeseries.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { Environment } from '../environment_rt'; -import { AnomalyDetectorType } from './apm_ml_detectors'; -import { ServiceAnomalyTimeseries } from './service_anomaly_timeseries'; +import type { Environment } from '../environment_rt'; +import type { AnomalyDetectorType } from './apm_ml_detectors'; +import type { ServiceAnomalyTimeseries } from './service_anomaly_timeseries'; export function getPreferredServiceAnomalyTimeseries({ preferredEnvironment, diff --git a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/index.ts b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/index.ts index 68b6aa72fca58..1789d28b1f892 100644 --- a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/index.ts +++ b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/index.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { getSeverityType } from '@kbn/ml-anomaly-utils/get_severity_type'; import { getSeverityColor as mlGetSeverityColor } from '@kbn/ml-anomaly-utils/get_severity_color'; import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; -import { ServiceHealthStatus } from '../service_health_status'; +import type { ServiceHealthStatus } from '../service_health_status'; export interface ServiceAnomalyStats { transactionType?: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/service_anomaly_timeseries.ts b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/service_anomaly_timeseries.ts index 40fcf198441d8..21a7d75527225 100644 --- a/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/service_anomaly_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/common/anomaly_detection/service_anomaly_timeseries.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Coordinate } from '../../typings/timeseries'; -import { AnomalyDetectorType } from './apm_ml_detectors'; +import type { Coordinate } from '../../typings/timeseries'; +import type { AnomalyDetectorType } from './apm_ml_detectors'; export interface ServiceAnomalyTimeseries { jobId: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/connections.ts b/x-pack/solutions/observability/plugins/apm/common/connections.ts index 10a10e96e5190..1253d10a94842 100644 --- a/x-pack/solutions/observability/plugins/apm/common/connections.ts +++ b/x-pack/solutions/observability/plugins/apm/common/connections.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AgentName } from '../typings/es_schemas/ui/fields/agent'; -import { Coordinate } from '../typings/timeseries'; +import type { AgentName } from '../typings/es_schemas/ui/fields/agent'; +import type { Coordinate } from '../typings/timeseries'; export enum NodeType { service = 'service', diff --git a/x-pack/solutions/observability/plugins/apm/common/correlations/failed_transactions_correlations/types.ts b/x-pack/solutions/observability/plugins/apm/common/correlations/failed_transactions_correlations/types.ts index 27bdbb294aea0..0dc8b62bdde43 100644 --- a/x-pack/solutions/observability/plugins/apm/common/correlations/failed_transactions_correlations/types.ts +++ b/x-pack/solutions/observability/plugins/apm/common/correlations/failed_transactions_correlations/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { FieldValuePair, HistogramItem } from '../types'; +import type { FieldValuePair, HistogramItem } from '../types'; -import { CORRELATIONS_IMPACT_THRESHOLD } from './constants'; +import type { CORRELATIONS_IMPACT_THRESHOLD } from './constants'; export interface FailedTransactionsCorrelation extends FieldValuePair { doc_count: number; diff --git a/x-pack/solutions/observability/plugins/apm/common/correlations/latency_correlations/types.ts b/x-pack/solutions/observability/plugins/apm/common/correlations/latency_correlations/types.ts index 80067337a8b33..81ee264e58504 100644 --- a/x-pack/solutions/observability/plugins/apm/common/correlations/latency_correlations/types.ts +++ b/x-pack/solutions/observability/plugins/apm/common/correlations/latency_correlations/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { FieldValuePair, HistogramItem } from '../types'; +import type { FieldValuePair, HistogramItem } from '../types'; export interface LatencyCorrelation extends FieldValuePair { correlation: number; diff --git a/x-pack/solutions/observability/plugins/apm/common/correlations/types.ts b/x-pack/solutions/observability/plugins/apm/common/correlations/types.ts index a03ce73b76db6..766afb38e4176 100644 --- a/x-pack/solutions/observability/plugins/apm/common/correlations/types.ts +++ b/x-pack/solutions/observability/plugins/apm/common/correlations/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { Environment } from '../environment_rt'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { Environment } from '../environment_rt'; export interface FieldValuePair { fieldName: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.test.ts b/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.test.ts index 61720dba3d472..b7b01a768aa22 100644 --- a/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.test.ts @@ -4,10 +4,11 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { apm, ApmFields, dedot } from '@kbn/apm-synthtrace-client'; +import type { ApmFields } from '@kbn/apm-synthtrace-client'; +import { apm, dedot } from '@kbn/apm-synthtrace-client'; import { getWaterfall } from '../../public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; -import { Span } from '../../typings/es_schemas/ui/span'; -import { Transaction } from '../../typings/es_schemas/ui/transaction'; +import type { Span } from '../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../typings/es_schemas/ui/transaction'; import { getCriticalPath } from './get_critical_path'; describe('getCriticalPath', () => { diff --git a/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.ts b/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.ts index f881362b39078..60e5fd0691d97 100644 --- a/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.ts +++ b/x-pack/solutions/observability/plugins/apm/common/critical_path/get_critical_path.ts @@ -9,7 +9,7 @@ import type { IWaterfall, IWaterfallSpanOrTransaction, } from '../../public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; -import { CriticalPath, CriticalPathSegment } from './types'; +import type { CriticalPath, CriticalPathSegment } from './types'; export function getCriticalPath(waterfall: IWaterfall): CriticalPath { const segments: CriticalPathSegment[] = []; diff --git a/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link.test.ts b/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link.test.ts index c9bebede12afc..c3e7f1a151801 100644 --- a/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link.test.ts @@ -5,7 +5,7 @@ * 2.0. */ import { extractTemplateVariableNames, getEncodedCustomLinkUrl } from '.'; -import { Transaction } from '../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../typings/es_schemas/ui/transaction'; describe('Custom link', () => { describe('extractTemplateVariableNames', () => { diff --git a/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link_types.d.ts b/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link_types.d.ts index b9c4effc80ae1..446bfb62d403f 100644 --- a/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link_types.d.ts +++ b/x-pack/solutions/observability/plugins/apm/common/custom_link/custom_link_types.d.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { +import type { SERVICE_NAME, SERVICE_ENVIRONMENT, TRANSACTION_NAME, TRANSACTION_TYPE, } from '../es_fields/apm'; -import { FILTER_OPTIONS } from './custom_link_filter_options'; +import type { FILTER_OPTIONS } from './custom_link_filter_options'; export interface CustomLinkES { id?: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/custom_link/index.ts b/x-pack/solutions/observability/plugins/apm/common/custom_link/index.ts index cc8d206f9b2b7..4e030e7c3813c 100644 --- a/x-pack/solutions/observability/plugins/apm/common/custom_link/index.ts +++ b/x-pack/solutions/observability/plugins/apm/common/custom_link/index.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { get } from 'lodash'; import { set } from '@kbn/safer-lodash-set'; import Mustache from 'mustache'; -import { Transaction } from '../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../typings/es_schemas/ui/transaction'; export const INVALID_LICENSE = i18n.translate('xpack.apm.settings.customLink.license.text', { defaultMessage: diff --git a/x-pack/solutions/observability/plugins/apm/common/environment_filter_values.ts b/x-pack/solutions/observability/plugins/apm/common/environment_filter_values.ts index 3aabf455d674d..d8486c034822a 100644 --- a/x-pack/solutions/observability/plugins/apm/common/environment_filter_values.ts +++ b/x-pack/solutions/observability/plugins/apm/common/environment_filter_values.ts @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { escapeKuery } from '@kbn/es-query'; import { SERVICE_ENVIRONMENT } from './es_fields/apm'; -import { Environment } from './environment_rt'; +import type { Environment } from './environment_rt'; export const ENVIRONMENT_ALL_VALUE = 'ENVIRONMENT_ALL' as const; const ENVIRONMENT_NOT_DEFINED_VALUE = 'ENVIRONMENT_NOT_DEFINED' as const; diff --git a/x-pack/solutions/observability/plugins/apm/common/es_fields/es_fields.test.ts b/x-pack/solutions/observability/plugins/apm/common/es_fields/es_fields.test.ts index 12537d35afefe..4556e20c27479 100644 --- a/x-pack/solutions/observability/plugins/apm/common/es_fields/es_fields.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/es_fields/es_fields.test.ts @@ -6,10 +6,10 @@ */ import { get } from 'lodash'; -import { AllowUnknownProperties } from '../../typings/common'; -import { APMError } from '../../typings/es_schemas/ui/apm_error'; -import { Span } from '../../typings/es_schemas/ui/span'; -import { Transaction } from '../../typings/es_schemas/ui/transaction'; +import type { AllowUnknownProperties } from '../../typings/common'; +import type { APMError } from '../../typings/es_schemas/ui/apm_error'; +import type { Span } from '../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../typings/es_schemas/ui/transaction'; import * as allApmFieldNames from './apm'; import * as infraMetricsFieldNames from './infra_metrics'; diff --git a/x-pack/solutions/observability/plugins/apm/common/license_check.ts b/x-pack/solutions/observability/plugins/apm/common/license_check.ts index 6d732dc7917e2..15bc14968c64c 100644 --- a/x-pack/solutions/observability/plugins/apm/common/license_check.ts +++ b/x-pack/solutions/observability/plugins/apm/common/license_check.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ILicense, LicenseType } from '@kbn/licensing-plugin/common/types'; +import type { ILicense, LicenseType } from '@kbn/licensing-plugin/common/types'; function isActiveLicense(licenseType: LicenseType, license?: ILicense) { return license && license.isActive && license.hasAtLeast(licenseType); diff --git a/x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts b/x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts index 151e7db67f52e..d1629348a4e23 100644 --- a/x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts +++ b/x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts @@ -13,6 +13,10 @@ import { formatDurationFromTimeUnitChar } from '@kbn/observability-plugin/common import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import { ApmRuleType } from '@kbn/rule-data-utils'; +import type { ErrorCountRuleParams } from '@kbn/response-ops-rule-params/error_count'; +import type { TransactionDurationRuleParams } from '@kbn/response-ops-rule-params/transaction_duration'; +import type { AnomalyRuleParams } from '@kbn/response-ops-rule-params/apm_anomaly'; +import type { TransactionErrorRateRuleParams } from '@kbn/response-ops-rule-params/transaction_error_rate'; import { ERROR_GROUP_ID, ERROR_GROUP_NAME, @@ -32,6 +36,13 @@ export enum AggregationType { P99 = '99th', } +export interface ApmRuleParamsType { + [ApmRuleType.TransactionDuration]: TransactionDurationRuleParams; + [ApmRuleType.ErrorCount]: ErrorCountRuleParams; + [ApmRuleType.Anomaly]: AnomalyRuleParams; + [ApmRuleType.TransactionErrorRate]: TransactionErrorRateRuleParams; +} + export const THRESHOLD_MET_GROUP_ID = 'threshold_met'; export type ThresholdMetActionGroupId = typeof THRESHOLD_MET_GROUP_ID; export const THRESHOLD_MET_GROUP: ActionGroup = { diff --git a/x-pack/solutions/observability/plugins/apm/common/rules/schema.ts b/x-pack/solutions/observability/plugins/apm/common/rules/schema.ts index 0e6b0c166a688..29a1c36675c11 100644 --- a/x-pack/solutions/observability/plugins/apm/common/rules/schema.ts +++ b/x-pack/solutions/observability/plugins/apm/common/rules/schema.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; -import { ApmRuleType } from '@kbn/rule-data-utils'; +import type { ApmRuleType } from '@kbn/rule-data-utils'; import { AnomalyDetectorType } from '../anomaly_detection/apm_ml_detectors'; import { AggregationType } from './apm_rule_types'; diff --git a/x-pack/solutions/observability/plugins/apm/common/service_inventory.ts b/x-pack/solutions/observability/plugins/apm/common/service_inventory.ts index f758bc083cf78..7ffc1b3d31cb8 100644 --- a/x-pack/solutions/observability/plugins/apm/common/service_inventory.ts +++ b/x-pack/solutions/observability/plugins/apm/common/service_inventory.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { AgentName } from '@kbn/elastic-agent-utils'; -import { ServiceHealthStatus } from './service_health_status'; +import type { AgentName } from '@kbn/elastic-agent-utils'; +import type { ServiceHealthStatus } from './service_health_status'; export interface ServiceListItem { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/service_map.ts b/x-pack/solutions/observability/plugins/apm/common/service_map.ts index c4ac295206396..254bcdb710315 100644 --- a/x-pack/solutions/observability/plugins/apm/common/service_map.ts +++ b/x-pack/solutions/observability/plugins/apm/common/service_map.ts @@ -6,9 +6,9 @@ */ import { i18n } from '@kbn/i18n'; -import cytoscape from 'cytoscape'; -import { Coordinate } from '../typings/timeseries'; -import { ServiceAnomalyStats } from './anomaly_detection'; +import type cytoscape from 'cytoscape'; +import type { Coordinate } from '../typings/timeseries'; +import type { ServiceAnomalyStats } from './anomaly_detection'; // These should be imported, but until TypeScript 4.2 we're inlining them here. // All instances of "agent.name", "service.name", "service.environment", "span.type", diff --git a/x-pack/solutions/observability/plugins/apm/common/span_links.ts b/x-pack/solutions/observability/plugins/apm/common/span_links.ts index cd5ce48e6802a..cd350e7ceaf6c 100644 --- a/x-pack/solutions/observability/plugins/apm/common/span_links.ts +++ b/x-pack/solutions/observability/plugins/apm/common/span_links.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { AgentName } from '../typings/es_schemas/ui/fields/agent'; -import { Environment } from './environment_rt'; +import type { AgentName } from '../typings/es_schemas/ui/fields/agent'; +import type { Environment } from './environment_rt'; export interface SpanLinkDetails { traceId: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/tutorial/tutorials.ts b/x-pack/solutions/observability/plugins/apm/common/tutorial/tutorials.ts index 32578351a4431..1c83564f9ed3a 100644 --- a/x-pack/solutions/observability/plugins/apm/common/tutorial/tutorials.ts +++ b/x-pack/solutions/observability/plugins/apm/common/tutorial/tutorials.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { CustomIntegration } from '@kbn/custom-integrations-plugin/common'; +import type { CustomIntegration } from '@kbn/custom-integrations-plugin/common'; const APM_INTEGRATION_CATEGORIES = ['observability', 'apm']; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/array_union_to_callable.ts b/x-pack/solutions/observability/plugins/apm/common/utils/array_union_to_callable.ts index f376f7cd4ef21..3282b8d5b6dd2 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/array_union_to_callable.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/array_union_to_callable.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; // work around a TypeScript limitation described in https://stackoverflow.com/posts/49511416 diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/environment_query.ts b/x-pack/solutions/observability/plugins/apm/common/utils/environment_query.ts index 9d2f179cca7e8..b31f1730d08b1 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/environment_query.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/environment_query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { SERVICE_ENVIRONMENT, SERVICE_NODE_NAME } from '../es_fields/apm'; import { ENVIRONMENT_ALL, ENVIRONMENT_NOT_DEFINED } from '../environment_filter_values'; import { SERVICE_NODE_NAME_MISSING } from '../service_nodes'; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/flatten_object.ts b/x-pack/solutions/observability/plugins/apm/common/utils/flatten_object.ts index 4171800826d1d..d8c132017843b 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/flatten_object.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/flatten_object.ts @@ -6,7 +6,7 @@ */ import { compact, isObject } from 'lodash'; -import { Maybe } from '../../typings/common'; +import type { Maybe } from '../../typings/common'; export interface KeyValuePair { key: string; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/duration.ts b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/duration.ts index 62cc4935f8f6e..20993e47f3991 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/duration.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/duration.ts @@ -10,8 +10,8 @@ import moment from 'moment'; import { memoize } from 'lodash'; import { NOT_AVAILABLE_LABEL } from '../../i18n'; import { asDecimalOrInteger, asInteger, asDecimal } from './formatters'; -import { TimeUnit } from './datetime'; -import { Maybe } from '../../../typings/common'; +import type { TimeUnit } from './datetime'; +import type { Maybe } from '../../../typings/common'; import { isFiniteNumber } from '../is_finite_number'; interface FormatterOptions { diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/formatters.ts b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/formatters.ts index 7c07bd89a9a4d..8c6636b30749d 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/formatters.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/formatters.ts @@ -7,7 +7,7 @@ import { asPercent as obltAsPercent } from '@kbn/observability-plugin/common'; import numeral from '@elastic/numeral'; -import { Maybe } from '../../../typings/common'; +import type { Maybe } from '../../../typings/common'; import { NOT_AVAILABLE_LABEL } from '../../i18n'; import { isFiniteNumber } from '../is_finite_number'; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/size.ts b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/size.ts index cf33462e26d82..7b4bab10c0cc2 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/formatters/size.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/formatters/size.ts @@ -7,7 +7,7 @@ import { memoize } from 'lodash'; import { asDecimal } from './formatters'; -import { Maybe } from '../../../typings/common'; +import type { Maybe } from '../../../typings/common'; function asKilobytes(value: number) { return `${asDecimal(value / 1000)} KB`; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/join_by_key/index.ts b/x-pack/solutions/observability/plugins/apm/common/utils/join_by_key/index.ts index b44186b9e11e9..f02723abce6de 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/join_by_key/index.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/join_by_key/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UnionToIntersection, ValuesType } from 'utility-types'; +import type { UnionToIntersection, ValuesType } from 'utility-types'; import { merge, castArray } from 'lodash'; import stableStringify from 'json-stable-stringify'; diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.test.ts b/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.test.ts index f965751333838..135c89f395241 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.test.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.test.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Coordinate } from '../../typings/timeseries'; +import type { Coordinate } from '../../typings/timeseries'; import { offsetPreviousPeriodCoordinates } from './offset_previous_period_coordinate'; const currentPeriodTimeseries: Coordinate[] = [ diff --git a/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.ts b/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.ts index a84a19ab14778..56bbe4c58fe48 100644 --- a/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.ts +++ b/x-pack/solutions/observability/plugins/apm/common/utils/offset_previous_period_coordinate.ts @@ -6,7 +6,7 @@ */ import moment from 'moment'; -import { Coordinate } from '../../typings/timeseries'; +import type { Coordinate } from '../../typings/timeseries'; export function offsetPreviousPeriodCoordinates({ currentPeriodTimeseries, diff --git a/x-pack/solutions/observability/plugins/apm/common/waterfall/typings.ts b/x-pack/solutions/observability/plugins/apm/common/waterfall/typings.ts index 2fd0be94a5c5f..7d48428976b57 100644 --- a/x-pack/solutions/observability/plugins/apm/common/waterfall/typings.ts +++ b/x-pack/solutions/observability/plugins/apm/common/waterfall/typings.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { Exception } from '../../typings/es_schemas/raw/error_raw'; -import { EventOutcome } from '../../typings/es_schemas/raw/fields/event_outcome'; -import { SpanLink } from '../../typings/es_schemas/raw/fields/span_links'; -import { TimestampUs } from '../../typings/es_schemas/raw/fields/timestamp_us'; -import { AgentName } from '../../typings/es_schemas/ui/fields/agent'; +import type { Exception } from '../../typings/es_schemas/raw/error_raw'; +import type { EventOutcome } from '../../typings/es_schemas/raw/fields/event_outcome'; +import type { SpanLink } from '../../typings/es_schemas/raw/fields/span_links'; +import type { TimestampUs } from '../../typings/es_schemas/raw/fields/timestamp_us'; +import type { AgentName } from '../../typings/es_schemas/ui/fields/agent'; export interface WaterfallTransaction { timestamp: TimestampUs; diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/dependencies/generate_many_dependencies.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/dependencies/generate_many_dependencies.ts index 27ce71db2e2c4..bf9d1802ba6f9 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/dependencies/generate_many_dependencies.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/dependencies/generate_many_dependencies.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { apm, Instance, timerange } from '@kbn/apm-synthtrace-client'; +import type { Instance } from '@kbn/apm-synthtrace-client'; +import { apm, timerange } from '@kbn/apm-synthtrace-client'; const MAX_DEPENDENCIES = 10000; const MAX_DEPENDENCIES_PER_SERVICE = 500; diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts index 4f4985224be6f..085d0ece47736 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts @@ -5,7 +5,7 @@ * 2.0. */ import { apm, timerange } from '@kbn/apm-synthtrace-client'; -import { SpanLink } from '@kbn/apm-plugin/typings/es_schemas/raw/fields/span_links'; +import type { SpanLink } from '@kbn/apm-plugin/typings/es_schemas/raw/fields/span_links'; import { synthtrace } from '../../../synthtrace'; function getProducerInternalOnly() { diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/support/commands.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/support/commands.ts index 5085fe7d171f3..aeab0d3683acf 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/support/commands.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress/support/commands.ts @@ -5,7 +5,7 @@ * 2.0. */ import 'cypress-real-events/support'; -import { Interception } from 'cypress/types/net-stubbing'; +import type { Interception } from 'cypress/types/net-stubbing'; import 'cypress-axe'; import moment from 'moment'; import '@frsource/cypress-plugin-visual-regression-diff'; diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress_test_runner.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress_test_runner.ts index f33e4aa5b72e1..2d6804917f0ae 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress_test_runner.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/cypress_test_runner.ts @@ -10,7 +10,7 @@ import cypress from 'cypress'; import path from 'path'; import Url from 'url'; import { createApmUsers } from '@kbn/apm-plugin/server/test_helpers/create_apm_users/create_apm_users'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; export async function cypressTestRunner({ getService }: FtrProviderContext) { const config = getService('config'); diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_config.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_config.ts index 58cf601c33c43..5be4a8630f374 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_config.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_config.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import type { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; import { commonFunctionalServices } from '@kbn/ftr-common-functional-services'; import { commonFunctionalUIServices } from '@kbn/ftr-common-functional-ui-services'; import { cypressTestRunner } from './cypress_test_runner'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; async function ftrConfig({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( diff --git a/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_provider_context.d.ts b/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_provider_context.d.ts index b87f35adcccf2..30a5f1fe518da 100644 --- a/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_provider_context.d.ts +++ b/x-pack/solutions/observability/plugins/apm/ftr_e2e/ftr_provider_context.d.ts @@ -5,6 +5,6 @@ * 2.0. */ -import { GenericFtrProviderContext } from '@kbn/test'; +import type { GenericFtrProviderContext } from '@kbn/test'; export type FtrProviderContext = GenericFtrProviderContext<{}, {}>; diff --git a/x-pack/solutions/observability/plugins/apm/public/application/index.tsx b/x-pack/solutions/observability/plugins/apm/public/application/index.tsx index f9785a136b06e..aa2aa97453ad0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/application/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/application/index.tsx @@ -8,11 +8,12 @@ import React from 'react'; import ReactDOM from 'react-dom'; import type { ObservabilityRuleTypeRegistry } from '@kbn/observability-plugin/public'; -import { AppMountParameters, CoreStart, APP_WRAPPER_CLASS } from '@kbn/core/public'; +import type { AppMountParameters, CoreStart } from '@kbn/core/public'; +import { APP_WRAPPER_CLASS } from '@kbn/core/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme'; -import { ConfigSchema } from '..'; -import { ApmPluginSetupDeps, ApmPluginStartDeps, ApmServices } from '../plugin'; +import type { ConfigSchema } from '..'; +import type { ApmPluginSetupDeps, ApmPluginStartDeps, ApmServices } from '../plugin'; import { createCallApmApi } from '../services/rest/create_call_apm_api'; import { setHelpExtension } from '../set_help_extension'; import { setReadonlyBadge } from '../update_badge'; diff --git a/x-pack/solutions/observability/plugins/apm/public/assistant_functions/get_apm_timeseries.tsx b/x-pack/solutions/observability/plugins/apm/public/assistant_functions/get_apm_timeseries.tsx index 9c29bb936db8a..ef96fe9141a4b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/assistant_functions/get_apm_timeseries.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/assistant_functions/get_apm_timeseries.tsx @@ -19,7 +19,7 @@ import type { GetApmTimeseriesFunctionArguments, GetApmTimeseriesFunctionResponse, } from '../../server/assistant_functions/get_apm_timeseries'; -import { Coordinate, TimeSeries } from '../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../typings/timeseries'; import { ChartType, getTimeSeriesColor, diff --git a/x-pack/solutions/observability/plugins/apm/public/assistant_functions/index.ts b/x-pack/solutions/observability/plugins/apm/public/assistant_functions/index.ts index 773d2fbfba27f..32ad04141edc4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/assistant_functions/index.ts +++ b/x-pack/solutions/observability/plugins/apm/public/assistant_functions/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { RegisterRenderFunctionDefinition } from '@kbn/observability-ai-assistant-plugin/public/types'; +import type { RegisterRenderFunctionDefinition } from '@kbn/observability-ai-assistant-plugin/public/types'; import { registerGetApmTimeseriesFunction } from './get_apm_timeseries'; export async function registerAssistantFunctions({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/index.tsx index ca9e4e1182c92..a2a6072db01a1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/index.tsx @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { defaults, omit } from 'lodash'; import React, { useEffect } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; @@ -17,7 +17,7 @@ import { EuiText } from '@elastic/eui'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; import { EnvironmentField, ServiceField, TransactionTypeField } from '../../utils/fields'; -import { AlertMetadata } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; import { ApmRuleParamsContainer } from '../../ui_components/apm_rule_params_container'; import { PopoverExpression } from '../../ui_components/popover_expression'; import { AnomalySeverity, SelectAnomalySeverity } from './select_anomaly_severity'; @@ -26,7 +26,7 @@ import { ANOMALY_DETECTOR_SELECTOR_OPTIONS, getApmMlDetectorLabel, } from '../../../../../common/rules/apm_rule_types'; -import { AnomalyDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors'; +import type { AnomalyDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors'; export interface AlertParams { anomalySeverityType?: diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_detector.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_detector.tsx index d0800b7ecf63a..a3469b6f2c2b9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_detector.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_detector.tsx @@ -6,9 +6,10 @@ */ import React, { useCallback } from 'react'; -import { EuiSelectable, EuiSelectableOption } from '@elastic/eui'; +import type { EuiSelectableOption } from '@elastic/eui'; +import { EuiSelectable } from '@elastic/eui'; import { ANOMALY_DETECTOR_SELECTOR_OPTIONS } from '../../../../../common/rules/apm_rule_types'; -import { AnomalyDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors'; +import type { AnomalyDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors'; interface Props { values: AnomalyDetectorType[]; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx index 1e36b104a099e..3ea2146acdd24 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/anomaly_rule_type/select_anomaly_severity.tsx @@ -9,10 +9,8 @@ import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiHealth, EuiSpacer, EuiSuperSelect, EuiText } from '@elastic/eui'; import { getSeverityColor } from '../../../../../common/anomaly_detection'; -import { - AnomalyAlertSeverityType, - ANOMALY_ALERT_SEVERITY_TYPES, -} from '../../../../../common/rules/apm_rule_types'; +import type { AnomalyAlertSeverityType } from '../../../../../common/rules/apm_rule_types'; +import { ANOMALY_ALERT_SEVERITY_TYPES } from '../../../../../common/rules/apm_rule_types'; export function AnomalySeverity({ type }: { type: AnomalyAlertSeverityType }) { const selectedOption = ANOMALY_ALERT_SEVERITY_TYPES.find((option) => option.type === type)!; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.stories.tsx index 4437a05a3c731..a81c0722c6baa 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.stories.tsx @@ -5,16 +5,17 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React, { useState } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; -import { ErrorCountRuleParams, ErrorCountRuleType } from '.'; +import type { ErrorCountRuleParams } from '.'; +import { ErrorCountRuleType } from '.'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; -import { AlertMetadata } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; const coreMock = { http: { get: async () => ({}) }, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx index e657fbd11d12e..2b9b252495837 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx @@ -8,13 +8,13 @@ import { i18n } from '@kbn/i18n'; import { defaults, omit } from 'lodash'; import React, { useCallback, useEffect } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ForLastExpression, TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import { EuiFormRow } from '@elastic/eui'; import { EuiSpacer } from '@elastic/eui'; -import { EuiSwitchEvent } from '@elastic/eui'; -import { SearchConfigurationType } from '../../../../../common/rules/schema'; +import type { EuiSwitchEvent } from '@elastic/eui'; +import type { SearchConfigurationType } from '../../../../../common/rules/schema'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { asInteger } from '../../../../../common/utils/formatters'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; @@ -26,7 +26,8 @@ import { IsAboveField, ServiceField, } from '../../utils/fields'; -import { AlertMetadata, getIntervalAndTimeRange } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; +import { getIntervalAndTimeRange } from '../../utils/helper'; import { ApmRuleParamsContainer } from '../../ui_components/apm_rule_params_container'; import { APMRuleGroupBy } from '../../ui_components/apm_rule_group_by'; import { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/register_apm_rule_types.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/register_apm_rule_types.ts index 57200ec72a7e9..633308babcf10 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/register_apm_rule_types.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/register_apm_rule_types.ts @@ -16,7 +16,7 @@ import { transactionDurationMessage, transactionErrorRateMessage, } from '../../../../common/rules/default_action_message'; -import { AlertParams } from './anomaly_rule_type'; +import type { AlertParams } from './anomaly_rule_type'; // copied from elasticsearch_fieldnames.ts to limit page load bundle size const SERVICE_ENVIRONMENT = 'service.environment'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.stories.tsx index c6418d70fc080..3208c3fb52152 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.stories.tsx @@ -5,13 +5,15 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import React, { ComponentType, useState } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { Story } from '@storybook/react'; +import type { ComponentType } from 'react'; +import React, { useState } from 'react'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { TransactionDurationRuleParams, TransactionDurationRuleType } from '.'; +import type { TransactionDurationRuleParams } from '.'; +import { TransactionDurationRuleType } from '.'; import { AggregationType } from '../../../../../common/rules/apm_rule_types'; -import { AlertMetadata } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; const KibanaReactContext = createKibanaReactContext({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx index f2f2ab0e50510..2b4f0c4e354c6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx @@ -9,13 +9,13 @@ import { EuiSelect } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { defaults, map, omit } from 'lodash'; import React, { useCallback, useEffect } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ForLastExpression, TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import { EuiFormRow } from '@elastic/eui'; import { EuiSpacer } from '@elastic/eui'; -import { EuiSwitchEvent } from '@elastic/eui'; -import { SearchConfigurationType } from '../../../../../common/rules/schema'; +import type { EuiSwitchEvent } from '@elastic/eui'; +import type { SearchConfigurationType } from '@kbn/response-ops-rule-params/common'; import { AggregationType } from '../../../../../common/rules/apm_rule_types'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { getDurationFormatter } from '../../../../../common/utils/formatters'; @@ -33,7 +33,8 @@ import { TransactionTypeField, TransactionNameField, } from '../../utils/fields'; -import { AlertMetadata, getIntervalAndTimeRange } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; +import { getIntervalAndTimeRange } from '../../utils/helper'; import { ApmRuleParamsContainer } from '../../ui_components/apm_rule_params_container'; import { PopoverExpression } from '../../ui_components/popover_expression'; import { APMRuleGroupBy } from '../../ui_components/apm_rule_group_by'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.stories.tsx index 7b8a073417a40..fc044ba58402a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.stories.tsx @@ -5,12 +5,14 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import React, { ComponentType, useState } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { Story } from '@storybook/react'; +import type { ComponentType } from 'react'; +import React, { useState } from 'react'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { ErrorRateRuleParams, TransactionErrorRateRuleType } from '.'; -import { AlertMetadata } from '../../utils/helper'; +import type { ErrorRateRuleParams } from '.'; +import { TransactionErrorRateRuleType } from '.'; +import type { AlertMetadata } from '../../utils/helper'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; const KibanaReactContext = createKibanaReactContext({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx index 35a64ed9d8c2a..78287c223b1fb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx @@ -8,13 +8,13 @@ import { defaults, omit } from 'lodash'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useEffect } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ForLastExpression, TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import { EuiFormRow } from '@elastic/eui'; import { EuiSpacer } from '@elastic/eui'; -import { EuiSwitchEvent } from '@elastic/eui'; -import { SearchConfigurationType } from '../../../../../common/rules/schema'; +import type { EuiSwitchEvent } from '@elastic/eui'; +import type { SearchConfigurationType } from '@kbn/response-ops-rule-params/common'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { asPercent } from '../../../../../common/utils/formatters'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; @@ -27,7 +27,8 @@ import { TransactionTypeField, TransactionNameField, } from '../../utils/fields'; -import { AlertMetadata, getIntervalAndTimeRange } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; +import { getIntervalAndTimeRange } from '../../utils/helper'; import { ApmRuleParamsContainer } from '../../ui_components/apm_rule_params_container'; import { APMRuleGroupBy } from '../../ui_components/apm_rule_group_by'; import { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/constants.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/constants.ts index bd333b40e5a69..2c66c59f2c5e1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/constants.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/constants.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SettingsSpec } from '@elastic/charts'; +import type { SettingsSpec } from '@elastic/charts'; export const DEFAULT_DATE_FORMAT = 'HH:mm:ss'; export const CHART_SETTINGS: Partial = { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/failed_transaction_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/failed_transaction_chart.tsx index b917d6226465c..bb01fdb084669 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/failed_transaction_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/failed_transaction_chart.tsx @@ -7,27 +7,27 @@ /* Error Rate */ import React from 'react'; +import type { RecursivePartial } from '@elastic/eui'; import { EuiFlexItem, EuiPanel, EuiFlexGroup, EuiTitle, EuiIconTip, - RecursivePartial, useEuiTheme, transparentize, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; -import { Theme } from '@elastic/charts'; +import type { Theme } from '@elastic/charts'; import { AlertActiveTimeRangeAnnotation, AlertAnnotation } from '@kbn/observability-alert-details'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { CHART_SETTINGS, DEFAULT_DATE_FORMAT } from './constants'; import { useFetcher } from '../../../../hooks/use_fetcher'; import { ChartType } from '../../../shared/charts/helper/get_timeseries_color'; import * as get_timeseries_color from '../../../shared/charts/helper/get_timeseries_color'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { errorRateI18n } from '../../../shared/charts/failed_transaction_rate_chart'; import { TimeseriesChart } from '../../../shared/charts/timeseries_chart'; import { yLabelFormat } from './helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx index ada563851bdcc..2d7bb9aab2662 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx @@ -22,7 +22,7 @@ import { ALERT_START, } from '@kbn/rule-data-utils'; import { EuiCallOut } from '@elastic/eui'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { SERVICE_ENVIRONMENT, SERVICE_NAME, @@ -36,7 +36,7 @@ import FailedTransactionChart from './failed_transaction_chart'; import { getAggsTypeFromRule } from './helpers'; import LatencyChart from './latency_chart'; import ThroughputChart from './throughput_chart'; -import { AlertDetailsAppSectionProps } from './types'; +import type { AlertDetailsAppSectionProps } from './types'; import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; export function AlertDetailsAppSection({ rule, alert, timeZone }: AlertDetailsAppSectionProps) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/latency_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/latency_chart.tsx index 74468c5152ec5..33b7233732c7d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/latency_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/latency_chart.tsx @@ -5,12 +5,13 @@ * 2.0. */ -import { Theme } from '@elastic/charts'; -import { RecursivePartial } from '@elastic/eui'; -import React, { useMemo, ReactElement } from 'react'; +import type { Theme } from '@elastic/charts'; +import type { RecursivePartial } from '@elastic/eui'; +import type { ReactElement } from 'react'; +import React, { useMemo } from 'react'; import { EuiFlexItem, EuiPanel, EuiFlexGroup, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { getDurationFormatter } from '@kbn/observability-plugin/common'; import { ALERT_RULE_TYPE_ID, ALERT_EVALUATION_THRESHOLD, ALERT_END } from '@kbn/rule-data-utils'; import type { TopAlert } from '@kbn/observability-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/throughput_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/throughput_chart.tsx index f70de0861bb28..3a610e9fdd2a4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/throughput_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/throughput_chart.tsx @@ -6,16 +6,10 @@ */ import React from 'react'; -import { Theme } from '@elastic/charts'; -import { BoolQuery } from '@kbn/es-query'; -import { - RecursivePartial, - EuiFlexItem, - EuiPanel, - EuiFlexGroup, - EuiTitle, - EuiIconTip, -} from '@elastic/eui'; +import type { Theme } from '@elastic/charts'; +import type { BoolQuery } from '@kbn/es-query'; +import type { RecursivePartial } from '@elastic/eui'; +import { EuiFlexItem, EuiPanel, EuiFlexGroup, EuiTitle, EuiIconTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { CHART_SETTINGS } from './constants'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alerting_flyout/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alerting_flyout/index.tsx index 5736389277b0b..b56b12f883c96 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alerting_flyout/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alerting_flyout/index.tsx @@ -11,10 +11,10 @@ import { ApmRuleType } from '@kbn/rule-data-utils'; import type { RuleTypeParams } from '@kbn/alerting-plugin/common'; import { APM_SERVER_FEATURE_ID } from '../../../../../common/rules/apm_rule_types'; import { getInitialAlertValues } from '../../utils/get_initial_alert_values'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; import { useServiceName } from '../../../../hooks/use_service_name'; import { useApmParams } from '../../../../hooks/use_apm_params'; -import { AlertMetadata } from '../../utils/helper'; +import type { AlertMetadata } from '../../utils/helper'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { useTimeRange } from '../../../../hooks/use_time_range'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_kql_filter.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_kql_filter.tsx index 8715f4f145579..84e8af9a4f5a2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_kql_filter.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_kql_filter.tsx @@ -10,10 +10,10 @@ import React from 'react'; import { EuiSwitch } from '@elastic/eui'; import { EuiFormRow } from '@elastic/eui'; import { EuiSpacer } from '@elastic/eui'; -import { EuiSwitchEvent } from '@elastic/eui'; -import { TransactionDurationRuleParams } from '../rule_types/transaction_duration_rule_type'; -import { ErrorRateRuleParams } from '../rule_types/transaction_error_rate_rule_type'; -import { ErrorCountRuleParams } from '../rule_types/error_count_rule_type'; +import type { EuiSwitchEvent } from '@elastic/eui'; +import type { TransactionDurationRuleParams } from '../rule_types/transaction_duration_rule_type'; +import type { ErrorRateRuleParams } from '../rule_types/transaction_error_rate_rule_type'; +import type { ErrorCountRuleParams } from '../rule_types/error_count_rule_type'; import { ApmRuleUnifiedSearchBar } from './apm_rule_unified_search_bar'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.test.tsx index d6f05635b86ef..e3e927b4291b9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.test.tsx @@ -6,7 +6,8 @@ */ import { render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { ApmRuleParamsContainer } from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.tsx index 74a22c7c32d3c..9c5e7974bfd0c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_params_container/index.tsx @@ -9,7 +9,8 @@ import { EuiCallOut, EuiFlexGrid, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import React, { useEffect, useState } from 'react'; import { i18n } from '@kbn/i18n'; import moment from 'moment'; -import { getTimeUnitLabel, TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; +import { getTimeUnitLabel } from '@kbn/triggers-actions-ui-plugin/public'; interface MinimumWindowSize { value: number; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_unified_search_bar.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_unified_search_bar.tsx index 393492cfae9a0..36f1c8bb68f99 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_unified_search_bar.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/apm_rule_unified_search_bar.tsx @@ -7,13 +7,14 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiFormErrorText } from '@elastic/eui'; -import { Query, fromKueryExpression } from '@kbn/es-query'; +import type { Query } from '@kbn/es-query'; +import { fromKueryExpression } from '@kbn/es-query'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; import { useAdHocApmDataView } from '../../../hooks/use_adhoc_apm_data_view'; -import { TransactionDurationRuleParams } from '../rule_types/transaction_duration_rule_type'; -import { ErrorRateRuleParams } from '../rule_types/transaction_error_rate_rule_type'; -import { ErrorCountRuleParams } from '../rule_types/error_count_rule_type'; +import type { TransactionDurationRuleParams } from '../rule_types/transaction_duration_rule_type'; +import type { ErrorRateRuleParams } from '../rule_types/transaction_error_rate_rule_type'; +import type { ErrorCountRuleParams } from '../rule_types/error_count_rule_type'; export function ApmRuleUnifiedSearchBar({ placeholder, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/chart_preview_helper.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/chart_preview_helper.tsx index e82e14350cc7d..4c58a79d7cf0d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/chart_preview_helper.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/chart_preview_helper.tsx @@ -5,12 +5,13 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { EuiLoadingChart } from '@elastic/eui'; import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; -import { Coordinate } from '../../../../../typings/timeseries'; +import type { Coordinate } from '../../../../../typings/timeseries'; export const TIME_LABELS = { s: i18n.translate('xpack.apm.alerts.timeLabels.seconds', { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/index.tsx index c895be7294a2c..845253da4afa7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/chart_preview/index.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { RectAnnotationDatum, TickFormatter } from '@elastic/charts'; import { AnnotationDomainType, Axis, @@ -13,22 +14,20 @@ import { LineAnnotation, Position, RectAnnotation, - RectAnnotationDatum, ScaleType, Settings, - TickFormatter, Tooltip, niceTimeFormatter, } from '@elastic/charts'; import { EuiSpacer, useEuiTheme } from '@elastic/eui'; import React, { useMemo } from 'react'; -import { IUiSettingsClient } from '@kbn/core/public'; -import { TimeUnitChar } from '@kbn/observability-plugin/common'; +import type { IUiSettingsClient } from '@kbn/core/public'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; import moment from 'moment'; import { i18n } from '@kbn/i18n'; import { useElasticChartsTheme } from '@kbn/charts-theme'; -import { Coordinate } from '../../../../../typings/timeseries'; +import type { Coordinate } from '../../../../../typings/timeseries'; import { getTimeZone } from '../../../shared/charts/helper/timezone'; import { TimeLabelForData, TIME_LABELS, getDomain } from './chart_preview_helper'; import { ALERT_PREVIEW_BUCKET_SIZE } from '../../utils/helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.test.ts index 6427d23b7f2d6..c69f946142efe 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Capabilities } from '@kbn/core/public'; -import { ApmPluginSetupDeps } from '../../../plugin'; +import type { Capabilities } from '@kbn/core/public'; +import type { ApmPluginSetupDeps } from '../../../plugin'; import { getAlertingCapabilities } from './get_alerting_capabilities'; describe('getAlertingCapabilities', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.ts index 7af8eb7a2c8aa..9a71f29663a17 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_alerting_capabilities.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Capabilities } from '@kbn/core/public'; -import { ApmPluginSetupDeps } from '../../../plugin'; +import type { Capabilities } from '@kbn/core/public'; +import type { ApmPluginSetupDeps } from '../../../plugin'; export const getAlertingCapabilities = ( plugins: ApmPluginSetupDeps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_initial_alert_values.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_initial_alert_values.ts index 4a5e53f436e1a..c4b481733792b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_initial_alert_values.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/get_initial_alert_values.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ApmRuleType } from '@kbn/rule-data-utils'; +import type { ApmRuleType } from '@kbn/rule-data-utils'; import { RULE_TYPES_CONFIG } from '../../../../common/rules/apm_rule_types'; export function getInitialAlertValues( diff --git a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/helper.ts b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/helper.ts index e2becc4f4ec1b..88ca49d596f6d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/alerting/utils/helper.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TIME_UNITS } from '@kbn/triggers-actions-ui-plugin/public'; import type { RuleTypeMetaData } from '@kbn/alerting-plugin/common'; import moment from 'moment'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/alerts_overview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/alerts_overview/index.tsx index a14731db9efac..455b19d9d164f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/alerts_overview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/alerts_overview/index.tsx @@ -8,16 +8,16 @@ import React, { useState, useMemo, useEffect, useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { ObservabilityAlertSearchBar } from '@kbn/observability-plugin/public'; -import { AlertStatus } from '@kbn/observability-plugin/common/typings'; +import type { AlertStatus } from '@kbn/observability-plugin/common/typings'; import { EuiPanel, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { AlertConsumers } from '@kbn/rule-data-utils'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { APM_ALERTING_CONSUMERS, APM_ALERTING_RULE_TYPE_IDS, } from '../../../../common/alerting/config/apm_alerting_feature_ids'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { getEnvironmentKuery } from '../../../../common/environment_filter_values'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/breadcrumb/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/breadcrumb/index.tsx index 24c4b7e88fb1b..e178d40e04449 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/breadcrumb/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/breadcrumb/index.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React from 'react'; +import type React from 'react'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useBreadcrumb } from '../../../context/breadcrumbs/use_breadcrumb'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/context_popover/field_stats_popover.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/context_popover/field_stats_popover.tsx index 387c517d8b24a..8983e2f2836c1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/context_popover/field_stats_popover.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/context_popover/field_stats_popover.tsx @@ -8,12 +8,12 @@ import { EuiButtonIcon, EuiToolTip, useEuiTheme } from '@elastic/eui'; import React, { useCallback, useMemo, useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { - FieldStats, +import type { FieldStatsServices, FieldStatsProps, FieldStatsState, } from '@kbn/unified-field-list/src/components/field_stats'; +import { FieldStats } from '@kbn/unified-field-list/src/components/field_stats'; import { FieldPopover, FieldPopoverHeader, @@ -26,7 +26,7 @@ import { } from '@kbn/unified-field-list/src/components/field_stats'; import { EuiHorizontalRule, EuiText, EuiSpacer, EuiLoadingSpinner } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; import numeral from '@elastic/numeral'; import { css } from '@emotion/react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/correlations_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/correlations_table.tsx index 8524a29fb4b60..077eafbd33bf6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/correlations_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/correlations_table.tsx @@ -7,7 +7,8 @@ import React, { useCallback, useMemo, useState } from 'react'; import { debounce } from 'lodash'; -import { EuiBasicTable, EuiBasicTableColumn, useEuiTheme } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import type { EuiTableSortingType } from '@elastic/eui/src/components/basic_table/table_types'; import type { Criteria } from '@elastic/eui/src/components/basic_table/basic_table'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx index e6c6ce65dfffd..be1678cb7ac52 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx @@ -9,8 +9,8 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { orderBy } from 'lodash'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { - EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem, EuiSpacer, @@ -30,7 +30,7 @@ import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { FieldStatsPopover } from './context_popover/field_stats_popover'; import { asPercent, asPreciseDecimal } from '../../../../common/utils/formatters'; -import { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; +import type { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useLocalStorage } from '../../../hooks/use_local_storage'; @@ -45,7 +45,7 @@ import { DurationDistributionChart } from '../../shared/charts/duration_distribu import { CorrelationsEmptyStatePrompt } from './empty_state_prompt'; import { CrossClusterSearchCompatibilityWarning } from './cross_cluster_search_warning'; import { CorrelationsProgressControls } from './progress_controls'; -import { OnAddFilter } from './context_popover/field_stats_popover'; +import type { OnAddFilter } from './context_popover/field_stats_popover'; import { useFailedTransactionsCorrelations } from './use_failed_transactions_correlations'; import { getTransactionDistributionChartData } from './get_transaction_distribution_chart_data'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/get_transaction_distribution_chart_data.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/get_transaction_distribution_chart_data.ts index a9be40a81579c..9906c60ed00b7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/get_transaction_distribution_chart_data.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/get_transaction_distribution_chart_data.ts @@ -8,9 +8,9 @@ import { i18n } from '@kbn/i18n'; import type { EuiThemeComputed } from '@elastic/eui'; import type { HistogramItem } from '../../../../common/correlations/types'; -import { DurationDistributionChartData } from '../../shared/charts/duration_distribution_chart'; -import { LatencyCorrelation } from '../../../../common/correlations/latency_correlations/types'; -import { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; +import type { DurationDistributionChartData } from '../../shared/charts/duration_distribution_chart'; +import type { LatencyCorrelation } from '../../../../common/correlations/latency_correlations/types'; +import type { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; export function getTransactionDistributionChartData({ euiTheme, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.test.tsx index 483befd6e3d86..94969f2d97e68 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.test.tsx @@ -7,12 +7,13 @@ import { render, screen, waitFor } from '@testing-library/react'; import { createMemoryHistory } from 'history'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { of } from 'rxjs'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { merge } from 'lodash'; import { dataPluginMock } from '@kbn/data-plugin/public/mocks'; import type { IKibanaSearchResponse } from '@kbn/search-types'; @@ -20,7 +21,7 @@ import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import type { LatencyCorrelationsResponse } from '../../../../common/correlations/latency_correlations/types'; import { MockUrlParamsContextProvider } from '../../../context/url_params_context/mock_url_params_context_provider'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.tsx index 92a1e996f65ad..e3de5f794a15f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/latency_correlations.tsx @@ -9,8 +9,8 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { orderBy } from 'lodash'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { - EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem, EuiSpacer, @@ -19,8 +19,8 @@ import { EuiIconTip, useEuiTheme, } from '@elastic/eui'; -import { Direction } from '@elastic/eui/src/services/sort/sort_direction'; -import { EuiTableSortingType } from '@elastic/eui/src/components/basic_table/table_types'; +import type { Direction } from '@elastic/eui/src/services/sort/sort_direction'; +import type { EuiTableSortingType } from '@elastic/eui/src/components/basic_table/table_types'; import { i18n } from '@kbn/i18n'; @@ -30,7 +30,7 @@ import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { FieldStatsPopover } from './context_popover/field_stats_popover'; import { asPreciseDecimal } from '../../../../common/utils/formatters'; -import { LatencyCorrelation } from '../../../../common/correlations/latency_correlations/types'; +import type { LatencyCorrelation } from '../../../../common/correlations/latency_correlations/types'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; @@ -45,7 +45,7 @@ import { getOverallHistogram } from './utils/get_overall_histogram'; import { CorrelationsEmptyStatePrompt } from './empty_state_prompt'; import { CrossClusterSearchCompatibilityWarning } from './cross_cluster_search_warning'; import { CorrelationsProgressControls } from './progress_controls'; -import { OnAddFilter } from './context_popover/field_stats_popover'; +import type { OnAddFilter } from './context_popover/field_stats_popover'; import { useLatencyCorrelations } from './use_latency_correlations'; import { getTransactionDistributionChartData } from './get_transaction_distribution_chart_data'; import { ChartTitleToolTip } from './chart_title_tool_tip'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx index 4b93123b589bf..81db547aa3202 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import React, { PropsWithChildren } from 'react'; +import type { PropsWithChildren } from 'react'; +import React from 'react'; import { merge } from 'lodash'; import { createMemoryHistory } from 'history'; import { act, waitFor, renderHook } from '@testing-library/react'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts index b5b99b49f8ec6..d946f9433e96c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts @@ -24,11 +24,11 @@ import { LatencyDistributionChartType } from '../../../../common/latency_distrib import { callApmApi } from '../../../services/rest/create_call_apm_api'; +import type { CorrelationsProgress } from './utils/analysis_hook_utils'; import { getInitialResponse, getFailedTransactionsCorrelationsSortedByScore, getReducer, - CorrelationsProgress, } from './utils/analysis_hook_utils'; import { useFetchParams } from './use_fetch_params'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx index e76420e3c1a92..797a958a658ba 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import React, { PropsWithChildren } from 'react'; +import type { PropsWithChildren } from 'react'; +import React from 'react'; import { merge } from 'lodash'; import { createMemoryHistory } from 'history'; import { act, waitFor, renderHook } from '@testing-library/react'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.ts index 65d5edb441e99..6207c13af5146 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/use_latency_correlations.ts @@ -24,11 +24,11 @@ import { LatencyDistributionChartType } from '../../../../common/latency_distrib import { callApmApi } from '../../../services/rest/create_call_apm_api'; +import type { CorrelationsProgress } from './utils/analysis_hook_utils'; import { getInitialResponse, getLatencyCorrelationsSortedByCorrelation, getReducer, - CorrelationsProgress, } from './utils/analysis_hook_utils'; import { useFetchParams } from './use_fetch_params'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/utils/get_failed_transactions_correlation_impact_label.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/utils/get_failed_transactions_correlation_impact_label.ts index 556c13d7467bb..1f4950532d746 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/utils/get_failed_transactions_correlation_impact_label.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/correlations/utils/get_failed_transactions_correlation_impact_label.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { FailedTransactionsCorrelation, FailedTransactionsCorrelationsImpactThreshold, } from '../../../../../common/correlations/failed_transactions_correlations/types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_detail_operations/dependency_detail_operations_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_detail_operations/dependency_detail_operations_list/index.tsx index 9d77e1807c2f5..eb3211ff4798d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_detail_operations/dependency_detail_operations_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_detail_operations/dependency_detail_operations_list/index.tsx @@ -14,12 +14,11 @@ import { useApmParams } from '../../../../hooks/use_apm_params'; import { useBreakpoints } from '../../../../hooks/use_breakpoints'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { - getSpanMetricColumns, - SpanMetricGroup, -} from '../../../shared/dependencies_table/get_span_metric_columns'; +import type { SpanMetricGroup } from '../../../shared/dependencies_table/get_span_metric_columns'; +import { getSpanMetricColumns } from '../../../shared/dependencies_table/get_span_metric_columns'; import { EmptyMessage } from '../../../shared/empty_message'; -import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; +import type { ITableColumn } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; import { getComparisonEnabled } from '../../../shared/time_comparison/get_comparison_enabled'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; import { DependencyOperationDetailLink } from '../../dependency_operation_detail_view/dependency_operation_detail_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_detail_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_detail_link.tsx index 852af7c321424..94901a1bf027d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_detail_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_detail_link.tsx @@ -6,9 +6,9 @@ */ import React from 'react'; import { EuiLink } from '@elastic/eui'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { useApmRouter } from '../../../hooks/use_apm_router'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; type Query = TypeOf['query']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_distribution_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_distribution_chart.tsx index f7cd26fab3f81..c929866d1bcb6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_distribution_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/dependency_operation_distribution_chart.tsx @@ -13,7 +13,7 @@ import { useApmParams } from '../../../hooks/use_apm_params'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useSampleChartSelection } from '../../../hooks/use_sample_chart_selection'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { DurationDistributionChartData } from '../../shared/charts/duration_distribution_chart'; +import type { DurationDistributionChartData } from '../../shared/charts/duration_distribution_chart'; import { DurationDistributionChartWithScrubber } from '../../shared/charts/duration_distribution_chart_with_scrubber'; export function DependencyOperationDistributionChart() { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/index.tsx index ef7ea348d37f7..adbbf622aa489 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/index.tsx @@ -20,7 +20,7 @@ import { ResettingHeightRetainer } from '../../shared/height_retainer/resetting_ import { push, replace } from '../../shared/links/url_helpers'; import { useWaterfallFetcher } from '../transaction_details/use_waterfall_fetcher'; import { WaterfallWithSummary } from '../transaction_details/waterfall_with_summary'; -import { TransactionTab } from '../transaction_details/waterfall_with_summary/transaction_tabs'; +import type { TransactionTab } from '../transaction_details/waterfall_with_summary/transaction_tabs'; import { DependencyOperationDistributionChart } from './dependency_operation_distribution_chart'; import { DetailViewHeader } from './detail_view_header'; import { maybeRedirectToAvailableSpanSample } from './maybe_redirect_to_available_span_sample'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.test.ts index 3ad72ce068b9e..e8e371e2515a6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.test.ts @@ -6,8 +6,8 @@ */ import { range } from 'lodash'; import { maybeRedirectToAvailableSpanSample } from './maybe_redirect_to_available_span_sample'; -import { replace as urlHelpersReplace } from '../../shared/links/url_helpers'; -import { History } from 'history'; +import type { replace as urlHelpersReplace } from '../../shared/links/url_helpers'; +import type { History } from 'history'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; describe('maybeRedirectToAvailableSpanSample', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.ts index d47cdbca64b92..71c5f6dfdf59d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/dependency_operation_detail_view/maybe_redirect_to_available_span_sample.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { History } from 'history'; +import type { History } from 'history'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; -import { replace as urlHelpersReplace } from '../../shared/links/url_helpers'; +import type { replace as urlHelpersReplace } from '../../shared/links/url_helpers'; export function maybeRedirectToAvailableSpanSample({ spanFetchStatus, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/apm_documents_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/apm_documents_tab.tsx index 28a2b2f01b9ab..c7dbc4bd28881 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/apm_documents_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/apm_documents_tab.tsx @@ -5,14 +5,8 @@ * 2.0. */ -import { - EuiBadge, - EuiBasicTable, - EuiBasicTableColumn, - EuiSpacer, - EuiText, - EuiToolTip, -} from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { orderBy } from 'lodash'; @@ -21,7 +15,7 @@ import { asBigNumber, asInteger } from '../../../../common/utils/formatters'; import type { ApmEvent } from '../../../../server/routes/diagnostics/bundle/get_apm_events'; import { useAdHocApmDataView } from '../../../hooks/use_adhoc_apm_data_view'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; import { SearchBar } from '../../shared/search_bar/search_bar'; import { useDiagnosticsContext } from './context/use_diagnostics'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/context/diagnostics_context.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/context/diagnostics_context.tsx index f8ebfe98d6709..560ddafec281e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/context/diagnostics_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/context/diagnostics_context.tsx @@ -8,7 +8,7 @@ import React, { useMemo, useState } from 'react'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; type DiagnosticsBundle = APIReturnType<'GET /internal/apm/diagnostics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx index 25b01126cfeec..b049f58c62a83 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/data_stream_tab.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { IndicesDataStream } from '@elastic/elasticsearch/lib/api/types'; -import { EuiBadge, EuiBasicTable, EuiBasicTableColumn, EuiSpacer, EuiText } from '@elastic/eui'; +import type { IndicesDataStream } from '@elastic/elasticsearch/lib/api/types'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useDiagnosticsContext } from './context/use_diagnostics'; type DiagnosticsBundle = APIReturnType<'GET /internal/apm/diagnostics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx index 4d1074b3b40fa..bdeead278986d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/import_export_tab.tsx @@ -16,7 +16,7 @@ import { EuiCallOut, EuiSpacer, } from '@elastic/eui'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useDiagnosticsContext } from './context/use_diagnostics'; import { getIsIndexTemplateOk } from './summary_tab/index_templates_status'; import { getIsIndicesTabOk } from './summary_tab/indicies_status'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx index cd9e20b2bc6ba..fe6d1f99a9367 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_pattern_settings_tab.tsx @@ -8,7 +8,7 @@ import { EuiLink, EuiLoadingElastic } from '@elastic/eui'; import { EuiBadge, EuiSpacer, EuiText, EuiTitle, EuiToolTip } from '@elastic/eui'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useDiagnosticsContext } from './context/use_diagnostics'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx index c2a4c47fde86e..d40f875952e78 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/index_templates_tab.tsx @@ -6,9 +6,10 @@ */ import { EuiCallOut, EuiLoadingElastic } from '@elastic/eui'; -import { EuiBadge, EuiBasicTable, EuiBasicTableColumn, EuiSpacer, EuiText } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBadge, EuiBasicTable, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useDiagnosticsContext } from './context/use_diagnostics'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx index d025076389b29..ed92664b3dc36 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/indices_tab.tsx @@ -6,9 +6,9 @@ */ import React from 'react'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBasicTable, - EuiBasicTableColumn, EuiIcon, EuiLoadingElastic, EuiSpacer, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx index 1cf1fc06e3043..c5569bc68be97 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/data_streams_status.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiLink } from '@elastic/eui'; import { useApmParams } from '../../../../hooks/use_apm_params'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useDiagnosticsContext } from '../context/use_diagnostics'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx index 56b5953933330..73dde1bbc8aec 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiFlexGroup, EuiCallOut, EuiDescriptionList, EuiSpacer } from '@elastic/eui'; import { isCCSRemoteIndexName } from '@kbn/es-query'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ApmIntegrationPackageStatus } from './apm_integration_package_status'; import { IndexTemplatesStatus } from './index_templates_status'; import { FieldMappingStatus } from './indicies_status'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index_templates_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index_templates_status.tsx index 86b9cd8a97b7a..74e0d1c86aa68 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index_templates_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/index_templates_status.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiLink } from '@elastic/eui'; import { FETCH_STATUS } from '@kbn/observability-shared-plugin/public'; import { useApmParams } from '../../../../hooks/use_apm_params'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useDiagnosticsContext } from '../context/use_diagnostics'; import { TabStatus } from './tab_status'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx index 26c5d7f0bab61..6ea30a4b9bcf1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/diagnostics/summary_tab/indicies_status.tsx @@ -10,7 +10,7 @@ import { EuiLink } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useDiagnosticsContext } from '../context/use_diagnostics'; import { TabStatus } from './tab_status'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/entity_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/entity_link.test.tsx index 7bbfb43af71b8..46bf430a15159 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/entity_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/entity_link.test.tsx @@ -14,9 +14,9 @@ import * as useServiceEntitySummary from '../../../../context/apm_service/use_se import * as useFetcher from '../../../../hooks/use_fetcher'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { fromQuery } from '../../../shared/links/url_helpers'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { Redirect } from 'react-router-dom'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import * as useEntityCentricExperienceSetting from '../../../../hooks/use_entity_centric_experience_setting'; jest.mock('react-router-dom', () => ({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/index.tsx index 7ad5661159fd5..b11e37c063f21 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/entities/entity_link/index.tsx @@ -25,7 +25,7 @@ import { useApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useEntityCentricExperienceSetting } from '../../../../hooks/use_entity_centric_experience_setting'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; const pageHeader = { pageTitle: 'APM', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx index d8fb75fd0c1af..94ebabcbf7a13 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import { ErrorDistribution } from '.'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.tsx index 272f0660711db..14759d56e2457 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/distribution/index.tsx @@ -22,9 +22,9 @@ import React from 'react'; import { useElasticChartsTheme } from '@kbn/charts-theme'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { usePreviousPeriodLabel } from '../../../../hooks/use_previous_period_text'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ChartContainer } from '../../../shared/charts/chart_container'; import { ChartType, getTimeSeriesColor } from '../../../shared/charts/helper/get_timeseries_color'; import { getTimeZone } from '../../../shared/charts/helper/timezone'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_contextual_insight.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_contextual_insight.tsx index 20d5521b43ebf..90ea6e750c62d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_contextual_insight.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_contextual_insight.tsx @@ -8,9 +8,9 @@ import { EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import type { Message } from '@kbn/observability-ai-assistant-plugin/public'; import React, { useMemo, useState } from 'react'; -import { AT_TIMESTAMP } from '@kbn/apm-types'; +import type { AT_TIMESTAMP } from '@kbn/apm-types'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { ErrorSampleDetailTabContent } from './error_sample_detail'; import { exceptionStacktraceTab, logStacktraceTab } from './error_tabs'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_detail.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_detail.tsx index a1a2962b8067a..928c0ff2d8e4e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_detail.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_sample_detail.tsx @@ -29,16 +29,18 @@ import { first } from 'lodash'; import React, { useEffect, useState } from 'react'; import { useHistory } from 'react-router-dom'; import useAsync from 'react-use/lib/useAsync'; -import { AT_TIMESTAMP, ERROR_GROUP_ID } from '../../../../../common/es_fields/apm'; +import type { AT_TIMESTAMP } from '../../../../../common/es_fields/apm'; +import { ERROR_GROUP_ID } from '../../../../../common/es_fields/apm'; import { TraceSearchType } from '../../../../../common/trace_explorer'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; -import { FETCH_STATUS, isPending, isSuccess } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import { isPending, isSuccess } from '../../../../hooks/use_fetcher'; import { useTraceExplorerEnabledSetting } from '../../../../hooks/use_trace_explorer_enabled_setting'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link'; import { DiscoverErrorLink } from '../../../shared/links/discover_links/discover_error_link'; import { fromQuery, toQuery } from '../../../shared/links/url_helpers'; @@ -50,7 +52,8 @@ import { UserAgentSummaryItem } from '../../../shared/summary/user_agent_summary import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; import { PlaintextStacktrace } from './plaintext_stacktrace'; import { TransactionTab } from '../../transaction_details/waterfall_with_summary/transaction_tabs'; -import { ErrorTab, ErrorTabKey, getTabs } from './error_tabs'; +import type { ErrorTab } from './error_tabs'; +import { ErrorTabKey, getTabs } from './error_tabs'; import { ErrorUiActionsContextMenu } from './error_ui_actions_context_menu'; import { ExceptionStacktrace } from './exception_stacktrace'; import { SampleSummary } from './sample_summary'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_tabs.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_tabs.tsx index 86b69eb480b3f..610c186ac477d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_tabs.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_tabs.tsx @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; export enum ErrorTabKey { LogStackTrace = 'log_stacktrace', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_ui_actions_context_menu.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_ui_actions_context_menu.tsx index df0b0a93020d2..3c5baa6fbb818 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_ui_actions_context_menu.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/error_ui_actions_context_menu.tsx @@ -4,14 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiButton, - EuiContextMenu, - EuiContextMenuPanelItemDescriptor, - EuiPopover, -} from '@elastic/eui'; +import type { EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; +import { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui'; import React, { useState } from 'react'; -import { ObservabilityActionContextMenuItemProps } from '@kbn/observability-shared-plugin/public'; +import type { ObservabilityActionContextMenuItemProps } from '@kbn/observability-shared-plugin/public'; import { i18n } from '@kbn/i18n'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.stories.tsx index 3511be0cfe847..eab4c3c032576 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import React, { ComponentProps, ComponentType } from 'react'; +import type { Story } from '@storybook/react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { ExceptionStacktrace } from './exception_stacktrace'; type Args = ComponentProps; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.test.tsx index 3740edcbfe7d4..9661a42b89050 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.test.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { mount } from 'enzyme'; import { EuiThemeProvider } from '@elastic/eui'; import * as stories from './exception_stacktrace.stories'; -import { ExceptionStackTraceTitleProps } from './exception_stacktrace_title'; +import type { ExceptionStackTraceTitleProps } from './exception_stacktrace_title'; const { JavaWithLongLines } = composeStories(stories); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.tsx index 2554000727ad9..956184aa49a13 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/exception_stacktrace.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { Exception } from '../../../../../typings/es_schemas/raw/error_raw'; +import type { Exception } from '../../../../../typings/es_schemas/raw/error_raw'; import { Stacktrace } from '../../../shared/stacktrace'; import { CauseStacktrace } from '../../../shared/stacktrace/cause_stacktrace'; import { ExceptionStacktraceTitle } from './exception_stacktrace_title'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/index.tsx index 543e95bc0afba..618b571045394 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/index.tsx @@ -9,7 +9,8 @@ import React, { useEffect } from 'react'; import { useHistory } from 'react-router-dom'; import { fromQuery, toQuery } from '../../../shared/links/url_helpers'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; -import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import { isPending, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { ErrorSampleDetails } from './error_sample_detail'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/sample_summary.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/sample_summary.tsx index 40d9a21bee352..94d2ec5c93070 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/sample_summary.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/error_sampler/sample_summary.tsx @@ -8,7 +8,7 @@ import { EuiText, EuiSpacer, EuiCodeBlock, useEuiFontSize } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n'; const Label = styled.div` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/index.tsx index 6f2650d7b46de..64bc6f8bb9f6f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/index.tsx @@ -25,7 +25,7 @@ import { ErrorDistribution } from './distribution'; import { TopErroneousTransactions } from './top_erroneous_transactions'; import { maybe } from '../../../../common/utils/maybe'; import { fromQuery, toQuery } from '../../shared/links/url_helpers'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; type ErrorSamplesAPIResponse = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/top_erroneous_transactions/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/top_erroneous_transactions/index.tsx index f81d6b8d7abf3..32fe2c2e103dc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/top_erroneous_transactions/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_details/top_erroneous_transactions/index.tsx @@ -7,14 +7,9 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { - EuiBasicTable, - EuiBasicTableColumn, - EuiTitle, - RIGHT_ALIGNMENT, - EuiSpacer, -} from '@elastic/eui'; -import { ValuesType } from 'utility-types'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable, EuiTitle, RIGHT_ALIGNMENT, EuiSpacer } from '@elastic/eui'; +import type { ValuesType } from 'utility-types'; import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ChartType, getTimeSeriesColor } from '../../../shared/charts/helper/get_timeseries_color'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/error_group_list.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/error_group_list.stories.tsx index 6cdb74ba1535c..de6af639d1af8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/error_group_list.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/error_group_list.stories.tsx @@ -4,11 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; +import type { CoreStart } from '@kbn/core/public'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { ErrorGroupList } from '.'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx index c6593806191f4..218f007378970 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx @@ -19,15 +19,12 @@ import { ChartType, getTimeSeriesColor } from '../../../shared/charts/helper/get import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link'; import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link'; -import { - ITableColumn, - ManagedTable, - TableOptions, - TableSearchBar, -} from '../../../shared/managed_table'; +import type { ITableColumn, TableOptions, TableSearchBar } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; -import { ErrorGroupItem, useErrorGroupListData } from './use_error_group_list_data'; +import type { ErrorGroupItem } from './use_error_group_list_data'; +import { useErrorGroupListData } from './use_error_group_list_data'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; const GroupIdLink = styled(ErrorDetailLink)` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/use_error_group_list_data.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/use_error_group_list_data.tsx index 484830c23d8a5..dead54d084936 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/use_error_group_list_data.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/error_group_overview/error_group_list/use_error_group_list_data.tsx @@ -10,8 +10,8 @@ import { useFetcher } from '../../../../hooks/use_fetcher'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useTimeRange } from '../../../../hooks/use_time_range'; import { useStateDebounced } from '../../../../hooks/use_debounce'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; -import { TableOptions } from '../../../shared/managed_table'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { TableOptions } from '../../../shared/managed_table'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/help_popover/help_popover.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/help_popover/help_popover.tsx index cfb50f983fdbe..21dc5e375d094 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/help_popover/help_popover.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/help_popover/help_popover.tsx @@ -5,17 +5,11 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { i18n } from '@kbn/i18n'; -import { - EuiButtonEmpty, - EuiButtonIcon, - EuiLinkButtonProps, - EuiPopover, - EuiPopoverProps, - EuiPopoverTitle, - EuiText, -} from '@elastic/eui'; +import type { EuiLinkButtonProps, EuiPopoverProps } from '@elastic/eui'; +import { EuiButtonEmpty, EuiButtonIcon, EuiPopover, EuiPopoverTitle, EuiText } from '@elastic/eui'; import styled from '@emotion/styled'; const PopoverContent = styled(EuiText)` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.test.tsx index b1a1fea3924ee..5c0b3d75f1aa7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.test.tsx @@ -4,11 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { renderHook } from '@testing-library/react'; import { useTabs } from './use_tabs'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { shallow } from 'enzyme'; const KibanaReactContext = createKibanaReactContext({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.tsx index 9fa178672aee5..8c85c6de61d1d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/infra_overview/infra_tabs/use_tabs.tsx @@ -4,14 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiTabbedContentProps } from '@elastic/eui'; +import type { EuiTabbedContentProps } from '@elastic/eui'; import { useMemo } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import React from 'react'; import { EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; import { KUBERNETES_POD_NAME, HOST_NAME, CONTAINER_ID } from '../../../../../common/es_fields/apm'; type Tab = NonNullable[0] & { id: 'containers' | 'pods' | 'hosts'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/jvm_metrics_overview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/jvm_metrics_overview/index.tsx index a936ec601ebea..a34ad29a80f9b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/jvm_metrics_overview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/jvm_metrics_overview/index.tsx @@ -16,7 +16,8 @@ import { useFetcher, FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; import { truncate, unit } from '../../../../utils/style'; import { ServiceNodeMetricOverviewLink } from '../../../shared/links/apm/service_node_metric_overview_link'; -import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; +import type { ITableColumn } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; const INITIAL_SORT_FIELD = 'cpu'; const INITIAL_SORT_DIRECTION = 'desc'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_active_instances.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_active_instances.tsx index 417f96e73f26d..03e6dcf1fd0ce 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_active_instances.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_active_instances.tsx @@ -4,15 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { EuiBasicTableColumn, PropertySort } from '@elastic/eui'; import { - EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem, EuiInMemoryTable, euiPaletteColorBlind, EuiPanel, EuiTitle, - PropertySort, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo } from 'react'; @@ -21,12 +20,12 @@ import { asInteger, asMillisecondDuration, } from '../../../../../common/utils/formatters'; -import { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { TimeseriesChartWithContext } from '../../../shared/charts/timeseries_chart_with_context'; import { ListMetric } from '../../../shared/list_metric'; import { ServerlessFunctionNameLink } from './serverless_function_name_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_functions.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_functions.tsx index c0a8a14a52038..5445fb0e5219b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_functions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/serverless_metrics/serverless_functions.tsx @@ -4,15 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiBasicTableColumn, - EuiFlexGroup, - EuiFlexItem, - EuiInMemoryTable, - EuiPanel, - EuiTitle, - PropertySort, -} from '@elastic/eui'; +import type { EuiBasicTableColumn, PropertySort } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiInMemoryTable, EuiPanel, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo } from 'react'; import { asDynamicBytes, asMillisecondDuration } from '../../../../../common/utils/formatters'; @@ -20,7 +13,7 @@ import { useApmServiceContext } from '../../../../context/apm_service/use_apm_se import { useApmParams } from '../../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ServerlessFunctionNameLink } from './serverless_function_name_link'; type ServerlessFunctionOverview = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/helper.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/helper.ts index 781dfca52570a..2674034cd3d7e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/helper.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import type { DashboardPanelMap } from '@kbn/dashboard-plugin/common'; import { AGENT_NAME_DASHBOARD_FILE_MAPPING, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/index.tsx index cc9c12b97a6d2..4e6c145fe9603 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/metrics/static_dashboard/index.tsx @@ -8,16 +8,14 @@ import React, { useState, useEffect } from 'react'; import { ViewMode } from '@kbn/embeddable-plugin/public'; -import { - DashboardApi, - DashboardCreationOptions, - DashboardRenderer, -} from '@kbn/dashboard-plugin/public'; -import { DataView } from '@kbn/data-views-plugin/common'; -import { buildExistsFilter, buildPhraseFilter, Filter } from '@kbn/es-query'; +import type { DashboardApi, DashboardCreationOptions } from '@kbn/dashboard-plugin/public'; +import { DashboardRenderer } from '@kbn/dashboard-plugin/public'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import type { Filter } from '@kbn/es-query'; +import { buildExistsFilter, buildPhraseFilter } from '@kbn/es-query'; import { i18n } from '@kbn/i18n'; import { controlGroupStateBuilder } from '@kbn/controls-plugin/public'; -import { NotificationsStart } from '@kbn/core/public'; +import type { NotificationsStart } from '@kbn/core/public'; import { ENVIRONMENT_ALL, ENVIRONMENT_NOT_DEFINED, @@ -25,7 +23,8 @@ import { import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useApmParams } from '../../../../hooks/use_apm_params'; -import { convertSavedDashboardToPanels, MetricsDashboardProps } from './helper'; +import type { MetricsDashboardProps } from './helper'; +import { convertSavedDashboardToPanels } from './helper'; export function JsonMetricsDashboard(dashboardProps: MetricsDashboardProps) { const [dashboard, setDashboard] = useState(undefined); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/sessions_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/sessions_chart.tsx index 20f6b2550b632..a6df2a30470a7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/sessions_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/charts/sessions_chart.tsx @@ -8,7 +8,7 @@ import { EuiPanel, EuiTitle, EuiIconTip, EuiFlexItem, EuiFlexGroup } from '@elas import { i18n } from '@kbn/i18n'; import React from 'react'; import { useFetcher } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { TimeseriesChartWithContext } from '../../../shared/charts/timeseries_chart_with_context'; import { getComparisonChartTheme } from '../../../shared/time_comparison/get_comparison_chart_theme'; import { getTimeSeriesColor, ChartType } from '../../../shared/charts/helper/get_timeseries_color'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.stories.tsx index 1fd2b4e7522b7..66814b567c94f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.stories.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import { ErrorDistribution } from '.'; import { MockApmPluginStorybook } from '../../../../../../context/apm_plugin/mock_apm_plugin_storybook'; import { FETCH_STATUS } from '../../../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.tsx index 6f821025ece3d..006642f55d1b3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_group_details/shared/distribution/index.tsx @@ -16,9 +16,10 @@ import { import React from 'react'; import { TimeseriesChartWithContext } from '../../../../../shared/charts/timeseries_chart_with_context'; import { useLegacyUrlParams } from '../../../../../../context/url_params_context/use_url_params'; -import { FETCH_STATUS, isPending } from '../../../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../../../hooks/use_fetcher'; +import { isPending } from '../../../../../../hooks/use_fetcher'; import { usePreviousPeriodLabel } from '../../../../../../hooks/use_previous_period_text'; -import { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; import { getComparisonChartTheme } from '../../../../../shared/time_comparison/get_comparison_chart_theme'; import { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/crash_group_list.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/crash_group_list.stories.tsx index 993d291a7e4c3..2f91b4ef7df1b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/crash_group_list.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/crash_group_list.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context'; import { MockUrlParamsContextProvider } from '../../../../../context/url_params_context/mock_url_params_context_provider'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/index.tsx index 403a5ff03db7f..565b7610edc3b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crash_group_list/index.tsx @@ -12,7 +12,7 @@ import React, { useMemo } from 'react'; import { NOT_AVAILABLE_LABEL } from '../../../../../../common/i18n'; import { asInteger } from '../../../../../../common/utils/formatters'; import { useApmParams } from '../../../../../hooks/use_apm_params'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { truncate, unit } from '../../../../../utils/style'; import { ChartType, @@ -21,7 +21,8 @@ import { import { SparkPlot } from '../../../../shared/charts/spark_plot'; import { CrashDetailLink } from '../../../../shared/links/apm/mobile/crash_detail_link'; import { ErrorOverviewLink } from '../../../../shared/links/apm/mobile/error_overview_link'; -import { ITableColumn, ManagedTable } from '../../../../shared/managed_table'; +import type { ITableColumn } from '../../../../shared/managed_table'; +import { ManagedTable } from '../../../../shared/managed_table'; import { TimestampTooltip } from '../../../../shared/timestamp_tooltip'; import { isTimeComparison } from '../../../../shared/time_comparison/get_comparison_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crashes_overview.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crashes_overview.tsx index 44f02392a23a1..93b2f60bdcf0a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crashes_overview.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/crashes_overview.tsx @@ -15,7 +15,7 @@ import { useCrashGroupDistributionFetcher } from '../../../../hooks/use_crash_gr import { MobileErrorsAndCrashesTreemap } from '../charts/mobile_errors_and_crashes_treemap'; import { MobileCrashGroupList } from './crash_group_list'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { ErrorDistribution } from '../errors_and_crashes_group_details/shared/distribution'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/error_group_list.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/error_group_list.stories.tsx index 9e564a930a9a7..84d4d0a76404b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/error_group_list.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/error_group_list.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context'; import { MockUrlParamsContextProvider } from '../../../../../context/url_params_context/mock_url_params_context_provider'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/index.tsx index 7153b673b3195..af9849e645fc9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/error_group_list/index.tsx @@ -12,7 +12,7 @@ import React, { useMemo } from 'react'; import { NOT_AVAILABLE_LABEL } from '../../../../../../common/i18n'; import { asInteger } from '../../../../../../common/utils/formatters'; import { useApmParams } from '../../../../../hooks/use_apm_params'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { truncate, unit } from '../../../../../utils/style'; import { ChartType, @@ -21,7 +21,8 @@ import { import { SparkPlot } from '../../../../shared/charts/spark_plot'; import { ErrorDetailLink } from '../../../../shared/links/apm/mobile/error_detail_link'; import { ErrorOverviewLink } from '../../../../shared/links/apm/mobile/error_overview_link'; -import { ITableColumn, ManagedTable } from '../../../../shared/managed_table'; +import type { ITableColumn } from '../../../../shared/managed_table'; +import { ManagedTable } from '../../../../shared/managed_table'; import { TimestampTooltip } from '../../../../shared/timestamp_tooltip'; import { isTimeComparison } from '../../../../shared/time_comparison/get_comparison_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/errors_overview.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/errors_overview.tsx index e4c0dafbabd9d..e5e28f7003961 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/errors_overview.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/errors_and_crashes_overview/errors_overview.tsx @@ -16,7 +16,7 @@ import { useApmParams } from '../../../../hooks/use_apm_params'; import { useErrorGroupDistributionFetcher } from '../../../../hooks/use_error_group_distribution_fetcher'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; import { HttpErrorRateChart } from '../charts/mobile_http_error_rate'; import { ErrorDistribution } from '../errors_and_crashes_group_details/shared/distribution'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/search_bar.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/search_bar.tsx index f3163046f9592..da28051cac734 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/search_bar.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/search_bar.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexGroupProps, EuiFlexItem, EuiSpacer } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import React from 'react'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; import { TimeComparison } from '../../shared/time_comparison'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/filters/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/filters/index.tsx index 0d1b29a08a44d..117cac851f0f7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/filters/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/filters/index.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiFlexGroup, EuiFlexGroupProps, EuiFlexItem, EuiSelect } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSelect } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { useHistory } from 'react-router-dom'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.test.tsx index f877dd7217cb1..0971f5bf8c070 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.test.tsx @@ -6,7 +6,7 @@ */ import { render } from '@testing-library/react'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import React from 'react'; import { EmbeddedMap } from './embedded_map'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.tsx index c75c8985f3a17..d77780481a05e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/embedded_map.tsx @@ -6,14 +6,14 @@ */ import React, { useMemo } from 'react'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { i18n } from '@kbn/i18n'; import type { Filter } from '@kbn/es-query'; -import { ApmPluginStartDeps } from '../../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../../plugin'; import { getLayerList } from './map_layers/get_layer_list'; -import { MapTypes } from '../../../../../../common/mobile/constants'; -import { StyleColorParams } from './map_layers/style_color_params'; +import type { MapTypes } from '../../../../../../common/mobile/constants'; +import type { StyleColorParams } from './map_layers/style_color_params'; function EmbeddedMapComponent({ selectedMap, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/index.tsx index 3afaa9ce429b7..af4d1a9aff103 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/index.tsx @@ -6,14 +6,14 @@ */ import React, { useState } from 'react'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { EuiSpacer } from '@elastic/eui'; import type { Filter } from '@kbn/es-query'; import { useEuiTheme } from '@elastic/eui'; import { EmbeddedMap } from './embedded_map'; import { MapTypes } from '../../../../../../common/mobile/constants'; import { EmbeddedMapSelect } from './embedded_map_select'; -import { StyleColorParams } from './map_layers/style_color_params'; +import type { StyleColorParams } from './map_layers/style_color_params'; export function GeoMap({ start, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_http_requests_map_layer_list.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_http_requests_map_layer_list.ts index 98adacc76953d..c6b9ef02b846f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_http_requests_map_layer_list.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_http_requests_map_layer_list.ts @@ -5,14 +5,12 @@ * 2.0. */ -import { +import type { EMSFileSourceDescriptor, LayerDescriptor as BaseLayerDescriptor, VectorLayerDescriptor as BaseVectorLayerDescriptor, - AGG_TYPE, - LAYER_TYPE, - SOURCE_TYPES, } from '@kbn/maps-plugin/common'; +import { AGG_TYPE, LAYER_TYPE, SOURCE_TYPES } from '@kbn/maps-plugin/common'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { v4 as uuidv4 } from 'uuid'; import type { MapsStartApi } from '@kbn/maps-plugin/public'; @@ -26,7 +24,7 @@ import { } from '../../../../../../../common/es_fields/apm'; import { getLayerStyle, PalleteColors } from './get_map_layer_style'; import { MobileSpanSubtype, MobileSpanType } from '../../../../../../../common/mobile/constants'; -import { StyleColorParams } from './style_color_params'; +import type { StyleColorParams } from './style_color_params'; interface VectorLayerDescriptor extends BaseVectorLayerDescriptor { sourceDescriptor: EMSFileSourceDescriptor; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_layer_list.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_layer_list.ts index 848991d79f0bd..44497008d84f8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_layer_list.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_layer_list.ts @@ -5,10 +5,10 @@ * 2.0. */ import type { MapsStartApi } from '@kbn/maps-plugin/public'; -import { LayerDescriptor } from '@kbn/maps-plugin/common'; +import type { LayerDescriptor } from '@kbn/maps-plugin/common'; import { getHttpRequestsLayerList } from './get_http_requests_map_layer_list'; import { getSessionMapLayerList } from './get_session_map_layer_list'; -import { StyleColorParams } from './style_color_params'; +import type { StyleColorParams } from './style_color_params'; import { MapTypes } from '../../../../../../../common/mobile/constants'; export function getLayerList({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_map_layer_style.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_map_layer_style.ts index 392ccc31ce0b1..9729855e93ba6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_map_layer_style.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_map_layer_style.ts @@ -5,8 +5,8 @@ * 2.0. */ +import type { VectorStyleDescriptor } from '@kbn/maps-plugin/common'; import { - VectorStyleDescriptor, COLOR_MAP_TYPE, FIELD_ORIGIN, LABEL_BORDER_SIZES, @@ -15,7 +15,7 @@ import { SYMBOLIZE_AS_TYPES, } from '@kbn/maps-plugin/common'; -import { StyleColorParams } from './style_color_params'; +import type { StyleColorParams } from './style_color_params'; export enum PalleteColors { BluetoRed = 'Blue to Red', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_session_map_layer_list.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_session_map_layer_list.ts index b71d3bd316b65..d7dce49eb6c06 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_session_map_layer_list.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/geo_map/map_layers/get_session_map_layer_list.ts @@ -5,14 +5,12 @@ * 2.0. */ -import { +import type { EMSFileSourceDescriptor, LayerDescriptor as BaseLayerDescriptor, VectorLayerDescriptor as BaseVectorLayerDescriptor, - AGG_TYPE, - LAYER_TYPE, - SOURCE_TYPES, } from '@kbn/maps-plugin/common'; +import { AGG_TYPE, LAYER_TYPE, SOURCE_TYPES } from '@kbn/maps-plugin/common'; import { v4 as uuidv4 } from 'uuid'; import type { MapsStartApi } from '@kbn/maps-plugin/public'; import { i18n } from '@kbn/i18n'; @@ -22,7 +20,7 @@ import { SESSION_ID, } from '../../../../../../../common/es_fields/apm'; import { getLayerStyle, PalleteColors } from './get_map_layer_style'; -import { StyleColorParams } from './style_color_params'; +import type { StyleColorParams } from './style_color_params'; interface VectorLayerDescriptor extends BaseVectorLayerDescriptor { sourceDescriptor: EMSFileSourceDescriptor; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/index.tsx index 2efe54fbac9bc..f5b8b636cbe00 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/index.tsx @@ -6,15 +6,8 @@ */ import React from 'react'; -import { - EuiFlexGroupProps, - EuiFlexGroup, - EuiFlexItem, - EuiLink, - EuiPanel, - EuiSpacer, - EuiTitle, -} from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiPanel, EuiSpacer, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { AnnotationsContextProvider } from '../../../../context/annotations/annotations_context'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/index.tsx index 4a1e73f5b2f5c..ab1cd319fb32c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/index.tsx @@ -7,10 +7,11 @@ import React, { useRef } from 'react'; import { i18n } from '@kbn/i18n'; -import { EuiFlexGroup, EuiFlexGroupProps, useResizeObserver } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, useResizeObserver } from '@elastic/eui'; import { SunburstChart } from './sunburst_chart'; import { useBreakpoints } from '../../../../../hooks/use_breakpoints'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { useFetcher } from '../../../../../hooks/use_fetcher'; import { MobileProperty } from '../../../../../../common/mobile_types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/sunburst_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/sunburst_chart.tsx index 47018c775fd25..fd591be6929ab 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/sunburst_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/most_used_charts/sunburst_chart.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { Chart, Partition, PartitionLayout, Datum, PartialTheme, Settings } from '@elastic/charts'; +import type { Datum, PartialTheme } from '@elastic/charts'; +import { Chart, Partition, PartitionLayout, Settings } from '@elastic/charts'; import { EuiFlexItem, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/location_stats.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/location_stats.tsx index b514277a5dc91..2f43e738ed9ef 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/location_stats.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/location_stats.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { MetricDatum, MetricTrendShape } from '@elastic/charts'; +import type { MetricDatum } from '@elastic/charts'; +import { MetricTrendShape } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import { EuiIcon, EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, useEuiTheme } from '@elastic/eui'; import React, { useCallback } from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/metric_item.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/metric_item.tsx index 696079ba5be90..ce070641eda1e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/metric_item.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/metric_item.tsx @@ -5,7 +5,8 @@ * 2.0. */ import React from 'react'; -import { Chart, Metric, MetricDatum } from '@elastic/charts'; +import type { MetricDatum } from '@elastic/charts'; +import { Chart, Metric } from '@elastic/charts'; import { EuiSkeletonText, EuiPanel } from '@elastic/eui'; import { isEmpty } from 'lodash'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/stats.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/stats.tsx index 4376eeccab5c3..8c028b00f62e2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/stats.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/service_overview/stats/stats.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { MetricDatum, MetricTrendShape } from '@elastic/charts'; +import type { MetricDatum } from '@elastic/charts'; +import { MetricTrendShape } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiLoadingSpinner, useEuiTheme } from '@elastic/eui'; import React, { useCallback } from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/app_version_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/app_version_tab.tsx index f7dcb443c60b3..1b333ad716942 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/app_version_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/app_version_tab.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { TabContentProps } from '.'; +import type { TabContentProps } from '.'; import { isPending } from '../../../../../hooks/use_fetcher'; import { StatsList } from './stats_list'; import { SERVICE_VERSION } from '../../../../../../common/es_fields/apm'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/devices_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/devices_tab.tsx index df48eddb77cee..17aba5aeda6d3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/devices_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/devices_tab.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { TabContentProps } from '.'; +import type { TabContentProps } from '.'; import { isPending } from '../../../../../hooks/use_fetcher'; import { StatsList } from './stats_list'; import { useMobileStatisticsFetcher } from './use_mobile_statistics_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/os_version_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/os_version_tab.tsx index 81adbb8e4d429..331e2e97f0f57 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/os_version_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/os_version_tab.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { TabContentProps } from '.'; +import type { TabContentProps } from '.'; import { isPending } from '../../../../../hooks/use_fetcher'; import { StatsList } from './stats_list'; import { useMobileStatisticsFetcher } from './use_mobile_statistics_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/get_columns.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/get_columns.tsx index 24eb1da34f67e..54a9853dc806b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/get_columns.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/get_columns.tsx @@ -7,8 +7,8 @@ import { RIGHT_ALIGNMENT, EuiText } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; -import { ValuesType } from 'utility-types'; -import { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; +import type { ValuesType } from 'utility-types'; +import type { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; import { ChartType, getTimeSeriesColor, @@ -20,7 +20,7 @@ import { asPercent, asTransactionRate, } from '../../../../../../../common/utils/formatters'; -import { ITableColumn } from '../../../../../shared/managed_table'; +import type { ITableColumn } from '../../../../../shared/managed_table'; type MobileMainStatisticsByField = APIReturnType<'GET /internal/apm/mobile-services/{serviceName}/main_statistics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/index.tsx index d7686f4c1585c..2a44420623ed6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/stats_list/index.tsx @@ -8,7 +8,7 @@ import React, { useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { ManagedTable } from '../../../../../shared/managed_table'; -import { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; import { getColumns } from './get_columns'; type MobileMainStatisticsByField = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/transactions_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/transactions_tab.tsx index f4aad02a036d8..10914f36bcff2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/transactions_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/mobile/transaction_overview/transaction_overview_tabs/transactions_tab.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { TabContentProps } from '.'; +import type { TabContentProps } from '.'; import { TransactionsTable } from '../../../../shared/transactions_table'; function TransactionsTab({ environment, kuery, start, end }: TabContentProps) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_config_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_config_table.tsx index cbce7789896ce..c2707e93d1167 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_config_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_config_table.tsx @@ -8,14 +8,8 @@ import React from 'react'; import type { ValuesType } from 'utility-types'; import { get } from 'lodash'; -import { - EuiBasicTable, - EuiText, - EuiBasicTableColumn, - EuiButton, - EuiButtonIcon, - copyToClipboard, -} from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable, EuiText, EuiButton, EuiButtonIcon, copyToClipboard } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; function ConfigurationValueColumn({ columnKey, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_status_instructions.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_status_instructions.tsx index 347c075561688..4bf286fef9233 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_status_instructions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/agent_status_instructions.tsx @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { EuiButton, EuiCallOut, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; import React from 'react'; -import { EuiStepStatus } from '@elastic/eui/src/components/steps/step_number'; +import type { EuiStepStatus } from '@elastic/eui/src/components/steps/step_number'; function AgentStatusWarningCallout() { return ( diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/index.tsx index d4d6978924f01..1c82cb8dddd4a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/index.tsx @@ -10,13 +10,13 @@ import { useKibana } from '@kbn/kibana-react-plugin/public'; import { EuiSpacer } from '@elastic/eui'; import { callApmApi } from '../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; import { Introduction } from './introduction'; import { InstructionsSet } from './instructions_set'; import { serverlessInstructions } from './serverless_instructions'; import { Footer } from './footer'; import { PrivilegeType } from '../../../../common/privilege_type'; -import { AgentApiKey, InstructionSet } from './instruction_variants'; +import type { AgentApiKey, InstructionSet } from './instruction_variants'; export function Onboarding() { const [instructions, setInstructions] = useState([]); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instruction_variants.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instruction_variants.ts index 5ad4e8578b788..4e831e07b6bb9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instruction_variants.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instruction_variants.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; export enum INSTRUCTION_VARIANT { NODE = 'node', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/django_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/django_agent.tsx index 69ac7240e4f8a..ff958e612b31c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/django_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/django_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/dotnet_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/dotnet_agent.tsx index 739db1a8ef5fc..a0e12c4cbadac 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/dotnet_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/dotnet_agent.tsx @@ -7,11 +7,12 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx index da435327a132e..8959f7f6c979e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/flask_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx index 0543a4f7e820c..92ec88b49ed20 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/go_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/java_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/java_agent.tsx index c4728caf3da95..1f161f9a156b6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/java_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/java_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx index ce4c4f3415630..e7b6d20b6cec5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/node_agent.tsx @@ -7,11 +7,12 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { ApiKeyCallout } from './api_key_callout'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; export const createNodeAgentInstructions = (commonOptions: AgentInstructions): EuiStepProps[] => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/otel_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/otel_agent.tsx index e9464675a5561..1a3fe3bea1bd0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/otel_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/otel_agent.tsx @@ -6,10 +6,10 @@ */ import { i18n } from '@kbn/i18n'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { copyToClipboard, EuiBasicTable, - EuiBasicTableColumn, EuiButton, EuiButtonIcon, EuiLink, @@ -17,11 +17,11 @@ import { EuiSpacer, EuiText, } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { FormattedMessage } from '@kbn/i18n-react'; -import { AgentApiDetails, AgentInstructions } from '../instruction_variants'; +import type { AgentApiDetails, AgentInstructions } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx index 739e93a4afeb1..aa6cc11f16a6e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/php_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx index 9662a6e17451e..24bf8d3d57f27 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rack_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx index b9eb57dac4d88..024441ee73a1a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions/rails_agent.tsx @@ -7,10 +7,11 @@ import { i18n } from '@kbn/i18n'; import { EuiCodeBlock, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; -import { EuiStepProps } from '@elastic/eui/src/components/steps/step'; +import type { EuiStepProps } from '@elastic/eui/src/components/steps/step'; import React from 'react'; import { AgentConfigInstructions } from '../agent_config_instructions'; -import { INSTRUCTION_VARIANT, AgentInstructions } from '../instruction_variants'; +import type { AgentInstructions } from '../instruction_variants'; +import { INSTRUCTION_VARIANT } from '../instruction_variants'; import { ApiKeyCallout } from './api_key_callout'; import { agentStatusCheckInstruction } from '../agent_status_instructions'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions_set.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions_set.tsx index 13529e8ed52af..50993eea85ebc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions_set.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/instructions_set.tsx @@ -16,12 +16,12 @@ import { } from '@elastic/eui'; import React, { useMemo } from 'react'; import { useHistory } from 'react-router-dom'; -import { +import type { INSTRUCTION_VARIANT, - getDisplayText, InstructionVariant, InstructionSet, } from './instruction_variants'; +import { getDisplayText } from './instruction_variants'; import { useApmParams } from '../../../hooks/use_apm_params'; import { push } from '../../shared/links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/serverless_instructions.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/serverless_instructions.ts index 4bbb4e30db228..7bf39aedef1fb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/serverless_instructions.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/onboarding/serverless_instructions.ts @@ -6,8 +6,9 @@ */ import { i18n } from '@kbn/i18n'; -import { ConfigSchema } from '../../..'; -import { INSTRUCTION_VARIANT, AgentInstructions, AgentApiKey } from './instruction_variants'; +import type { ConfigSchema } from '../../..'; +import type { AgentInstructions, AgentApiKey } from './instruction_variants'; +import { INSTRUCTION_VARIANT } from './instruction_variants'; import { createJavaAgentInstructions, createNodeAgentInstructions, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/index.tsx index c41f1dac63051..2d24c8283aced 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/index.tsx @@ -5,12 +5,8 @@ * 2.0. */ -import { - EuiLoadingSpinner, - EuiSpacer, - EuiTabbedContent, - EuiTabbedContentProps, -} from '@elastic/eui'; +import type { EuiTabbedContentProps } from '@elastic/eui'; +import { EuiLoadingSpinner, EuiSpacer, EuiTabbedContent } from '@elastic/eui'; import { css } from '@emotion/react'; import { i18n } from '@kbn/i18n'; import { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_callout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_callout.tsx index 55aca366dba32..95e99e1fe7e56 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_callout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_callout.tsx @@ -8,7 +8,7 @@ import { EuiButton, EuiCallOut, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elas import React from 'react'; import { i18n } from '@kbn/i18n'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; import { useLocalStorage } from '../../../hooks/use_local_storage'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_flamegraph.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_flamegraph.tsx index 0d6681d942d55..f2f43f7aab475 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_flamegraph.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_flamegraph.tsx @@ -7,8 +7,8 @@ import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import React from 'react'; -import { ApmDataSourceWithSummary } from '../../../../common/data_source'; -import { ApmDocumentType } from '../../../../common/document_type'; +import type { ApmDataSourceWithSummary } from '../../../../common/data_source'; +import type { ApmDocumentType } from '../../../../common/document_type'; import { CONTAINER_ID, HOST_NAME } from '../../../../common/es_fields/apm'; import { mergeKueries, toKueryFilterFormat } from '../../../../common/utils/kuery_utils'; import { useFetcher } from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_top_functions.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_top_functions.tsx index 2ad1106ab9ad0..2099b3b0b2f3f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_top_functions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/profiling_overview/profiling_hosts_top_functions.tsx @@ -8,8 +8,8 @@ import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { EmbeddableFunctions } from '@kbn/observability-shared-plugin/public'; import React from 'react'; -import { ApmDataSourceWithSummary } from '../../../../common/data_source'; -import { ApmDocumentType } from '../../../../common/document_type'; +import type { ApmDataSourceWithSummary } from '../../../../common/data_source'; +import type { ApmDocumentType } from '../../../../common/document_type'; import { CONTAINER_ID, HOST_NAME } from '../../../../common/es_fields/apm'; import { mergeKueries, toKueryFilterFormat } from '../../../../common/utils/kuery_utils'; import { isPending, useFetcher } from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx index c880a912a5b51..9cb1a55e1ac2a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/edit_dashboard.tsx @@ -8,7 +8,7 @@ import { EuiButtonEmpty } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; import { SaveDashboardModal } from './save_dashboard_modal'; -import { MergedServiceDashboard } from '..'; +import type { MergedServiceDashboard } from '..'; export function EditDashboard({ onRefresh, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/goto_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/goto_dashboard.tsx index 9369f6dd2a224..39c891dbef8f4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/goto_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/goto_dashboard.tsx @@ -8,8 +8,8 @@ import { EuiButtonEmpty } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ApmPluginStartDeps } from '../../../../plugin'; -import { SavedApmCustomDashboard } from '../../../../../common/custom_dashboards'; +import type { ApmPluginStartDeps } from '../../../../plugin'; +import type { SavedApmCustomDashboard } from '../../../../../common/custom_dashboards'; export function GotoDashboard({ currentDashboard }: { currentDashboard: SavedApmCustomDashboard }) { const { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/link_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/link_dashboard.tsx index 50bde406cb231..185f0c2a6d86d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/link_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/link_dashboard.tsx @@ -7,7 +7,7 @@ import { EuiButton, EuiButtonEmpty } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; -import { MergedServiceDashboard } from '..'; +import type { MergedServiceDashboard } from '..'; import { SaveDashboardModal } from './save_dashboard_modal'; export function LinkDashboard({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/save_dashboard_modal.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/save_dashboard_modal.tsx index 5f2f91df44231..e98bccbdf6173 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/save_dashboard_modal.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/save_dashboard_modal.tsx @@ -7,6 +7,7 @@ import React, { useCallback, useState } from 'react'; import { useHistory } from 'react-router-dom'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiButton, EuiModal, @@ -16,7 +17,6 @@ import { EuiSwitch, EuiModalBody, EuiComboBox, - EuiComboBoxOptionOption, EuiFlexGroup, EuiToolTip, EuiIcon, @@ -29,7 +29,7 @@ import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { SERVICE_NAME } from '../../../../../common/es_fields/apm'; import { fromQuery, toQuery } from '../../../shared/links/url_helpers'; -import { MergedServiceDashboard } from '..'; +import type { MergedServiceDashboard } from '..'; interface Props { onClose: () => void; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/unlink_dashboard.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/unlink_dashboard.tsx index b7d7e15559720..ddad0c0fcaca0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/unlink_dashboard.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/actions/unlink_dashboard.tsx @@ -8,7 +8,7 @@ import { EuiButtonEmpty, EuiConfirmModal } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useState } from 'react'; import { useHistory } from 'react-router-dom'; -import { MergedServiceDashboard } from '..'; +import type { MergedServiceDashboard } from '..'; import { fromQuery, toQuery } from '../../../shared/links/url_helpers'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { callApmApi } from '../../../../services/rest/create_call_apm_api'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/dashboard_selector.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/dashboard_selector.tsx index 1cc2f2a93c207..200a5005e46a1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/dashboard_selector.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/dashboard_selector.tsx @@ -10,7 +10,7 @@ import { useHistory } from 'react-router-dom'; import useMount from 'react-use/lib/useMount'; import { EuiComboBox } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { MergedServiceDashboard } from '.'; +import type { MergedServiceDashboard } from '.'; import { fromQuery, toQuery } from '../../shared/links/url_helpers'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/index.tsx index a92d781e3dd7c..235891057049b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dashboards/index.tsx @@ -18,18 +18,15 @@ import { } from '@elastic/eui'; import { ViewMode } from '@kbn/embeddable-plugin/public'; -import { - DashboardApi, - DashboardCreationOptions, - DashboardRenderer, -} from '@kbn/dashboard-plugin/public'; -import { SerializableRecord } from '@kbn/utility-types'; +import type { DashboardApi, DashboardCreationOptions } from '@kbn/dashboard-plugin/public'; +import { DashboardRenderer } from '@kbn/dashboard-plugin/public'; +import type { SerializableRecord } from '@kbn/utility-types'; import { EmptyDashboards } from './empty_dashboards'; import { GotoDashboard, LinkDashboard } from './actions'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; -import { SavedApmCustomDashboard } from '../../../../common/custom_dashboards'; +import type { SavedApmCustomDashboard } from '../../../../common/custom_dashboards'; import { ContextMenu } from './context_menu'; import { UnlinkDashboard } from './actions/unlink_dashboard'; import { EditDashboard } from './actions/edit_dashboard'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dependencies/service_dependencies_breakdown_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dependencies/service_dependencies_breakdown_chart.tsx index dd09948dbfed2..b380765d2451d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_dependencies/service_dependencies_breakdown_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_dependencies/service_dependencies_breakdown_chart.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; import { getVizColorForIndex } from '../../../../common/viz_colors'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useFetcher } from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/refresh_service_groups_subscriber.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/refresh_service_groups_subscriber.tsx index bd4c658bf6135..441ae877d732d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/refresh_service_groups_subscriber.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/refresh_service_groups_subscriber.tsx @@ -6,7 +6,8 @@ */ import React, { useEffect, useRef } from 'react'; -import { Subject, Subscription } from 'rxjs'; +import type { Subscription } from 'rxjs'; +import { Subject } from 'rxjs'; const refreshServiceGroupsSubject = new Subject(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/save_modal.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/save_modal.tsx index 9ecc00d8681ec..c40eb3d803712 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/save_modal.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/save_modal.tsx @@ -12,7 +12,7 @@ import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { GroupDetails } from './group_details'; import { SelectServices } from './select_services'; -import { ServiceGroup, SavedServiceGroup } from '../../../../../common/service_groups'; +import type { ServiceGroup, SavedServiceGroup } from '../../../../../common/service_groups'; import { refreshServiceGroups } from '../refresh_service_groups_subscriber'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/service_list_preview.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/service_list_preview.tsx index 77694d60c84e8..a1499bdfebcf2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/service_list_preview.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_group_save/service_list_preview.tsx @@ -4,13 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiBasicTable, EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { AgentIcon } from '@kbn/custom-icons'; import { i18n } from '@kbn/i18n'; import { orderBy } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; -import { ValuesType } from 'utility-types'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { ValuesType } from 'utility-types'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { unit } from '../../../../utils/style'; import { EnvironmentBadge } from '../../../shared/environment_badge'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_group_card.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_group_card.tsx index 4972bf4582813..77214d2a92bdc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_group_card.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_group_card.tsx @@ -5,11 +5,11 @@ * 2.0. */ import { EuiToolTip } from '@elastic/eui'; +import type { EuiCardProps } from '@elastic/eui'; import { EuiAvatar, EuiBadge, EuiCard, - EuiCardProps, EuiFlexGroup, EuiFlexItem, EuiText, @@ -18,7 +18,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ServiceGroup } from '../../../../../common/service_groups'; +import type { ServiceGroup } from '../../../../../common/service_groups'; import { useObservabilityActiveAlertsHref } from '../../../shared/links/kibana'; import { ServiceStat } from './service_stat'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_groups_list.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_groups_list.tsx index 0558007e49406..82c196d153fff 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_groups_list.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_groups_list.tsx @@ -6,11 +6,11 @@ */ import { EuiFlexGroup } from '@elastic/eui'; import React from 'react'; -import { SavedServiceGroup } from '../../../../../common/service_groups'; +import type { SavedServiceGroup } from '../../../../../common/service_groups'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useDefaultEnvironment } from '../../../../hooks/use_default_environment'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ServiceGroupsCard } from './service_group_card'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_stat.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_stat.tsx index 8440e3ae2c364..06b202597350d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_stat.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/service_stat.tsx @@ -6,7 +6,8 @@ */ import { EuiFlexItem, EuiSkeletonText } from '@elastic/eui'; -import React, { PropsWithChildren } from 'react'; +import type { PropsWithChildren } from 'react'; +import React from 'react'; interface Props { loading: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/sort.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/sort.tsx index 6b635798c1359..bc5bca798cdb8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/sort.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_groups/service_groups_list/sort.tsx @@ -7,7 +7,7 @@ import { EuiSelect } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ServiceGroupsSortType } from '.'; +import type { ServiceGroupsSortType } from '.'; interface Props { type: ServiceGroupsSortType; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/index.tsx index d052583607300..d2f08d7ca6b99 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/index.tsx @@ -11,7 +11,8 @@ import { i18n } from '@kbn/i18n'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { v4 as uuidv4 } from 'uuid'; import { ApmDocumentType } from '../../../../common/document_type'; -import { ServiceInventoryFieldName, ServiceListItem } from '../../../../common/service_inventory'; +import type { ServiceListItem } from '../../../../common/service_inventory'; +import { ServiceInventoryFieldName } from '../../../../common/service_inventory'; import { useAnomalyDetectionJobsContext } from '../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useApmParams } from '../../../hooks/use_apm_params'; @@ -21,8 +22,8 @@ import { useLocalStorage } from '../../../hooks/use_local_storage'; import { usePreferredDataSourceAndBucketSize } from '../../../hooks/use_preferred_data_source_and_bucket_size'; import { useProgressiveFetcher } from '../../../hooks/use_progressive_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; -import { SortFunction } from '../../shared/managed_table'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { SortFunction } from '../../shared/managed_table'; import { MLCallout, shouldDisplayMlCallout } from '../../shared/ml_callout'; import { SearchBar } from '../../shared/search_bar/search_bar'; import { isTimeComparison } from '../../shared/time_comparison/get_comparison_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_inventory.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_inventory.stories.tsx index 41b69daf1cdf4..4699602037d44 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_inventory.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_inventory.stories.tsx @@ -5,13 +5,13 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; -import { Meta, Story } from '@storybook/react'; +import type { CoreStart } from '@kbn/core/public'; +import type { Meta, Story } from '@storybook/react'; import React from 'react'; import { ServiceInventory } from '.'; import { AnomalyDetectionSetupState } from '../../../../common/anomaly_detection/get_anomaly_detection_setup_state'; import { AnomalyDetectionJobsContext } from '../../../context/anomaly_detection_jobs/anomaly_detection_jobs_context'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../context/apm_plugin/mock_apm_plugin_storybook'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts index 7c6f3d85c13cb..0a16f064c5021 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/apm_services_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/apm_services_table.tsx index 8b1d3ad19bd7f..90385689f7458 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/apm_services_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/apm_services_table.tsx @@ -17,14 +17,12 @@ import { import { i18n } from '@kbn/i18n'; import { apmEnableServiceInventoryTableSearchBar } from '@kbn/observability-plugin/common'; import { ALERT_STATUS_ACTIVE } from '@kbn/rule-data-utils'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { omit } from 'lodash'; import React, { useMemo } from 'react'; import { ServiceHealthStatus } from '../../../../../common/service_health_status'; -import { - ServiceInventoryFieldName, - ServiceListItem, -} from '../../../../../common/service_inventory'; +import type { ServiceListItem } from '../../../../../common/service_inventory'; +import { ServiceInventoryFieldName } from '../../../../../common/service_inventory'; import { isDefaultTransactionType } from '../../../../../common/transaction_types'; import { asMillisecondDuration, @@ -34,23 +32,21 @@ import { import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; -import { Breakpoints, useBreakpoints } from '../../../../hooks/use_breakpoints'; +import type { Breakpoints } from '../../../../hooks/use_breakpoints'; +import { useBreakpoints } from '../../../../hooks/use_breakpoints'; import { useFallbackToTransactionsFetcher } from '../../../../hooks/use_fallback_to_transactions_fetcher'; -import { FETCH_STATUS, isFailure, isPending } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import { isFailure, isPending } from '../../../../hooks/use_fetcher'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { unit } from '../../../../utils/style'; -import { ApmRoutes } from '../../../routing/apm_route_config'; +import type { ApmRoutes } from '../../../routing/apm_route_config'; import { AggregatedTransactionsBadge } from '../../../shared/aggregated_transactions_badge'; import { ChartType, getTimeSeriesColor } from '../../../shared/charts/helper/get_timeseries_color'; import { EnvironmentBadge } from '../../../shared/environment_badge'; import { ServiceLink } from '../../../shared/links/apm/service_link'; import { ListMetric } from '../../../shared/list_metric'; -import { - ITableColumn, - ManagedTable, - SortFunction, - TableSearchBar, -} from '../../../shared/managed_table'; +import type { ITableColumn, SortFunction, TableSearchBar } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; import { ColumnHeaderWithTooltip } from './column_header_with_tooltip'; import { HealthBadge } from './health_badge'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx index 1c21826c80d3b..0cfe5b9539f53 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx @@ -7,10 +7,10 @@ import React from 'react'; import { EuiBadge, useEuiTheme } from '@elastic/eui'; +import type { ServiceHealthStatus } from '../../../../../common/service_health_status'; import { getServiceHealthStatusBadgeColor, getServiceHealthStatusLabel, - ServiceHealthStatus, } from '../../../../../common/service_health_status'; export function HealthBadge({ healthStatus }: { healthStatus: ServiceHealthStatus }) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/order_service_items.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/order_service_items.ts index 85d2b9678f061..507e43610d5ea 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/order_service_items.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/order_service_items.ts @@ -6,10 +6,8 @@ */ import { orderBy } from 'lodash'; import { ServiceHealthStatus } from '../../../../../common/service_health_status'; -import { - ServiceListItem, - ServiceInventoryFieldName, -} from '../../../../../common/service_inventory'; +import type { ServiceListItem } from '../../../../../common/service_inventory'; +import { ServiceInventoryFieldName } from '../../../../../common/service_inventory'; type SortValueGetter = (item: ServiceListItem) => string | number; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx index efd00b38b56cc..4e6999c0da4a4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.stories.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; +import type { CoreStart } from '@kbn/core/public'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { ApmServicesTable } from './apm_services_table'; import { ServiceHealthStatus } from '../../../../../common/service_health_status'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx index e2ac029c79ce3..8dc45afe9bd00 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx @@ -10,7 +10,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import { getServiceColumns } from './apm_services_table'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; -import { Breakpoints } from '../../../../hooks/use_breakpoints'; +import type { Breakpoints } from '../../../../hooks/use_breakpoints'; import { apmRouter } from '../../../routing/apm_route_config'; import * as timeSeriesColor from '../../../shared/charts/helper/get_timeseries_color'; import * as stories from './service_list.stories'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_logs/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_logs/index.tsx index 35f502642518f..c6333f0f63342 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_logs/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_logs/index.tsx @@ -6,7 +6,7 @@ */ import React, { useMemo } from 'react'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { LazySavedSearchComponent } from '@kbn/saved-search-component'; import useAsync from 'react-use/lib/useAsync'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; @@ -16,7 +16,7 @@ import { useKibana } from '../../../context/kibana_context/use_kibana'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; export function ServiceLogs() { const { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx index 4adb330ffdc28..0258360653aac 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import cytoscape from 'cytoscape'; -import React, { ComponentType } from 'react'; +import type cytoscape from 'cytoscape'; +import type { ComponentType } from 'react'; +import React from 'react'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; import { Cytoscape } from '../cytoscape'; import { Centerer } from './centerer'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx index 04f247ebc2244..fb0766c346975 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx @@ -15,7 +15,7 @@ import { EuiSpacer, EuiToolTip, } from '@elastic/eui'; -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React, { useEffect, useState } from 'react'; import { CodeEditor } from '@kbn/code-editor'; import { Cytoscape } from '../cytoscape'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.test.tsx index 71d3f7aa271d0..03677f82cbaba 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.test.tsx @@ -6,7 +6,8 @@ */ import cytoscape from 'cytoscape'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; import { Controls } from './controls'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx index e3a293a279e2c..26be768bdabfd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx @@ -12,7 +12,7 @@ import styled from '@emotion/styled'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { getLegacyApmHref } from '../../shared/links/apm/apm_link'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; -import { APMQueryParams } from '../../shared/links/url_helpers'; +import type { APMQueryParams } from '../../shared/links/url_helpers'; import { CytoscapeContext } from './cytoscape'; import { getAnimationOptions, getNodeHeight } from './cytoscape_options'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape.tsx index eacd67e6dabe8..57bf652fb873c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape.tsx @@ -8,15 +8,8 @@ import cytoscape from 'cytoscape'; import dagre from 'cytoscape-dagre'; import { isEqual } from 'lodash'; -import React, { - createContext, - CSSProperties, - memo, - ReactNode, - useEffect, - useRef, - useState, -} from 'react'; +import type { CSSProperties, ReactNode } from 'react'; +import React, { createContext, memo, useEffect, useRef, useState } from 'react'; import { useEuiTheme } from '@elastic/eui'; import { useTraceExplorerEnabledSetting } from '../../../hooks/use_trace_explorer_enabled_setting'; import { getCytoscapeOptions } from './cytoscape_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts index fa6fdbce3c76c..cfe12a5d8b5a3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts @@ -5,10 +5,10 @@ * 2.0. */ -import cytoscape from 'cytoscape'; -import { CSSProperties } from 'react'; +import type cytoscape from 'cytoscape'; +import type { CSSProperties } from 'react'; import type { EuiThemeComputed } from '@elastic/eui'; -import { ServiceAnomalyStats } from '../../../../common/anomaly_detection'; +import type { ServiceAnomalyStats } from '../../../../common/anomaly_detection'; import { SERVICE_NAME, SPAN_DESTINATION_SERVICE_RESOURCE } from '../../../../common/es_fields/apm'; import { getServiceHealthStatusColor, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/empty_banner.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/empty_banner.test.tsx index 168180e89c97e..9899d7ae244bb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/empty_banner.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/empty_banner.test.tsx @@ -7,7 +7,8 @@ import { act, waitFor } from '@testing-library/react'; import cytoscape from 'cytoscape'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; import { renderWithTheme } from '../../../utils/test_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/icons.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/icons.ts index c7c19d207c3ce..a8ddbe1aec89e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/icons.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/icons.ts @@ -6,7 +6,7 @@ */ import { getAgentIcon } from '@kbn/custom-icons'; -import cytoscape from 'cytoscape'; +import type cytoscape from 'cytoscape'; import { AGENT_NAME, SPAN_SUBTYPE, SPAN_TYPE } from '../../../../common/es_fields/apm'; import { getSpanIcon } from '../../shared/span_icon/get_span_icon'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/index.tsx index 7d6bcbe69cfac..e944277f26ca6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/index.tsx @@ -7,7 +7,8 @@ import { usePerformanceContext } from '@kbn/ebt-tools'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiPanel, useEuiTheme } from '@elastic/eui'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { isActivePlatinumLicense } from '../../../../common/license_check'; import { invalidLicenseMessage, SERVICE_MAP_TIMEOUT_ERROR } from '../../../../common/service_map'; @@ -25,7 +26,7 @@ import { useRefDimensions } from './use_ref_dimensions'; import { SearchBar } from '../../shared/search_bar/search_bar'; import { useServiceName } from '../../../hooks/use_service_name'; import { useApmParams, useAnyOfApmParams } from '../../../hooks/use_apm_params'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; import { useTimeRange } from '../../../hooks/use_time_range'; import { DisabledPrompt } from './disabled_prompt'; import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx index 562093976177a..e2fbe40a394d3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx @@ -17,7 +17,8 @@ import { import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; -import { getSeverity, ServiceAnomalyStats } from '../../../../../common/anomaly_detection'; +import type { ServiceAnomalyStats } from '../../../../../common/anomaly_detection'; +import { getSeverity } from '../../../../../common/anomaly_detection'; import { getServiceHealthStatus, getServiceHealthStatusColor, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/dependency_contents.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/dependency_contents.tsx index f2da74cfdcd82..544014d8dcd1a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/dependency_contents.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/dependency_contents.tsx @@ -7,19 +7,19 @@ import { EuiButton, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { METRIC_TYPE } from '@kbn/analytics'; import React from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; -import { NodeDataDefinition } from 'cytoscape'; +import type { NodeDataDefinition } from 'cytoscape'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; -import { ContentsProps } from '.'; +import type { ContentsProps } from '.'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { ApmRoutes } from '../../../routing/apm_route_config'; +import type { ApmRoutes } from '../../../routing/apm_route_config'; import { StatsList } from './stats_list'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type DependencyReturn = APIReturnType<'GET /internal/apm/service-map/dependency'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.tsx index aa1a4959a4a70..5a5cf901e622e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.tsx @@ -10,8 +10,8 @@ import { i18n } from '@kbn/i18n'; import { METRIC_TYPE } from '@kbn/analytics'; import React from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; -import { EdgeDataDefinition } from 'cytoscape'; -import { ContentsProps } from '.'; +import type { EdgeDataDefinition } from 'cytoscape'; +import type { ContentsProps } from '.'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { TraceSearchType } from '../../../../../common/trace_explorer'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx index a81df94c3d6f0..9e115ae0a6c57 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx @@ -13,14 +13,14 @@ import { } from '@elastic/eui'; import React, { Fragment } from 'react'; import styled from '@emotion/styled'; -import { NodeDataDefinition } from 'cytoscape'; -import { ContentsProps } from '.'; +import type { NodeDataDefinition } from 'cytoscape'; +import type { ContentsProps } from '.'; import { SPAN_DESTINATION_SERVICE_RESOURCE, SPAN_TYPE, SPAN_SUBTYPE, } from '../../../../../common/es_fields/apm'; -import { ExternalConnectionNode } from '../../../../../common/service_map'; +import type { ExternalConnectionNode } from '../../../../../common/service_map'; const ExternalResourcesList = styled.section` max-height: 360px; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx index 827ea59015f26..1bdd6240b63dc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx @@ -15,19 +15,12 @@ import { EuiIcon, useEuiTheme, } from '@elastic/eui'; -import cytoscape from 'cytoscape'; -import React, { - CSSProperties, - MouseEvent, - useCallback, - useContext, - useEffect, - useRef, - useState, -} from 'react'; +import type cytoscape from 'cytoscape'; +import type { CSSProperties, MouseEvent } from 'react'; +import React, { useCallback, useContext, useEffect, useRef, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { SERVICE_NAME, SPAN_TYPE } from '../../../../../common/es_fields/apm'; -import { Environment } from '../../../../../common/environment_rt'; +import type { Environment } from '../../../../../common/environment_rt'; import { useTraceExplorerEnabledSetting } from '../../../../hooks/use_trace_explorer_enabled_setting'; import { CytoscapeContext } from '../cytoscape'; import { getAnimationOptions, popoverWidth } from '../cytoscape_options'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx index 1112f608d49c0..f33bea26cd329 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import cytoscape from 'cytoscape'; import React from 'react'; import { Popover } from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx index 272a5e97dfd1a..4914fe8f8feed 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx @@ -9,7 +9,7 @@ import { EuiDescriptionListDescription, EuiDescriptionListTitle } from '@elastic import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; -import { NodeDataDefinition } from 'cytoscape'; +import type { NodeDataDefinition } from 'cytoscape'; import type { ContentsProps } from '.'; import { SPAN_SUBTYPE, SPAN_TYPE } from '../../../../../common/es_fields/apm'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/service_contents.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/service_contents.tsx index a64b9cdbf3fdc..7a8a09f85a639 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/service_contents.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/service_contents.tsx @@ -10,7 +10,7 @@ import { EuiButton, EuiFlexItem, EuiHorizontalRule, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { NodeDataDefinition } from 'cytoscape'; +import type { NodeDataDefinition } from 'cytoscape'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; import type { ContentsProps } from '.'; @@ -19,7 +19,7 @@ import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { AnomalyDetection } from './anomaly_detection'; import { StatsList } from './stats_list'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type ServiceNodeReturn = APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/stats_list.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/stats_list.tsx index 6bd4cc647650d..6bc7cec0db87e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/stats_list.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/stats_list.tsx @@ -10,10 +10,10 @@ import { i18n } from '@kbn/i18n'; import { isNumber } from 'lodash'; import React, { useMemo } from 'react'; import { asDuration, asPercent, asTransactionRate } from '../../../../../common/utils/formatters'; -import { Coordinate } from '../../../../../typings/timeseries'; +import type { Coordinate } from '../../../../../typings/timeseries'; import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ChartType, getTimeSeriesColor } from '../../../shared/charts/helper/get_timeseries_color'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type ServiceNodeReturn = APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts index fdf607c340fe2..9f40a34be5cbf 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts @@ -5,7 +5,7 @@ * 2.0. */ -import cytoscape from 'cytoscape'; +import type cytoscape from 'cytoscape'; import { debounce } from 'lodash'; import { useEffect } from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/apm_overview/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/apm_overview/index.tsx index 7995402eb29a9..f747319f5c7e8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/apm_overview/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/apm_overview/index.tsx @@ -4,18 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiFlexGroup, - EuiFlexGroupProps, - EuiFlexItem, - EuiLink, - EuiPanel, - EuiSpacer, -} from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiPanel, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { chartHeight } from '..'; -import { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; import { isOpenTelemetryAgentName, isRumAgentName, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview.stories.tsx index afd0b06700517..c65aedc957c4a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview.stories.tsx @@ -5,12 +5,12 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React from 'react'; import { EntityDataStreamType } from '@kbn/observability-shared-plugin/common'; import { ServiceOverview } from '.'; import { MockApmPluginStorybook } from '../../../context/apm_plugin/mock_apm_plugin_storybook'; -import { APMServiceContextValue } from '../../../context/apm_service/apm_service_context'; +import type { APMServiceContextValue } from '../../../context/apm_service/apm_service_context'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { mockApmApiCallResponse } from '../../../services/rest/call_apm_api_spy'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx index 1327a58cc0e86..34a2be48813ec 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_dependencies_table/index.tsx @@ -8,7 +8,8 @@ import { EuiIconTip } from '@elastic/eui'; import { METRIC_TYPE } from '@kbn/analytics'; import { i18n } from '@kbn/i18n'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; import { getNodeName, NodeType } from '../../../../../common/connections'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table/index.tsx index 7b0a99055a73a..3f37453b8edaf 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table/index.tsx @@ -13,11 +13,12 @@ import { useApmServiceContext } from '../../../../context/apm_service/use_apm_se import { useApmParams } from '../../../../hooks/use_apm_params'; import { FETCH_STATUS, isPending, useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { InstancesLatencyDistributionChart } from '../../../shared/charts/instances_latency_distribution_chart'; -import { ServiceOverviewInstancesTable, TableOptions } from '../service_overview_instances_table'; -import { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; -import { InstancesSortField } from '../../../../../common/instances'; +import type { TableOptions } from '../service_overview_instances_table'; +import { ServiceOverviewInstancesTable } from '../service_overview_instances_table'; +import type { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; +import type { InstancesSortField } from '../../../../../common/instances'; interface ServiceOverviewInstancesChartAndTableProps { chartHeight: number; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx index 539a02c75ebba..85da44144453a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx @@ -5,19 +5,21 @@ * 2.0. */ -import { EuiBasicTableColumn, EuiButtonIcon, RIGHT_ALIGNMENT } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiButtonIcon, RIGHT_ALIGNMENT } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { ActionMenu } from '@kbn/observability-shared-plugin/public'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; -import { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; import { getServiceNodeName, SERVICE_NODE_NAME_MISSING } from '../../../../../common/service_nodes'; import { asMillisecondDuration, asPercent, asTransactionRate, } from '../../../../../common/utils/formatters'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { MetricOverviewLink } from '../../../shared/links/apm/metric_overview_link'; import { ListMetric } from '../../../shared/list_metric'; import { getLatencyColumnLabel } from '../../../shared/transactions_table/get_latency_column_label'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx index 8b0ca455871af..073c39dfa4186 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx @@ -7,17 +7,19 @@ import { EuiBasicTable, EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { ReactNode, useEffect, useState } from 'react'; +import type { ReactNode } from 'react'; +import React, { useEffect, useState } from 'react'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; -import { PAGE_SIZE, SortDirection } from '../service_overview_instances_chart_and_table'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { SortDirection } from '../service_overview_instances_chart_and_table'; +import { PAGE_SIZE } from '../service_overview_instances_chart_and_table'; import { OverviewTableContainer } from '../../../shared/overview_table_container'; import { getColumns } from './get_columns'; import { InstanceDetails } from './intance_details'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useBreakpoints } from '../../../../hooks/use_breakpoints'; -import { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; -import { InstancesSortField } from '../../../../../common/instances'; +import type { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; +import type { InstancesSortField } from '../../../../../common/instances'; type ServiceInstanceMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/index.tsx index 4e609b35935f1..ea3c24281d20b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/index.tsx @@ -15,10 +15,8 @@ import { SectionSubtitle, SectionTitle, } from '@kbn/observability-shared-plugin/public'; -import { - AllDatasetsLocatorParams, - ALL_DATASETS_LOCATOR_ID, -} from '@kbn/deeplinks-observability/locators'; +import type { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability/locators'; +import { ALL_DATASETS_LOCATOR_ID } from '@kbn/deeplinks-observability/locators'; import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { ASSET_DETAILS_LOCATOR_ID, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts index 7d7ced6c5a990..4e08572c9cb4e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts @@ -6,19 +6,19 @@ */ import { i18n } from '@kbn/i18n'; -import { IBasePath } from '@kbn/core/public'; +import type { IBasePath } from '@kbn/core/public'; import moment from 'moment'; -import { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability/locators'; +import type { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability/locators'; import type { LocatorPublic } from '@kbn/share-plugin/public'; -import { NodeLogsLocatorParams } from '@kbn/logs-shared-plugin/common'; +import type { NodeLogsLocatorParams } from '@kbn/logs-shared-plugin/common'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; import { type AssetDetailsLocator } from '@kbn/observability-shared-plugin/common'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; -import { +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { Action, - getNonEmptySections, SectionRecord, } from '../../../../shared/transaction_action_menu/sections_helper'; +import { getNonEmptySections } from '../../../../shared/transaction_action_menu/sections_helper'; type InstaceDetails = APIReturnType<'GET /internal/apm/services/{serviceName}/service_overview_instances/details/{serviceNodeName}'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx index d9fe0fa17552e..5221387add62b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { expectTextsInDocument, expectTextsNotInDocument, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx index bd9ade55866e9..5ae28c69f52a6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx @@ -6,7 +6,8 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiSkeletonText, useEuiTheme } from '@elastic/eui'; -import { CloudProvider, getAgentIcon, getCloudProviderIcon } from '@kbn/custom-icons'; +import type { CloudProvider } from '@kbn/custom-icons'; +import { getAgentIcon, getCloudProviderIcon } from '@kbn/custom-icons'; import { i18n } from '@kbn/i18n'; import { get } from 'lodash'; import React from 'react'; @@ -35,7 +36,7 @@ import { } from '../../../../../common/es_fields/infra_metrics'; import { isPending } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { KeyValueFilterList } from '../../../shared/key_value_filter_list'; import { pushNewItemToKueryBar } from '../../../shared/kuery_bar/utils'; import { getContainerIcon } from '../../../shared/service_icons'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart/get_throughput_screen_context.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart/get_throughput_screen_context.ts index ad60e71a7093d..825d757466404 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart/get_throughput_screen_context.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart/get_throughput_screen_context.ts @@ -7,7 +7,7 @@ import { SERVICE_ENVIRONMENT } from '@kbn/observability-shared-plugin/common'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; -import { Environment } from '../../../../../common/environment_rt'; +import type { Environment } from '../../../../../common/environment_rt'; import { PROCESSOR_EVENT, SERVICE_NAME, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/constants.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/constants.ts index 4fa7c09f2c219..84eabe291f120 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/constants.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/constants.ts @@ -8,10 +8,8 @@ import { i18n } from '@kbn/i18n'; import type { AddDataPanelProps } from '@kbn/observability-shared-plugin/public'; import type { LocatorPublic } from '@kbn/share-plugin/common'; -import { - ApmOnboardingLocatorCategory, - ApmOnboardingLocatorParams, -} from '../../../locator/onboarding_locator'; +import type { ApmOnboardingLocatorParams } from '../../../locator/onboarding_locator'; +import { ApmOnboardingLocatorCategory } from '../../../locator/onboarding_locator'; export type AddAPMCalloutKeys = | 'serviceOverview' diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/index.tsx index 2759f5718a16e..9b496c2711f7a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/index.tsx @@ -9,12 +9,16 @@ import React from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { AddDataPanel } from '@kbn/observability-shared-plugin/public'; import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; -import { ApmOnboardingLocatorParams } from '../../../locator/onboarding_locator'; +import type { ApmOnboardingLocatorParams } from '../../../locator/onboarding_locator'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { EmptyStateClickParams, EntityInventoryAddDataParams } from '../../../services/telemetry'; -import { ApmPluginStartDeps, ApmServices } from '../../../plugin'; +import type { + EmptyStateClickParams, + EntityInventoryAddDataParams, +} from '../../../services/telemetry'; +import type { ApmPluginStartDeps, ApmServices } from '../../../plugin'; import { useKibanaUrl } from '../../../hooks/use_kibana_url'; -import { addAPMCalloutDefinitions, AddAPMCalloutKeys } from './constants'; +import type { AddAPMCalloutKeys } from './constants'; +import { addAPMCalloutDefinitions } from './constants'; export interface ServiceTabEmptyStateProps { id: AddAPMCalloutKeys; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/service_tab_empty_state.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/service_tab_empty_state.stories.tsx index 1e85abd2a5b62..589556f70e0e0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/service_tab_empty_state.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_tab_empty_state/service_tab_empty_state.stories.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ComponentProps, ComponentType } from 'react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { ServiceTabEmptyState } from '.'; import { MockApmPluginStorybook } from '../../../context/apm_plugin/mock_apm_plugin_storybook'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx index 8c69954f637e8..e9b95ac914589 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx @@ -7,15 +7,13 @@ import { storiesOf } from '@storybook/react'; import React from 'react'; -import { CoreStart } from '@kbn/core/public'; -import { AgentConfiguration } from '../../../../../../common/agent_configuration/configuration_types'; +import type { CoreStart } from '@kbn/core/public'; +import type { AgentConfiguration } from '../../../../../../common/agent_configuration/configuration_types'; import { FETCH_STATUS } from '../../../../../hooks/use_fetcher'; import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api'; import { AgentConfigurationCreateEdit } from '.'; -import { - ApmPluginContext, - ApmPluginContextValue, -} from '../../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../../context/apm_plugin/apm_plugin_context'; +import { ApmPluginContext } from '../../../../../context/apm_plugin/apm_plugin_context'; storiesOf('app/settings/AgentConfigurations/agent_configuration_create_edit', module) .addDecorator((storyFn) => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx index 735f18669e8f7..56661eb41bd53 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx @@ -7,15 +7,15 @@ import { EuiSpacer, EuiText, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { History } from 'history'; +import type { History } from 'history'; import { isEmpty } from 'lodash'; import React, { useCallback, useEffect, useState } from 'react'; import { useHistory } from 'react-router-dom'; -import { +import type { AgentConfiguration, AgentConfigurationIntake, } from '../../../../../../common/agent_configuration/configuration_types'; -import { FetcherResult } from '../../../../../hooks/use_fetcher'; +import type { FetcherResult } from '../../../../../hooks/use_fetcher'; import { fromQuery, toQuery } from '../../../../shared/links/url_helpers'; import { ServicePage } from './service_page/service_page'; import { SettingsPage } from './settings_page/settings_page'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx index 92e081049bca0..42a8b1ebd8c5a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx @@ -5,12 +5,8 @@ * 2.0. */ -import { - EuiComboBox, - EuiComboBoxOptionOption, - EuiDescribedFormGroup, - EuiFormRow, -} from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox, EuiDescribedFormGroup, EuiFormRow } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo } from 'react'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_suggestions_select.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_suggestions_select.tsx index fcb02fc159f4d..c13fd7150b46e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_suggestions_select.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_suggestions_select.tsx @@ -6,7 +6,8 @@ */ import moment from 'moment'; import { EuiDescribedFormGroup, EuiFormRow } from '@elastic/eui'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { i18n } from '@kbn/i18n'; import { SuggestionsSelect } from '../../../../../shared/suggestions_select'; import { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx index 47f74e4f4f4fb..b23afedb6cd84 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { isString } from 'lodash'; import { EuiButtonEmpty } from '@elastic/eui'; -import { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; +import type { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; import { omitAllOption, getOptionLabel, @@ -22,7 +22,7 @@ import { LegacyAPMLink } from '../../../../../shared/links/apm/apm_link'; import { FormRowSuggestionsSelect } from './form_row_suggestions_select'; import { SERVICE_NAME } from '../../../../../../../common/es_fields/apm'; import { isOpenTelemetryAgentName } from '../../../../../../../common/agent_name'; -import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; interface Props { newConfig: AgentConfigurationIntake; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts index 09ebaf27cb842..970fde7ba18ce 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts @@ -6,8 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { NotificationsStart } from '@kbn/core/public'; -import { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; +import type { NotificationsStart } from '@kbn/core/public'; +import type { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; import { getOptionLabel, omitAllOption, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx index 6ef77676bad6b..1c11a5a6b70e0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx @@ -19,7 +19,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { EuiMarkdownFormat } from '@elastic/eui'; -import { SettingDefinition } from '../../../../../../../common/agent_configuration/setting_definitions/types'; +import type { SettingDefinition } from '../../../../../../../common/agent_configuration/setting_definitions/types'; import { validateSetting } from '../../../../../../../common/agent_configuration/setting_definitions'; import { amountAndUnitToString, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx index dcfbe3d365102..37e6d4ac8a9c8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx @@ -21,13 +21,13 @@ import { BottomBarActions, useUiTracker } from '@kbn/observability-shared-plugin import React, { useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { getOptionLabel } from '../../../../../../../common/agent_configuration/all_option'; -import { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; +import type { AgentConfigurationIntake } from '../../../../../../../common/agent_configuration/configuration_types'; import { filterByAgent, settingDefinitions, validateSetting, } from '../../../../../../../common/agent_configuration/setting_definitions'; -import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; import { useApmPluginContext } from '../../../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../../../../hooks/use_fetcher'; import { saveConfig } from './save_config'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx index 914c664946fc2..45f1bd2efeeb5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx @@ -7,10 +7,11 @@ import React, { useState } from 'react'; import { EuiConfirmModal } from '@elastic/eui'; -import { NotificationsStart } from '@kbn/core/public'; +import type { NotificationsStart } from '@kbn/core/public'; import { i18n } from '@kbn/i18n'; import { getOptionLabel } from '../../../../../../common/agent_configuration/all_option'; -import { APIReturnType, callApmApi } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; type Config = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx index ddd74716ceefb..41ae951a68a9a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx @@ -19,12 +19,13 @@ import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React, { useState } from 'react'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { getOptionLabel } from '../../../../../../common/agent_configuration/all_option'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../../../hooks/use_fetcher'; import { LoadingStatePrompt } from '../../../../shared/loading_state_prompt'; -import { ITableColumn, ManagedTable } from '../../../../shared/managed_table'; +import type { ITableColumn } from '../../../../shared/managed_table'; +import { ManagedTable } from '../../../../shared/managed_table'; import { TimestampTooltip } from '../../../../shared/timestamp_tooltip'; import { ConfirmDeleteModal } from './confirm_delete_modal'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_explorer_docs_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_explorer_docs_link/index.tsx index f06cdd328cba9..52a1196f37936 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_explorer_docs_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_explorer_docs_link/index.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import { isOpenTelemetryAgentName } from '../../../../../../common/agent_name'; import { NOT_AVAILABLE_LABEL } from '../../../../../../common/i18n'; -import { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; interface AgentExplorerDocsLinkProps { agentName: AgentName; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_contextual_information/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_contextual_information/index.tsx index 412814372cccc..f8c3f4cea7cd9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_contextual_information/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_contextual_information/index.tsx @@ -7,13 +7,13 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { isEmpty } from 'lodash'; import React from 'react'; -import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; import { useApmPluginContext } from '../../../../../../context/apm_plugin/use_apm_plugin_context'; import { useDefaultTimeRange } from '../../../../../../hooks/use_default_time_range'; -import { ApmRoutes } from '../../../../../routing/apm_route_config'; +import type { ApmRoutes } from '../../../../../routing/apm_route_config'; import { ServiceLink } from '../../../../../shared/links/apm/service_link'; import { StickyProperties } from '../../../../../shared/sticky_properties'; import { getComparisonEnabled } from '../../../../../shared/time_comparison/get_comparison_enabled'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_instances_details/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_instances_details/index.tsx index 19b0ea898d04f..3f2e67ea07071 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_instances_details/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/agent_instances_details/index.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { EuiBasicTableColumn, EuiInMemoryTable, EuiLink, EuiText } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiInMemoryTable, EuiLink, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { MetricOverviewLink } from '../../../../../shared/links/apm/metric_overview_link'; import { AgentExplorerFieldName } from '../../../../../../../common/agent_explorer'; import { isOpenTelemetryAgentName } from '../../../../../../../common/agent_name'; @@ -17,8 +18,8 @@ import { getServiceNodeName, SERVICE_NODE_NAME_MISSING, } from '../../../../../../../common/service_nodes'; -import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; -import { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; +import type { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; +import type { APIReturnType } from '../../../../../../services/rest/create_call_apm_api'; import { unit } from '../../../../../../utils/style'; import { EnvironmentBadge } from '../../../../../shared/environment_badge'; import { ItemsBadge } from '../../../../../shared/item_badge'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/index.tsx index bea6172af8f63..d8ed01d38cf08 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_instances/index.tsx @@ -22,7 +22,7 @@ import { FETCH_STATUS } from '../../../../../hooks/use_fetcher'; import { useProgressiveFetcher } from '../../../../../hooks/use_progressive_fetcher'; import { useTimeRange } from '../../../../../hooks/use_time_range'; import { ResponsiveFlyout } from '../../../transaction_details/waterfall_with_summary/waterfall_container/waterfall/responsive_flyout'; -import { AgentExplorerItem } from '../agent_list'; +import type { AgentExplorerItem } from '../agent_list'; import { AgentContextualInformation } from './agent_contextual_information'; import { AgentInstancesDetails } from './agent_instances_details'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_latest_version/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_latest_version/index.tsx index e13f94e2690d0..65c4463d70e5b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_latest_version/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_latest_version/index.tsx @@ -9,7 +9,7 @@ import { EuiSkeletonRectangle, EuiToolTip, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { NOT_AVAILABLE_LABEL } from '../../../../../../common/i18n'; -import { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; export function AgentLatestVersion({ agentName, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_list/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_list/index.tsx index 7c3210dabbfea..0ff90dff3e424 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_list/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/agent_list/index.tsx @@ -10,14 +10,15 @@ import { AgentIcon } from '@kbn/custom-icons'; import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React, { useMemo, useState } from 'react'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { AgentExplorerFieldName } from '../../../../../../common/agent_explorer'; -import { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { EnvironmentBadge } from '../../../../shared/environment_badge'; import { ItemsBadge } from '../../../../shared/item_badge'; -import { ITableColumn, ManagedTable } from '../../../../shared/managed_table'; +import type { ITableColumn } from '../../../../shared/managed_table'; +import { ManagedTable } from '../../../../shared/managed_table'; import { TruncateWithTooltip } from '../../../../shared/truncate_with_tooltip'; import { AgentExplorerDocsLink } from '../agent_explorer_docs_link'; import { AgentInstances } from '../agent_instances'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/index.tsx index c89f3cc7a0387..9269df3695d00 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_explorer/index.tsx @@ -18,7 +18,7 @@ import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React from 'react'; import { useHistory } from 'react-router-dom'; -import { +import type { ElasticApmAgentLatestVersion, OtelAgentLatestVersion, } from '../../../../../common/agent_explorer'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.stories.tsx index 2ccf0d64b41a1..91b24c8f9919f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.stories.tsx @@ -4,11 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { ApiKey } from '@kbn/security-plugin-types-common'; +import type { ApiKey } from '@kbn/security-plugin-types-common'; import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context'; import { AgentKeysTable } from './agent_keys_table'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx index ac013caaa5fba..491731905e27f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx @@ -7,8 +7,9 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { EuiInMemoryTable, EuiBasicTableColumn, EuiInMemoryTableProps } from '@elastic/eui'; -import { ApiKey } from '@kbn/security-plugin-types-common'; +import type { EuiBasicTableColumn, EuiInMemoryTableProps } from '@elastic/eui'; +import { EuiInMemoryTable } from '@elastic/eui'; +import type { ApiKey } from '@kbn/security-plugin-types-common'; import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; import { ConfirmDeleteModal } from './confirm_delete_modal'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx index da7f39d5ad7d7..c3c1c2e81888d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx @@ -8,7 +8,7 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; import { EuiConfirmModal } from '@elastic/eui'; -import { ApiKey } from '@kbn/security-plugin-types-common'; +import type { ApiKey } from '@kbn/security-plugin-types-common'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { callApmApi } from '../../../../services/rest/create_call_apm_api'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.stories.tsx index 47b4a519da6da..39469d5be2932 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.stories.tsx @@ -4,10 +4,11 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Meta, Story } from '@storybook/react'; -import React, { ComponentProps } from 'react'; +import type { Meta, Story } from '@storybook/react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { CreateAgentKeyFlyout } from './create_agent_key'; -import { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; +import type { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; type Args = ComponentProps; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx index 6abbf70c19950..20c2437b46788 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx @@ -28,7 +28,7 @@ import { } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { callApmApi } from '../../../../services/rest/create_call_apm_api'; -import { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; +import type { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; import { useCurrentUser } from '../../../../hooks/use_current_user'; import { PrivilegeType } from '../../../../../common/privilege_type'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/index.tsx index ef50b81d090b6..206a4ffb6bbf6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/index.tsx @@ -18,14 +18,14 @@ import { EuiLoadingSpinner, EuiToolTip, } from '@elastic/eui'; -import { ApiKey } from '@kbn/security-plugin-types-common'; +import type { ApiKey } from '@kbn/security-plugin-types-common'; import { useFetcher, FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { PermissionDenied } from './prompts/permission_denied'; import { ApiKeysNotEnabled } from './prompts/api_keys_not_enabled'; import { AgentKeysTable } from './agent_keys_table'; import { CreateAgentKeyFlyout } from './create_agent_key'; import { AgentKeyCallOut } from './create_agent_key/agent_key_callout'; -import { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; +import type { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; const INITIAL_DATA = { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.stories.tsx index eaf50108a7689..c4da68f592faf 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.stories.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Story } from '@storybook/react'; +import type { Story } from '@storybook/react'; import React from 'react'; import { ApiKeysNotEnabled } from './api_keys_not_enabled'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.stories.tsx index 5fcc6ded1991b..910234fce6999 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.stories.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Story } from '@storybook/react'; +import type { Story } from '@storybook/react'; import React from 'react'; import { PermissionDenied } from './permission_denied'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx index 3d272119f7071..097cf5970509c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx @@ -6,6 +6,7 @@ */ import React, { useState } from 'react'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiTitle, EuiText, @@ -13,14 +14,13 @@ import { EuiButton, EuiButtonEmpty, EuiComboBox, - EuiComboBoxOptionOption, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiEmptyPrompt, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ML_ERRORS } from '../../../../../common/anomaly_detection'; import { useFetcher, FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts index f104a91a3d723..cd97c42ec8d6d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { NotificationsStart } from '@kbn/core/public'; +import type { NotificationsStart } from '@kbn/core/public'; import { callApmApi } from '../../../../services/rest/create_call_apm_api'; const errorToastTitle = i18n.translate('xpack.apm.anomalyDetection.createJobs.failed.title', { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx index abaeb8c6c039e..f4b1627c88c5f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx @@ -13,7 +13,7 @@ import { JobsList } from './jobs_list'; import { AddEnvironments } from './add_environments'; import { LicensePrompt } from '../../../shared/license_prompt'; import { useLicenseContext } from '../../../../context/license/use_license_context'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useAnomalyDetectionJobsContext } from '../../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context'; export type AnomalyDetectionApiResponse = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx index 399964c98cb96..44024865da17f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx @@ -30,9 +30,10 @@ import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { MLExplorerLink } from '../../../shared/links/machine_learning_links/mlexplorer_link'; import { MLManageJobsLink } from '../../../shared/links/machine_learning_links/mlmanage_jobs_link'; import { LoadingStatePrompt } from '../../../shared/loading_state_prompt'; -import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; +import type { ITableColumn } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; import { MLCallout, shouldDisplayMlCallout } from '../../../shared/ml_callout'; -import { AnomalyDetectionApiResponse } from '.'; +import type { AnomalyDetectionApiResponse } from '.'; import { JobsListStatus } from './jobs_list_status'; type Jobs = AnomalyDetectionApiResponse['jobs']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx index 1e6a5d2266d22..f2a469e05448a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/apm_indices/index.tsx @@ -25,9 +25,10 @@ import React, { useEffect, useState } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useFetcher } from '../../../../hooks/use_fetcher'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; import { clearCache } from '../../../../services/rest/call_api'; -import { APIReturnType, callApmApi } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; const APM_INDEX_LABELS = [ { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx index abfb3c8a4e3a0..a4214b6bb4595 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx @@ -6,7 +6,8 @@ */ import { fireEvent, render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { act } from 'react-dom/test-utils'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx index 564381f78a4a3..cdd05bc988bc9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx @@ -7,7 +7,7 @@ import { EuiButtonEmpty, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { NotificationsStart } from '@kbn/core/public'; +import type { NotificationsStart } from '@kbn/core/public'; import React, { useState } from 'react'; import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx index 33361e5ebc23e..c4894b8576783 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx @@ -17,7 +17,7 @@ import { import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React from 'react'; -import { Filter, FilterKey } from '../../../../../../common/custom_link/custom_link_types'; +import type { Filter, FilterKey } from '../../../../../../common/custom_link/custom_link_types'; import { DEFAULT_OPTION, FILTER_SELECT_OPTIONS, getSelectOptions } from './helper'; import { SuggestionsSelect } from '../../../../shared/suggestions_select'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts index cdf1eaca311ec..a4594d5ba6bd9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts @@ -6,8 +6,8 @@ */ import { getSelectOptions, replaceTemplateVariables } from './helper'; -import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; -import { Filter } from '../../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; +import type { Filter } from '../../../../../../common/custom_link/custom_link_types'; describe('Custom link helper', () => { describe('getSelectOptions', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts index d47adac0ecd73..6f6f9da90924a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts @@ -9,8 +9,8 @@ import { i18n } from '@kbn/i18n'; import Mustache from 'mustache'; import { isEmpty, get } from 'lodash'; import { FILTER_OPTIONS } from '../../../../../../common/custom_link/custom_link_filter_options'; -import { Filter, FilterKey } from '../../../../../../common/custom_link/custom_link_types'; -import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; +import type { Filter, FilterKey } from '../../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; import { getEncodedCustomLinkUrl } from '../../../../../../common/custom_link'; interface FilterSelectOption { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx index 62dd53a69e872..7f4e3cd8f91ce 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx @@ -15,7 +15,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; -import { Filter } from '../../../../../../common/custom_link/custom_link_types'; +import type { Filter } from '../../../../../../common/custom_link/custom_link_types'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; import { FiltersSection } from './filters_section'; import { FlyoutFooter } from './flyout_footer'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx index dc4cd50c4bfc2..a24123e95d3ed 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import React, { ComponentProps } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { ComponentProps } from 'react'; +import React from 'react'; +import type { CoreStart } from '@kbn/core/public'; import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api'; import { LinkPreview } from './link_preview'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx index ef1001f670a90..076dcde93eca0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx @@ -19,8 +19,8 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { debounce } from 'lodash'; -import { Filter } from '../../../../../../common/custom_link/custom_link_types'; -import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; +import type { Filter } from '../../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; import { replaceTemplateVariables, convertFiltersToQuery } from './helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx index f46035ddf8a8b..c75da7c4f571b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx @@ -8,7 +8,7 @@ import { EuiFieldText, EuiFormRow, EuiSpacer, EuiText, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { CustomLink } from '../../../../../../common/custom_link/custom_link_types'; +import type { CustomLink } from '../../../../../../common/custom_link/custom_link_types'; import { Documentation } from './documentation'; interface InputField { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts index a65be84768f82..f314ac0544178 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts @@ -6,8 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { NotificationsStart } from '@kbn/core/public'; -import { Filter, CustomLink } from '../../../../../../common/custom_link/custom_link_types'; +import type { NotificationsStart } from '@kbn/core/public'; +import type { Filter, CustomLink } from '../../../../../../common/custom_link/custom_link_types'; import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; export async function saveCustomLink({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx index 24dd62efa5a95..17e88e19f101d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx @@ -16,10 +16,11 @@ import { import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React, { useState } from 'react'; -import { CustomLink } from '../../../../../common/custom_link/custom_link_types'; +import type { CustomLink } from '../../../../../common/custom_link/custom_link_types'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { LoadingStatePrompt } from '../../../shared/loading_state_prompt'; -import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; +import type { ITableColumn } from '../../../shared/managed_table'; +import { ManagedTable } from '../../../shared/managed_table'; import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.test.tsx index b513809ebc44e..c78cce66bf560 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.test.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import { fireEvent, render, RenderResult } from '@testing-library/react'; +import type { RenderResult } from '@testing-library/react'; +import { fireEvent, render } from '@testing-library/react'; import React from 'react'; import { act } from 'react-dom/test-utils'; import { getCallApmApiSpy } from '../../../../services/rest/call_apm_api_spy'; import { CustomLinkOverview } from '.'; import { License } from '@kbn/licensing-plugin/common/license'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.tsx index 59d40ebf67752..80c81663c53b0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/custom_link/index.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React, { useEffect, useState } from 'react'; import { INVALID_LICENSE } from '../../../../../common/custom_link'; -import { CustomLink } from '../../../../../common/custom_link/custom_link_types'; +import type { CustomLink } from '../../../../../common/custom_link/custom_link_types'; import { useLicenseContext } from '../../../../context/license/use_license_context'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { LicensePrompt } from '../../../shared/license_prompt'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.stories.tsx index f26795ce3ac20..89b9c4d1dc312 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.stories.tsx @@ -6,7 +6,8 @@ */ import type { Story } from '@storybook/react'; -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; import { ConfirmSwitchModal } from './confirm_switch_modal'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/index.tsx index dc9e77d0b68a3..88d2eadf5cebc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/index.tsx @@ -7,13 +7,14 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { NotificationsStart } from '@kbn/core/public'; +import type { NotificationsStart } from '@kbn/core/public'; import moment from 'moment'; import { useLocalStorage } from '../../../../hooks/use_local_storage'; import { SchemaOverview } from './schema_overview'; import { ConfirmSwitchModal } from './confirm_switch_modal'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { callApmApi, APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; type FleetMigrationCheckResponse = APIReturnType<'GET /internal/apm/fleet/migration_check'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema.stories.tsx index b005851258051..7e03448513bcd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema.stories.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import type { Meta, Story } from '@storybook/react'; -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import { Schema } from '.'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; interface Args { hasCloudAgentPolicy: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema_overview.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema_overview.tsx index 70fb4ea818385..95df03c8f0d8d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema_overview.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/settings/schema/schema_overview.tsx @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import semverLt from 'semver/functions/lt'; -import { PackagePolicy } from '@kbn/fleet-plugin/common/types'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common/types'; import rocketLaunchGraphic from './blog_rocket_720x420.png'; import { MigrationInProgressPanel } from './migration_in_progress_panel'; import { UpgradeAvailableCard } from './migrated/upgrade_available_card'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/get_storage_explorer_links.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/get_storage_explorer_links.ts index a85dfb3b1f8d2..f4e47b9650eea 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/get_storage_explorer_links.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/get_storage_explorer_links.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart } from '@kbn/core-lifecycle-browser'; +import type { CoreStart } from '@kbn/core-lifecycle-browser'; export function getIndexManagementHref(core: CoreStart, dataStream?: string) { const indexManagementPath = '/data/index_management/data_streams'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index.tsx index 5dc5d811a3b17..195c916e0e381 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import React, { useState, ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React, { useState } from 'react'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiInMemoryTable, - EuiBasicTableColumn, EuiButtonIcon, EuiScreenReaderOnly, RIGHT_ALIGNMENT, @@ -26,7 +27,7 @@ import { apmServiceInventoryOptimizedSorting } from '@kbn/observability-plugin/c import moment from 'moment'; import { isEmpty } from 'lodash'; import { downloadJson } from '../../../../utils/download_json'; -import { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; import { EnvironmentBadge } from '../../../shared/environment_badge'; import { asPercent, asTransactionRate } from '../../../../../common/utils/formatters'; import { ServiceLink } from '../../../shared/links/apm/service_link'; @@ -42,7 +43,7 @@ import { useProgressiveFetcher } from '../../../../hooks/use_progressive_fetcher import { useTimeRange } from '../../../../hooks/use_time_range'; import { SizeLabel } from './size_label'; import { joinByKey } from '../../../../../common/utils/join_by_key'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; interface StorageExplorerItem { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index_stats_per_service.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index_stats_per_service.tsx index 49e894ea7da28..c250b443b133f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index_stats_per_service.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/index_stats_per_service.tsx @@ -6,16 +6,10 @@ */ import React from 'react'; -import { - EuiInMemoryTable, - EuiBasicTableColumn, - EuiPanel, - EuiTitle, - EuiSpacer, - EuiLink, -} from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiInMemoryTable, EuiPanel, EuiTitle, EuiSpacer, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n'; import { asDynamicBytes, asInteger } from '../../../../../common/utils/formatters'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/storage_details_per_service.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/storage_details_per_service.tsx index 43ea19407108d..9eb20894e70a0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/storage_details_per_service.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/services_table/storage_details_per_service.tsx @@ -18,12 +18,13 @@ import { EuiSpacer, } from '@elastic/eui'; import { useChartThemes } from '@kbn/observability-shared-plugin/public'; -import { Chart, Partition, Settings, Datum, PartitionLayout } from '@elastic/charts'; +import type { Datum } from '@elastic/charts'; +import { Chart, Partition, Settings, PartitionLayout } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import { css } from '@emotion/react'; import { useEuiTheme } from '@elastic/eui'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { IndexLifecyclePhaseSelectOption } from '../../../../../common/storage_explorer_types'; +import type { IndexLifecyclePhaseSelectOption } from '../../../../../common/storage_explorer_types'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useTimeRange } from '../../../../hooks/use_time_range'; import { isPending } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/storage_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/storage_chart.tsx index dd8b1c20f0191..0531c176c2201 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/storage_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/storage_chart.tsx @@ -24,7 +24,7 @@ import { ChartContainer } from '../../shared/charts/chart_container'; import { getTimeZone } from '../../shared/charts/helper/timezone'; import { isTimeseriesEmpty } from '../../shared/charts/helper/helper'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { asDynamicBytes } from '../../../../common/utils/formatters'; export function StorageChart() { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/summary_stats.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/summary_stats.tsx index 30053480eb4e6..496c2acd814fc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/summary_stats.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/storage_explorer/summary_stats.tsx @@ -29,7 +29,7 @@ import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_ import { asTransactionRate } from '../../../../common/utils/formatters'; import { getIndexManagementHref } from './get_storage_explorer_links'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; interface Props { data?: APIReturnType<'GET /internal/apm/storage_explorer_summary_stats'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/top_traces_overview/trace_list.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/top_traces_overview/trace_list.tsx index 74461fcb7920f..a1883c14b87dd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/top_traces_overview/trace_list.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/top_traces_overview/trace_list.tsx @@ -7,20 +7,22 @@ import { EuiIcon, EuiToolTip, RIGHT_ALIGNMENT, useEuiFontSize } from '@elastic/eui'; import { usePerformanceContext } from '@kbn/ebt-tools'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { i18n } from '@kbn/i18n'; import React, { useEffect, useMemo } from 'react'; import styled from '@emotion/styled'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; import { asMillisecondDuration, asTransactionRate } from '../../../../common/utils/formatters'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { FetcherResult, FETCH_STATUS } from '../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { FetcherResult } from '../../../hooks/use_fetcher'; +import { FETCH_STATUS } from '../../../hooks/use_fetcher'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { truncate } from '../../../utils/style'; import { EmptyMessage } from '../../shared/empty_message'; import { ImpactBar } from '../../shared/impact_bar'; import { TransactionDetailLink } from '../../shared/links/apm/transaction_detail_link'; -import { ITableColumn, ManagedTable } from '../../shared/managed_table'; +import type { ITableColumn } from '../../shared/managed_table'; +import { ManagedTable } from '../../shared/managed_table'; import { ServiceLink } from '../../shared/links/apm/service_link'; import { TruncateWithTooltip } from '../../shared/truncate_with_tooltip'; import { NOT_AVAILABLE_LABEL } from '../../../../common/i18n'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/index.tsx index a02c9cd693121..86e18290e53f7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/index.tsx @@ -8,13 +8,14 @@ import { EuiFlexGroup, EuiFlexItem, EuiTab, EuiTabs } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useEffect, useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; -import { TraceSearchQuery, TraceSearchType } from '../../../../common/trace_explorer'; +import type { TraceSearchQuery } from '../../../../common/trace_explorer'; +import { TraceSearchType } from '../../../../common/trace_explorer'; import { useApmParams } from '../../../hooks/use_apm_params'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { useApmRoutePath } from '../../../hooks/use_apm_route_path'; import { useTimeRange } from '../../../hooks/use_time_range'; import { TraceExplorerSamplesFetcherContextProvider } from '../../../hooks/use_trace_explorer_samples'; -import { APIClientRequestParamsOf } from '../../../services/rest/create_call_apm_api'; +import type { APIClientRequestParamsOf } from '../../../services/rest/create_call_apm_api'; import { ApmDatePicker } from '../../shared/date_picker/apm_date_picker'; import { push } from '../../shared/links/url_helpers'; import { TechnicalPreviewBadge } from '../../shared/technical_preview_badge'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_explorer_waterfall.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_explorer_waterfall.tsx index 1bda6985e534e..e4a9f56de053f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_explorer_waterfall.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_explorer_waterfall.tsx @@ -14,7 +14,7 @@ import { ResettingHeightRetainer } from '../../shared/height_retainer/resetting_ import { push, replace } from '../../shared/links/url_helpers'; import { useWaterfallFetcher } from '../transaction_details/use_waterfall_fetcher'; import { WaterfallWithSummary } from '../transaction_details/waterfall_with_summary'; -import { TransactionTab } from '../transaction_details/waterfall_with_summary/transaction_tabs'; +import type { TransactionTab } from '../transaction_details/waterfall_with_summary/transaction_tabs'; export function TraceExplorerWaterfall() { const history = useHistory(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_search_box/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_search_box/index.tsx index 411c124e9fb13..3618a26d04e08 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_search_box/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_explorer/trace_search_box/index.tsx @@ -5,9 +5,11 @@ * 2.0. */ import React from 'react'; -import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiSelect, EuiSelectOption } from '@elastic/eui'; +import type { EuiSelectOption } from '@elastic/eui'; +import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiSelect } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { TraceSearchQuery, TraceSearchType } from '../../../../../common/trace_explorer'; +import type { TraceSearchQuery } from '../../../../../common/trace_explorer'; +import { TraceSearchType } from '../../../../../common/trace_explorer'; import { useAdHocApmDataView } from '../../../../hooks/use_adhoc_apm_data_view'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/index.tsx index b1d1b0f8d745b..205e13da9add3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/index.tsx @@ -16,7 +16,7 @@ import { getRedirectToTransactionDetailPageUrl } from './get_redirect_to_transac import { getRedirectToTracePageUrl } from './get_redirect_to_trace_page_url'; import { useApmParams } from '../../../hooks/use_apm_params'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { ApmPluginStartDeps } from '../../../plugin'; +import type { ApmPluginStartDeps } from '../../../plugin'; const CentralizedContainer = styled.div` height: 100%; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/trace_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/trace_link.test.tsx index 06f7101520bab..cd8033a800a9c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/trace_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/trace_link/trace_link.test.tsx @@ -7,10 +7,11 @@ import { render, waitFor } from '@testing-library/react'; import { shallow } from 'enzyme'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { TraceLink } from '.'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/aggregated_critical_path_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/aggregated_critical_path_tab.tsx index f7aa1a0b849a9..915f8eaf38610 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/aggregated_critical_path_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/aggregated_critical_path_tab.tsx @@ -12,7 +12,7 @@ import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useTimeRange } from '../../../hooks/use_time_range'; import { CriticalPathFlamegraph } from '../../shared/critical_path_flamegraph'; import { TechnicalPreviewBadge } from '../../shared/technical_preview_badge'; -import { TabContentProps } from './transaction_details_tabs'; +import type { TabContentProps } from './transaction_details_tabs'; function TransactionDetailAggregatedCriticalPath({ traceSamplesFetchResult }: TabContentProps) { const { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx index 4750f36d0b86b..993da38d9457a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx @@ -8,14 +8,15 @@ import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; import { render, screen, waitFor } from '@testing-library/react'; import { createMemoryHistory } from 'history'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { merge } from 'lodash'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MockUrlParamsContextProvider } from '../../../../context/url_params_context/mock_url_params_context_provider'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.tsx index f7a976b3cc82d..59257c337b530 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/distribution/index.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { XYBrushEvent } from '@elastic/charts'; +import type { XYBrushEvent } from '@elastic/charts'; import { EuiSpacer } from '@elastic/eui'; import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; @@ -22,9 +22,9 @@ import { useTimeRange } from '../../../../hooks/use_time_range'; import { DurationDistributionChartWithScrubber } from '../../../shared/charts/duration_distribution_chart_with_scrubber'; import { ResettingHeightRetainer } from '../../../shared/height_retainer/resetting_height_container'; import { fromQuery, push, toQuery } from '../../../shared/links/url_helpers'; -import { TransactionTab } from '../waterfall_with_summary/transaction_tabs'; +import type { TransactionTab } from '../waterfall_with_summary/transaction_tabs'; import { useTransactionDistributionChartData } from './use_transaction_distribution_chart_data'; -import { TraceSamplesFetchResult } from '../../../../hooks/use_transaction_trace_samples_fetcher'; +import type { TraceSamplesFetchResult } from '../../../../hooks/use_transaction_trace_samples_fetcher'; interface TransactionDistributionProps { onChartSelection: (event: XYBrushEvent) => void; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx index 59c3a5300fd1d..eee825b01a3cd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx @@ -18,7 +18,7 @@ import { useLicenseContext } from '../../../context/license/use_license_context' import { LicensePrompt } from '../../shared/license_prompt'; import { FailedTransactionsCorrelations } from '../correlations/failed_transactions_correlations'; -import { TabContentProps } from './transaction_details_tabs'; +import type { TabContentProps } from './transaction_details_tabs'; function FailedTransactionsCorrelationsTab({ onFilter }: TabContentProps) { const license = useLicenseContext(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx index f382a5d191720..fecab2c322fac 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx @@ -18,7 +18,7 @@ import { useLicenseContext } from '../../../context/license/use_license_context' import { LicensePrompt } from '../../shared/license_prompt'; import { LatencyCorrelations } from '../correlations/latency_correlations'; -import { TabContentProps } from './transaction_details_tabs'; +import type { TabContentProps } from './transaction_details_tabs'; function LatencyCorrelationsTab({ onFilter }: TabContentProps) { const license = useLicenseContext(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/profiling_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/profiling_tab.tsx index 36a3b724376ce..f883421a3629e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/profiling_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/profiling_tab.tsx @@ -4,13 +4,13 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { EuiTabbedContentProps } from '@elastic/eui'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiSpacer, EuiTabbedContent, - EuiTabbedContentProps, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo } from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/top_errors/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/top_errors/index.tsx index 51106dd2eb8a4..7f6d167151a2d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/top_errors/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/top_errors/index.tsx @@ -11,7 +11,7 @@ import React from 'react'; import { v4 as uuidv4 } from 'uuid'; import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getColumns } from '../../../shared/errors_table/get_columns'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { useTimeRange } from '../../../../hooks/use_time_range'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx index 79919c5cdd332..fc1618591a143 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { TransactionDistribution } from './distribution'; -import { TabContentProps } from './transaction_details_tabs'; +import type { TabContentProps } from './transaction_details_tabs'; function TraceSamplesTab({ selectSampleFromChartSelection, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx index 478c6b5d7e91c..5e394643fe157 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx @@ -7,7 +7,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; -import { XYBrushEvent } from '@elastic/charts'; +import type { XYBrushEvent } from '@elastic/charts'; import { EuiPanel, EuiSpacer, EuiTab, EuiTabs } from '@elastic/eui'; import { omit } from 'lodash'; import { useHistory } from 'react-router-dom'; @@ -17,10 +17,8 @@ import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useCriticalPathFeatureEnabledSetting } from '../../../hooks/use_critical_path_feature_enabled_setting'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useSampleChartSelection } from '../../../hooks/use_sample_chart_selection'; -import { - TraceSamplesFetchResult, - useTransactionTraceSamplesFetcher, -} from '../../../hooks/use_transaction_trace_samples_fetcher'; +import type { TraceSamplesFetchResult } from '../../../hooks/use_transaction_trace_samples_fetcher'; +import { useTransactionTraceSamplesFetcher } from '../../../hooks/use_transaction_trace_samples_fetcher'; import { fromQuery, toQuery } from '../../shared/links/url_helpers'; import { aggregatedCriticalPathTab } from './aggregated_critical_path_tab'; import { failedTransactionsCorrelationsTab } from './failed_transactions_correlations_tab'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts index 6e7ab2f4bddd3..29e9d222a81e7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts @@ -7,7 +7,7 @@ import { useMemo } from 'react'; import { useFetcher } from '../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { getWaterfall } from './waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; const INITIAL_DATA: APIReturnType<'GET /internal/apm/traces/{traceId}'> = { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx index 4c52c2df57432..0e064df12bd08 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx @@ -19,10 +19,11 @@ import React, { useEffect, useState } from 'react'; import { TransactionSummary } from '../../../shared/summary/transaction_summary'; import { TransactionActionMenu } from '../../../shared/transaction_action_menu/transaction_action_menu'; import { MaybeViewTraceLink } from './maybe_view_trace_link'; -import { TransactionTab, TransactionTabs } from './transaction_tabs'; -import { Environment } from '../../../../../common/environment_rt'; +import type { TransactionTab } from './transaction_tabs'; +import { TransactionTabs } from './transaction_tabs'; +import type { Environment } from '../../../../../common/environment_rt'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { WaterfallFetchResult } from '../use_waterfall_fetcher'; +import type { WaterfallFetchResult } from '../use_waterfall_fetcher'; interface Props { waterfallFetchResult: WaterfallFetchResult['waterfall']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/maybe_view_trace_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/maybe_view_trace_link.tsx index 0a0d69fa71169..a7257663dd413 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/maybe_view_trace_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/maybe_view_trace_link.tsx @@ -9,10 +9,10 @@ import { EuiButton, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { getNextEnvironmentUrlParam } from '../../../../../common/environment_filter_values'; -import { Transaction as ITransaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction as ITransaction } from '../../../../../typings/es_schemas/ui/transaction'; import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link'; -import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; -import { Environment } from '../../../../../common/environment_rt'; +import type { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; +import type { Environment } from '../../../../../common/environment_rt'; import { useAnyOfApmParams } from '../../../../hooks/use_apm_params'; import { LatencyAggregationType } from '../../../../../common/latency_aggregation_types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx index ead237d3d374d..97f21eee2d433 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx @@ -9,10 +9,10 @@ import { EuiSpacer, EuiTab, EuiTabs, EuiSkeletonText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { LogStream } from '@kbn/logs-shared-plugin/public'; import React, { useMemo } from 'react'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { TransactionMetadata } from '../../../shared/metadata_table/transaction_metadata'; import { WaterfallContainer } from './waterfall_container'; -import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; +import type { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; export enum TransactionTab { timeline = 'timeline', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.test.ts index 2c2b04b62e0be..2288e360b8c38 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; import { getAgentMarks } from './get_agent_marks'; describe('getAgentMarks', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.ts index 72e6f1681db45..e37067feb5f5d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks.ts @@ -6,8 +6,8 @@ */ import { sortBy } from 'lodash'; -import { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; -import { Mark } from '.'; +import type { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; +import type { Mark } from '.'; // Extends Mark without adding new properties to it. export interface AgentMark extends Mark { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.test.ts index 5331ae1ae3d36..bba168674770d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IWaterfallError } from '../waterfall/waterfall_helpers/waterfall_helpers'; +import type { IWaterfallError } from '../waterfall/waterfall_helpers/waterfall_helpers'; import { getErrorMarks } from './get_error_marks'; describe('getErrorMarks', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.ts index 2e932c6e27632..d22223cece390 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks.ts @@ -6,9 +6,9 @@ */ import { isEmpty } from 'lodash'; -import { IWaterfallError } from '../waterfall/waterfall_helpers/waterfall_helpers'; -import { Mark } from '.'; -import { WaterfallError } from '../../../../../../../common/waterfall/typings'; +import type { IWaterfallError } from '../waterfall/waterfall_helpers/waterfall_helpers'; +import type { Mark } from '.'; +import type { WaterfallError } from '../../../../../../../common/waterfall/typings'; export interface ErrorMark extends Mark { type: 'errorMark'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/accordion_waterfall.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/accordion_waterfall.tsx index 41d11ba74e2e1..48f108e950bdd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/accordion_waterfall.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/accordion_waterfall.tsx @@ -17,11 +17,12 @@ import { import { transparentize } from 'polished'; import React, { useEffect, useRef } from 'react'; import { WindowScroller, AutoSizer } from 'react-virtualized'; -import { areEqual, ListChildComponentProps, VariableSizeList as List } from 'react-window'; +import type { ListChildComponentProps } from 'react-window'; +import { areEqual, VariableSizeList as List } from 'react-window'; import { css } from '@emotion/react'; import { asBigNumber } from '../../../../../../../common/utils/formatters'; -import { Margins } from '../../../../../shared/charts/timeline'; -import { +import type { Margins } from '../../../../../shared/charts/timeline'; +import type { IWaterfallNodeFlatten, IWaterfall, IWaterfallSpanOrTransaction, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx index 5a873501b959b..37daa2bc97fa0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx @@ -7,7 +7,7 @@ import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; +import type { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; type Props = SpanLinksCount & { id: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.stories.tsx index 7209203b54cc0..600e99d61ace5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.stories.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { SyncBadge, SyncBadgeProps } from './sync_badge'; +import type { SyncBadgeProps } from './sync_badge'; +import { SyncBadge } from './sync_badge'; export default { title: 'app/TransactionDetails/Waterfall/Badge/SyncBadge', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.tsx index 3146bd3c2e657..4989012b651d1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.tsx @@ -8,7 +8,7 @@ import { EuiBadge } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { AgentName } from '../../../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../../../typings/es_schemas/ui/fields/agent'; export interface SyncBadgeProps { /** diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/context/waterfall_context.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/context/waterfall_context.tsx index 1a19bff884e4f..12a524979cd43 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/context/waterfall_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/context/waterfall_context.tsx @@ -5,16 +5,20 @@ * 2.0. */ -import { Dictionary, groupBy } from 'lodash'; -import React, { PropsWithChildren, useCallback, useEffect, useMemo, useState } from 'react'; -import { CriticalPathSegment } from '../../../../../../../../common/critical_path/types'; +import type { Dictionary } from 'lodash'; +import { groupBy } from 'lodash'; +import type { PropsWithChildren } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; +import type { CriticalPathSegment } from '../../../../../../../../common/critical_path/types'; import { getCriticalPath } from '../../../../../../../../common/critical_path/get_critical_path'; -import { - buildTraceTree, - convertTreeToList, +import type { IWaterfall, IWaterfallNode, IWaterfallNodeFlatten, +} from '../waterfall_helpers/waterfall_helpers'; +import { + buildTraceTree, + convertTreeToList, updateTraceTreeNode, } from '../waterfall_helpers/waterfall_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/failure_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/failure_badge.tsx index 91f60fd9df842..5749f1aacc989 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/failure_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/failure_badge.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiBadge, EuiToolTip, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import styled from '@emotion/styled'; -import { EventOutcome } from '../../../../../../../typings/es_schemas/raw/fields/event_outcome'; +import type { EventOutcome } from '../../../../../../../typings/es_schemas/raw/fields/event_outcome'; const ResetLineHeight = styled.span` line-height: initial; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/flyout_top_level_properties.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/flyout_top_level_properties.tsx index 12b5250df5ff8..2c76d5dc73664 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/flyout_top_level_properties.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/flyout_top_level_properties.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { SERVICE_NAME, TRANSACTION_NAME } from '../../../../../../../common/es_fields/apm'; import { getNextEnvironmentUrlParam } from '../../../../../../../common/environment_filter_values'; import { LatencyAggregationType } from '../../../../../../../common/latency_aggregation_types'; -import { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction'; import { useAnyOfApmParams } from '../../../../../../hooks/use_apm_params'; import { TransactionDetailLink } from '../../../../../shared/links/apm/transaction_detail_link'; import { ServiceLink } from '../../../../../shared/links/apm/service_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/index.tsx index 56a5367a4cfa6..ef739b7bed0e8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/index.tsx @@ -7,7 +7,7 @@ import { EuiButtonEmpty, EuiCallOut, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { History } from 'history'; +import type { History } from 'history'; import React, { useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import styled from '@emotion/styled'; @@ -21,7 +21,7 @@ import { getAgentMarks } from '../marks/get_agent_marks'; import { getErrorMarks } from '../marks/get_error_marks'; import { AccordionWaterfall } from './accordion_waterfall'; import { WaterfallFlyout } from './waterfall_flyout'; -import { IWaterfall, IWaterfallItem } from './waterfall_helpers/waterfall_helpers'; +import type { IWaterfall, IWaterfallItem } from './waterfall_helpers/waterfall_helpers'; const Container = styled.div` transition: 0.1s padding ease; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/responsive_flyout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/responsive_flyout.tsx index 3c3440b7833cf..474cd5a4f3d0f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/responsive_flyout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/responsive_flyout.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { EuiFlyout, EuiFlyoutProps } from '@elastic/eui'; +import type { EuiFlyoutProps } from '@elastic/eui'; +import { EuiFlyout } from '@elastic/eui'; import styled, { type StyledComponent } from '@emotion/styled'; // The return type of this component needs to be specified because the inferred diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/index.tsx index f412df0b099bb..4dbb60e13594a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/index.tsx @@ -26,8 +26,8 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { isEmpty } from 'lodash'; import React, { Fragment } from 'react'; import { PlaintextStacktrace } from '../../../../../error_group_details/error_sampler/plaintext_stacktrace'; -import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { Span } from '../../../../../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; import { useFetcher, isPending } from '../../../../../../../hooks/use_fetcher'; import { DiscoverSpanLink } from '../../../../../../shared/links/discover_links/discover_span_link'; import { SpanMetadata } from '../../../../../../shared/metadata_table/span_metadata'; @@ -41,7 +41,7 @@ import { TimestampTooltip } from '../../../../../../shared/timestamp_tooltip'; import { SyncBadge } from '../badge/sync_badge'; import { FailureBadge } from '../failure_badge'; import { ResponsiveFlyout } from '../responsive_flyout'; -import { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; +import type { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; import { SpanDatabase } from './span_db'; import { StickySpanProperties } from './sticky_span_properties'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_db.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_db.tsx index ab24c43d5ffab..d52282cb21a6d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_db.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_db.tsx @@ -8,7 +8,7 @@ import { EuiSpacer, EuiTitle, EuiCodeBlock } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { Fragment } from 'react'; -import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; +import type { Span } from '../../../../../../../../typings/es_schemas/ui/span'; interface Props { spanDb?: NonNullable['db']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_flyout.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_flyout.stories.tsx index da1b6ec421900..a14b3c91301b5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_flyout.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/span_flyout.stories.tsx @@ -6,14 +6,15 @@ */ import { apm, dedot } from '@kbn/apm-synthtrace-client'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Story } from '@storybook/react'; -import React, { ComponentProps, ComponentType } from 'react'; +import type { Story } from '@storybook/react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { SpanFlyout } from '.'; -import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; -import { ApmPluginContextValue } from '../../../../../../../context/apm_plugin/apm_plugin_context'; +import type { Span } from '../../../../../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { ApmPluginContextValue } from '../../../../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../../../../../context/apm_plugin/mock_apm_plugin_storybook'; -import { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; type Args = ComponentProps; type SpanDetailsApiReturnType = APIReturnType<'GET /internal/apm/traces/{traceId}/spans/{spanId}'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx index 87bbb189e7f03..441b0235914ae 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx @@ -16,8 +16,8 @@ import { } from '../../../../../../../../common/es_fields/apm'; import { getNextEnvironmentUrlParam } from '../../../../../../../../common/environment_filter_values'; import { NOT_AVAILABLE_LABEL } from '../../../../../../../../common/i18n'; -import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { Span } from '../../../../../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; import { useAnyOfApmParams } from '../../../../../../../hooks/use_apm_params'; import { DependencyLink } from '../../../../../../shared/links/dependency_link'; import { TransactionDetailLink } from '../../../../../../shared/links/apm/transaction_detail_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/truncate_height_section.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/truncate_height_section.tsx index 214cc8841b2c2..bd141c0229fd3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/truncate_height_section.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/truncate_height_section.tsx @@ -7,7 +7,8 @@ import { EuiIcon, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { Fragment, ReactNode, useEffect, useRef, useState } from 'react'; +import type { ReactNode } from 'react'; +import React, { Fragment, useEffect, useRef, useState } from 'react'; import styled from '@emotion/styled'; const ToggleButtonContainer = styled.div` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/dropped_spans_warning.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/dropped_spans_warning.tsx index a90ae0e675da0..a93a77f45cc7c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/dropped_spans_warning.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/dropped_spans_warning.tsx @@ -8,7 +8,7 @@ import { EuiCallOut, EuiHorizontalRule, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; import { useApmPluginContext } from '../../../../../../../context/apm_plugin/use_apm_plugin_context'; export function DroppedSpansWarning({ transactionDoc }: { transactionDoc: Transaction }) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/index.tsx index bdeecb07f0f12..7e0a94001b2b7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/index.tsx @@ -20,7 +20,7 @@ import { import { i18n } from '@kbn/i18n'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import React from 'react'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; import { useFetcher, isPending } from '../../../../../../../hooks/use_fetcher'; import { TransactionMetadata } from '../../../../../../shared/metadata_table/transaction_metadata'; import { getSpanLinksTabContent } from '../../../../../../shared/span_links/span_links_tab_content'; @@ -28,7 +28,7 @@ import { TransactionSummary } from '../../../../../../shared/summary/transaction import { TransactionActionMenu } from '../../../../../../shared/transaction_action_menu/transaction_action_menu'; import { FlyoutTopLevelProperties } from '../flyout_top_level_properties'; import { ResponsiveFlyout } from '../responsive_flyout'; -import { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; +import type { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers'; import { DroppedSpansWarning } from './dropped_spans_warning'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/transaction_flyout.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/transaction_flyout.stories.tsx index a8f4cb5f2423f..dad508d3afa78 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/transaction_flyout.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/transaction_flyout/transaction_flyout.stories.tsx @@ -5,13 +5,14 @@ * 2.0. */ import { apm, dedot } from '@kbn/apm-synthtrace-client'; -import { Story } from '@storybook/react'; -import React, { ComponentProps, ComponentType } from 'react'; +import type { Story } from '@storybook/react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { TransactionFlyout } from '.'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; -import { ApmPluginContextValue } from '../../../../../../../context/apm_plugin/apm_plugin_context'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { ApmPluginContextValue } from '../../../../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../../../../../context/apm_plugin/mock_apm_plugin_storybook'; -import { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; type Args = ComponentProps; type TransactionDetailsApiReturnType = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_flyout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_flyout.tsx index 3c45ba1587d93..340dce1008c30 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_flyout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_flyout.tsx @@ -5,14 +5,14 @@ * 2.0. */ -import { History } from 'history'; +import type { History } from 'history'; import React from 'react'; import { useHistory } from 'react-router-dom'; import { useAnyOfApmParams } from '../../../../../../hooks/use_apm_params'; import { useTimeRange } from '../../../../../../hooks/use_time_range'; import { SpanFlyout } from './span_flyout'; import { TransactionFlyout } from './transaction_flyout'; -import { IWaterfall } from './waterfall_helpers/waterfall_helpers'; +import type { IWaterfall } from './waterfall_helpers/waterfall_helpers'; interface Props { waterfallItemId?: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.test.ts index 9d7d60944acdd..76fe97489d91a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.test.ts @@ -6,25 +6,27 @@ */ import { groupBy } from 'lodash'; -import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; -import { - getClockSkew, - getOrderedWaterfallItems, - getWaterfall, +import type { Span } from '../../../../../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; +import type { IWaterfallItem, IWaterfallTransaction, IWaterfallError, IWaterfallSpanOrTransaction, + IWaterfallNode, + IWaterfallNodeFlatten, +} from './waterfall_helpers'; +import { + getClockSkew, + getOrderedWaterfallItems, + getWaterfall, getOrphanTraceItemsCount, buildTraceTree, convertTreeToList, updateTraceTreeNode, - IWaterfallNode, - IWaterfallNodeFlatten, } from './waterfall_helpers'; -import { APMError } from '../../../../../../../../typings/es_schemas/ui/apm_error'; -import { +import type { APMError } from '../../../../../../../../typings/es_schemas/ui/apm_error'; +import type { WaterfallSpan, WaterfallTransaction, } from '../../../../../../../../common/waterfall/typings'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts index b9a8f1d8cd15c..01aea35a73a55 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts @@ -6,12 +6,13 @@ */ import { euiPaletteColorBlind } from '@elastic/eui'; -import { Dictionary, first, flatten, groupBy, isEmpty, sortBy, uniq } from 'lodash'; +import type { Dictionary } from 'lodash'; +import { first, flatten, groupBy, isEmpty, sortBy, uniq } from 'lodash'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { CriticalPathSegment } from '../../../../../../../../common/critical_path/types'; +import type { CriticalPathSegment } from '../../../../../../../../common/critical_path/types'; import type { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; -import { +import type { WaterfallError, WaterfallSpan, WaterfallTransaction, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_item.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_item.tsx index 296c98705294c..ec9fd5653e211 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_item.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_item.tsx @@ -7,17 +7,18 @@ import { EuiBadge, EuiIcon, EuiText, EuiTitle, EuiToolTip, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { ReactNode, useRef, useEffect, useState } from 'react'; +import type { ReactNode } from 'react'; +import React, { useRef, useEffect, useState } from 'react'; import styled from '@emotion/styled'; import { isMobileAgentName, isRumAgentName } from '../../../../../../../common/agent_name'; import { TRACE_ID, TRANSACTION_ID } from '../../../../../../../common/es_fields/apm'; import { asDuration } from '../../../../../../../common/utils/formatters'; -import { Margins } from '../../../../../shared/charts/timeline'; +import type { Margins } from '../../../../../shared/charts/timeline'; import { TruncateWithTooltip } from '../../../../../shared/truncate_with_tooltip'; import { SyncBadge } from './badge/sync_badge'; import { SpanLinksBadge } from './badge/span_links_badge'; import { ColdStartBadge } from './badge/cold_start_badge'; -import { IWaterfallSpanOrTransaction } from './waterfall_helpers/waterfall_helpers'; +import type { IWaterfallSpanOrTransaction } from './waterfall_helpers/waterfall_helpers'; import { FailureBadge } from './failure_badge'; import { useApmRouter } from '../../../../../../hooks/use_apm_router'; import { useAnyOfApmParams } from '../../../../../../hooks/use_apm_params'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.tsx index bdc6382272dec..5cb44ea3eaf42 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.tsx @@ -7,18 +7,19 @@ import { EuiFilePicker, EuiForm } from '@elastic/eui'; import { apm, dedot } from '@kbn/apm-synthtrace-client'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import { noop } from 'lodash'; -import React, { ComponentProps, useState } from 'react'; +import type { ComponentProps } from 'react'; +import React, { useState } from 'react'; import { WaterfallContainer } from '.'; -import { +import type { WaterfallError, WaterfallSpan, WaterfallTransaction, } from '../../../../../../common/waterfall/typings'; -import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; import { MockApmPluginStorybook } from '../../../../../context/apm_plugin/mock_apm_plugin_storybook'; -import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { getWaterfall } from './waterfall/waterfall_helpers/waterfall_helpers'; type Args = ComponentProps; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_legends.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_legends.tsx index 5dee02e381f75..75c11dde0aa8b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_legends.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_legends.tsx @@ -11,10 +11,8 @@ import { EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { Legend } from '../../../../shared/charts/timeline/legend'; -import { - IWaterfallLegend, - WaterfallLegendType, -} from './waterfall/waterfall_helpers/waterfall_helpers'; +import type { IWaterfallLegend } from './waterfall/waterfall_helpers/waterfall_helpers'; +import { WaterfallLegendType } from './waterfall/waterfall_helpers/waterfall_helpers'; interface Props { legends: IWaterfallLegend[]; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx index 9fa0f5231bbf4..947dda02630a5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx @@ -6,8 +6,9 @@ */ import { queryByLabelText } from '@testing-library/react'; -import { createMemoryHistory, MemoryHistory } from 'history'; -import { CoreStart } from '@kbn/core/public'; +import type { MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; +import type { CoreStart } from '@kbn/core/public'; import React from 'react'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx index 4889f33b3f0db..87747878eae4a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx @@ -15,16 +15,17 @@ import { EuiTabbedContent, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { Markdown } from '@kbn/shared-ux-markdown'; import { AgentIcon } from '@kbn/custom-icons'; -import { +import type { AgentRuntimeAttachmentProps, CreateAgentInstructions, } from './agent_instructions_mappings'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import type { NewPackagePolicy, PackagePolicy, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_mappings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_mappings.ts index 689ab3a5df95c..dbafa6b8fb232 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_mappings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_mappings.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ComponentType } from 'react'; +import type { ComponentType } from 'react'; import { createDotNetAgentInstructions, createDjangoAgentInstructions, @@ -19,10 +19,10 @@ import { createRackAgentInstructions, createOpenTelemetryAgentInstructions, } from '../../../../common/tutorial/instructions/apm_agent_instructions'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; // TODO: Uncomment once https://github.com/elastic/beats/issues/29631 has been closed import { JavaRuntimeAttachment } from './runtime_attachment/supported_agents/java_runtime_attachment'; -import { +import type { NewPackagePolicy, PackagePolicy, PackagePolicyEditExtensionComponentProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/index.tsx index 89c1c068b75ec..8cfe7a0c7f8cd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/index.tsx @@ -9,7 +9,7 @@ import { EuiPanel, EuiSpacer } from '@elastic/eui'; import React, { Fragment } from 'react'; import { AgentInstructionsAccordion } from './agent_instructions_accordion'; import { ApmAgentInstructionsMappings } from './agent_instructions_mappings'; -import { +import type { NewPackagePolicy, PackagePolicy, PackagePolicyEditExtensionComponentProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/render_mustache.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/render_mustache.ts index dd3f63cb51361..6eb4f630c59f7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/render_mustache.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/render_mustache.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { DocLinksStart } from '@kbn/core/public'; +import type { DocLinksStart } from '@kbn/core/public'; import Mustache from 'mustache'; const TEMPLATE_TAGS = ['{', '}']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx index 948e0a5d68925..8eb868b83611b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx @@ -5,6 +5,7 @@ * 2.0. */ import { i18n } from '@kbn/i18n'; +import type { DraggableProvidedDragHandleProps } from '@elastic/eui'; import { EuiText, EuiFlexGroup, @@ -12,11 +13,10 @@ import { EuiIcon, EuiBadge, EuiPanel, - DraggableProvidedDragHandleProps, EuiButtonIcon, } from '@elastic/eui'; import React, { useMemo } from 'react'; -import { Operation } from '.'; +import type { Operation } from '.'; interface Props { id: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/edit_discovery_rule.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/edit_discovery_rule.tsx index e8e3e452418b7..d2e968fbd897f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/edit_discovery_rule.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/edit_discovery_rule.tsx @@ -20,7 +20,8 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { Operation, DISCOVERY_RULE_TYPE_ALL, STAGED_DISCOVERY_RULE_ID } from '.'; +import type { Operation } from '.'; +import { DISCOVERY_RULE_TYPE_ALL, STAGED_DISCOVERY_RULE_ID } from '.'; interface Props { id: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/index.tsx index f46bb6808438d..8aa23a48c3905 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/index.tsx @@ -5,8 +5,10 @@ * 2.0. */ -import { htmlIdGenerator, euiDragDropReorder, DropResult } from '@elastic/eui'; -import React, { useState, useCallback, ReactNode, useEffect } from 'react'; +import type { DropResult } from '@elastic/eui'; +import { htmlIdGenerator, euiDragDropReorder } from '@elastic/eui'; +import type { ReactNode } from 'react'; +import React, { useState, useCallback, useEffect } from 'react'; import { RuntimeAttachment as RuntimeAttachmentStateless } from './runtime_attachment'; export const STAGED_DISCOVERY_RULE_ID = 'STAGED_DISCOVERY_RULE_ID'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/java_agent_version_input.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/java_agent_version_input.tsx index f8c013bae837d..020ff53a1c4a8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/java_agent_version_input.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/java_agent_version_input.tsx @@ -9,10 +9,10 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiFlexItem, EuiFormRow, EuiLink, EuiComboBox } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { RuntimeAttachmentSettings } from '.'; +import type { RuntimeAttachmentSettings } from '.'; interface Props { isValid: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.stories.tsx index ced8af22b25fa..6c3a8663af3f4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.stories.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React, { useState } from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { RuntimeAttachment } from '.'; import { JavaRuntimeAttachment } from './supported_agents/java_runtime_attachment'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx index a1cb50cc60842..c468b8539f523 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { DropResult } from '@elastic/eui'; import { EuiCallOut, EuiSpacer, @@ -17,14 +18,14 @@ import { EuiDroppable, EuiDraggable, EuiIcon, - DropResult, } from '@elastic/eui'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { i18n } from '@kbn/i18n'; import { DiscoveryRule } from './discovery_rule'; import { DefaultDiscoveryRule } from './default_discovery_rule'; import { EditDiscoveryRule } from './edit_discovery_rule'; -import { IDiscoveryRuleList, Operation, RuntimeAttachmentSettings } from '.'; +import type { IDiscoveryRuleList, Operation, RuntimeAttachmentSettings } from '.'; import { JavaAgentVersionInput } from './java_agent_version_input'; const DEFAULT_AGENT_VERSION = 'latest'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/supported_agents/java_runtime_attachment.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/supported_agents/java_runtime_attachment.tsx index 204e9266c6bfe..f471b5a353733 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/supported_agents/java_runtime_attachment.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/supported_agents/java_runtime_attachment.tsx @@ -9,7 +9,8 @@ import yaml from 'js-yaml'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useState, useMemo } from 'react'; -import { RuntimeAttachment, RuntimeAttachmentSettings, IDiscoveryRule, validateVersion } from '..'; +import type { RuntimeAttachmentSettings, IDiscoveryRule } from '..'; +import { RuntimeAttachment, validateVersion } from '..'; import type { NewPackagePolicy, PackagePolicy, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_custom_assets_extension.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_custom_assets_extension.tsx index 7c21c15f7ee12..adb697d987a20 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_custom_assets_extension.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_custom_assets_extension.tsx @@ -8,9 +8,10 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { CustomAssetsAccordionProps, CustomAssetsAccordion } from '@kbn/fleet-plugin/public'; +import type { CustomAssetsAccordionProps } from '@kbn/fleet-plugin/public'; +import { CustomAssetsAccordion } from '@kbn/fleet-plugin/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ApmPluginStartDeps } from '../../plugin'; +import type { ApmPluginStartDeps } from '../../plugin'; export function ApmCustomAssetsExtension() { const { http } = useKibana().services; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_enrollment_flyout_extension.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_enrollment_flyout_extension.tsx index 0bc8720c98c3c..206aae9fa3ea8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_enrollment_flyout_extension.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_enrollment_flyout_extension.tsx @@ -9,9 +9,9 @@ import React from 'react'; import { EuiButton, EuiText, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { AgentEnrollmentFlyoutFinalStepExtension } from '@kbn/fleet-plugin/public'; +import type { AgentEnrollmentFlyoutFinalStepExtension } from '@kbn/fleet-plugin/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ApmPluginStartDeps } from '../../plugin'; +import type { ApmPluginStartDeps } from '../../plugin'; function StepComponent() { const { http } = useKibana().services; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx index 5757fdabd5d54..035132ce23c3d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/create_apm_policy_form.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; import { APMPolicyForm } from '.'; -import { +import type { PackagePolicyVars, NewPackagePolicy, PackagePolicyCreateExtensionComponentProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.stories.tsx index 86cafe85cebdb..31f2552328a03 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.stories.tsx @@ -5,11 +5,11 @@ * 2.0. */ import React, { useState } from 'react'; -import { Meta, Story } from '@storybook/react'; -import { CoreStart } from '@kbn/core/public'; +import type { Meta, Story } from '@storybook/react'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { EditAPMPolicyForm } from './edit_apm_policy_form'; -import { NewPackagePolicy, PackagePolicy } from './typings'; +import type { NewPackagePolicy, PackagePolicy } from './typings'; const coreMock = { http: { get: async () => ({}) }, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx index be9c89601d4ab..3d514c17dd0c9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/edit_apm_policy_form.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; import { APMPolicyForm } from '.'; -import { +import type { NewPackagePolicy, PackagePolicy, PackagePolicyEditExtensionComponentProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx index bd072a0b4e499..8a43cbe044aad 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/index.tsx @@ -18,9 +18,10 @@ import { isTailBasedSamplingValid, } from './settings_definition/tail_sampling_settings'; import { getTLSSettings, isTLSFormValid } from './settings_definition/tls_settings'; -import { SettingsForm, SettingsSection } from './settings_form'; +import type { SettingsSection } from './settings_form'; +import { SettingsForm } from './settings_form'; import { isSettingsFormValid, mergeNewVars } from './settings_form/utils'; -import { PackagePolicyVars } from './typings'; +import type { PackagePolicyVars } from './typings'; interface Props { updateAPMPolicy: (newVars: PackagePolicyVars, isValid: boolean) => void; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/agent_authorization_settings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/agent_authorization_settings.ts index 6feeadb2cd37c..df6ad0296446e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/agent_authorization_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/agent_authorization_settings.ts @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { getIntegerRt } from '../../../../../common/agent_configuration/runtime_types/integer_rt'; import { OPTIONAL_LABEL } from '../settings_form/utils'; -import { SettingsRow } from '../typings'; +import type { SettingsRow } from '../typings'; export function getAgentAuthorizationSettings(): SettingsRow[] { return [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/apm_settings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/apm_settings.ts index ad50b18052478..ad9ed518aa48d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/apm_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/apm_settings.ts @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { getDurationRt } from '../../../../../common/agent_configuration/runtime_types/duration_rt'; import { getIntegerRt } from '../../../../../common/agent_configuration/runtime_types/integer_rt'; import { OPTIONAL_LABEL, REQUIRED_LABEL } from '../settings_form/utils'; -import { SettingsRow } from '../typings'; +import type { SettingsRow } from '../typings'; export function getApmSettings(): SettingsRow[] { return [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/debug_settings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/debug_settings.ts index e5661389527b4..d087f6f7cf4a6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/debug_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/debug_settings.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; import { OPTIONAL_LABEL } from '../settings_form/utils'; -import { SettingsRow } from '../typings'; +import type { SettingsRow } from '../typings'; export function getDebugSettings(): SettingsRow[] { return [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/rum_settings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/rum_settings.ts index e6c59794c384c..6539608ac4f74 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/rum_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/rum_settings.ts @@ -7,7 +7,7 @@ import * as t from 'io-ts'; import { either } from 'fp-ts/lib/Either'; import { i18n } from '@kbn/i18n'; -import { PackagePolicyVars, SettingsRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow } from '../typings'; import { isSettingsFormValid, OPTIONAL_LABEL } from '../settings_form/utils'; const arrayRegex = new RegExp(/[\[\]]/); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tail_sampling_settings.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tail_sampling_settings.tsx index 555298ad9bc8a..f2c50133d8969 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tail_sampling_settings.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tail_sampling_settings.tsx @@ -9,7 +9,7 @@ import { EuiLink } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; import { isSettingsFormValid, OPTIONAL_LABEL } from '../settings_form/utils'; -import { PackagePolicyVars, SettingsRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow } from '../typings'; import { getDurationRt } from '../../../../../common/agent_configuration/runtime_types/duration_rt'; import { getStorageSizeRt } from '../../../../../common/agent_configuration/runtime_types/storage_size_rt'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tls_settings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tls_settings.ts index dc35f931df19e..0c60f3e83b322 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tls_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_definition/tls_settings.ts @@ -5,7 +5,7 @@ * 2.0. */ import { i18n } from '@kbn/i18n'; -import { PackagePolicyVars, SettingsRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow } from '../typings'; import { isSettingsFormValid, OPTIONAL_LABEL, REQUIRED_LABEL } from '../settings_form/utils'; const TLS_ENABLED_KEY = 'tls_enabled'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/form_row_setting.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/form_row_setting.tsx index 20d018e273628..6ac99b2e3b964 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/form_row_setting.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/form_row_setting.tsx @@ -17,8 +17,8 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; import { CodeEditor } from '@kbn/code-editor'; -import { FormRowOnChange } from '.'; -import { SettingsRow } from '../typings'; +import type { FormRowOnChange } from '.'; +import type { SettingsRow } from '../typings'; const FixedHeightDiv = styled.div` height: 300px; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx index 592677a2bf87f..ce46798fa1d26 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/index.tsx @@ -18,7 +18,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; -import { PackagePolicyVars, SettingsRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow } from '../typings'; import { FormRowSetting } from './form_row_setting'; import { validateSettingValue } from './utils'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.test.ts index 503be80ae2855..9c119ac2e2e55 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.test.ts @@ -6,7 +6,7 @@ */ import { getDurationRt } from '../../../../../common/agent_configuration/runtime_types/duration_rt'; import { getIntegerRt } from '../../../../../common/agent_configuration/runtime_types/integer_rt'; -import { PackagePolicyVars, SettingsRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow } from '../typings'; import { mergeNewVars, isSettingsFormValid, validateSettingValue } from './utils'; describe('settings utils', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.ts index 3ab80d6a7010b..415453da4dcee 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/settings_form/utils.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { isRight } from 'fp-ts/lib/Either'; import { PathReporter } from 'io-ts/lib/PathReporter'; import { isEmpty, isFinite } from 'lodash'; -import { PackagePolicyVars, SettingsRow, BasicSettingRow } from '../typings'; +import type { PackagePolicyVars, SettingsRow, BasicSettingRow } from '../typings'; export const REQUIRED_LABEL = i18n.translate('xpack.apm.fleet_integration.settings.requiredLabel', { defaultMessage: 'Required', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts index 401759ad0f98b..3fc053bfa1897 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_policy_form/typings.ts @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import * as t from 'io-ts'; -import { ReactNode } from 'react'; -import { PackagePolicyConfigRecordEntry } from '@kbn/fleet-plugin/common'; +import type * as t from 'io-ts'; +import type { ReactNode } from 'react'; +import type { PackagePolicyConfigRecordEntry } from '@kbn/fleet-plugin/common'; export type { PackagePolicyCreateExtensionComponentProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_agents_tab_extension.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_agents_tab_extension.tsx index 861f587f9c42c..8736a85a1279e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_agents_tab_extension.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_agents_tab_extension.tsx @@ -6,7 +6,7 @@ */ import { lazy } from 'react'; -import { PackagePolicyEditExtensionComponent } from '@kbn/fleet-plugin/public'; +import type { PackagePolicyEditExtensionComponent } from '@kbn/fleet-plugin/public'; export const getLazyApmAgentsTabExtension = () => { return lazy(async () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx index c8a1392a80027..c7a8868e2ac8c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_create_extension.tsx @@ -6,7 +6,7 @@ */ import { lazy } from 'react'; -import { PackagePolicyCreateExtensionComponent } from '@kbn/fleet-plugin/public'; +import type { PackagePolicyCreateExtensionComponent } from '@kbn/fleet-plugin/public'; export const getLazyAPMPolicyCreateExtension = () => { return lazy(async () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx index 9e956697b33ca..4e5ba5aaa3660 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/lazy_apm_policy_edit_extension.tsx @@ -6,7 +6,7 @@ */ import { lazy } from 'react'; -import { PackagePolicyEditExtensionComponent } from '@kbn/fleet-plugin/public'; +import type { PackagePolicyEditExtensionComponent } from '@kbn/fleet-plugin/public'; export const getLazyAPMPolicyEditExtension = () => { return lazy(async () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/apm_error_boundary.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/apm_error_boundary.tsx index f68254c6afd1f..25014e4492ef0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/apm_error_boundary.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/apm_error_boundary.tsx @@ -10,7 +10,7 @@ import { useKibana } from '@kbn/kibana-react-plugin/public'; import React from 'react'; import { NotFoundPrompt } from '@kbn/shared-ux-prompt-not-found'; import { useLocation } from 'react-router-dom'; -import { ApmPluginStartDeps } from '../../plugin'; +import type { ApmPluginStartDeps } from '../../plugin'; export function ApmErrorBoundary({ children }: { children?: React.ReactNode }) { const location = useLocation(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/add_data_context_menu.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/add_data_context_menu.tsx index 0b628ff985735..67193013b3c93 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/add_data_context_menu.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/add_data_context_menu.tsx @@ -5,20 +5,16 @@ * 2.0. */ -import { - EuiContextMenu, - EuiContextMenuPanelDescriptor, - EuiHeaderLink, - EuiPopover, -} from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiContextMenu, EuiHeaderLink, EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; -import { ApmOnboardingLocatorParams } from '../../../../locator/onboarding_locator'; +import type { ApmOnboardingLocatorParams } from '../../../../locator/onboarding_locator'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useKibana } from '../../../../context/kibana_context/use_kibana'; -import { ApmPluginStartDeps, ApmServices } from '../../../../plugin'; -import { EntityInventoryAddDataParams } from '../../../../services/telemetry'; +import type { ApmPluginStartDeps, ApmServices } from '../../../../plugin'; +import type { EntityInventoryAddDataParams } from '../../../../services/telemetry'; import { associateServiceLogsProps, collectServiceLogsProps, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/alerting_popover_flyout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/alerting_popover_flyout.tsx index e08e37b5d6eff..fd57ea99e257f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/alerting_popover_flyout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/alerting_popover_flyout.tsx @@ -5,12 +5,8 @@ * 2.0. */ -import { - EuiContextMenu, - EuiContextMenuPanelDescriptor, - EuiHeaderLink, - EuiPopover, -} from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiContextMenu, EuiHeaderLink, EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; import { ApmRuleType } from '@kbn/rule-data-utils'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.test.tsx index f894ee34103a4..72fecf35dc6a1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.test.tsx @@ -9,7 +9,7 @@ import { fireEvent, render, waitFor } from '@testing-library/react'; import { createMemoryHistory } from 'history'; import React from 'react'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; -import { ApmMlJob } from '../../../../../common/anomaly_detection/apm_ml_job'; +import type { ApmMlJob } from '../../../../../common/anomaly_detection/apm_ml_job'; import { getAnomalyDetectionSetupState } from '../../../../../common/anomaly_detection/get_anomaly_detection_setup_state'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import * as hooks from '../../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.tsx index 2441dd7893cd9..e382b0ea4ae40 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/anomaly_detection_setup_link.tsx @@ -6,7 +6,7 @@ */ import { EuiLoadingSpinner } from '@elastic/eui'; -import { IconType } from '@elastic/eui'; +import type { IconType } from '@elastic/eui'; import { EuiHeaderLink, EuiIcon, EuiToolTip, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/labs/labs_flyout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/labs/labs_flyout.tsx index bda1c7e4ee022..c3f541972a8e2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/labs/labs_flyout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/apm_header_action_menu/labs/labs_flyout.tsx @@ -27,7 +27,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import { useEditableSettings, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { FieldRowProvider } from '@kbn/management-settings-components-field-row'; -import { ValueValidation } from '@kbn/core-ui-settings-browser/src/types'; +import type { ValueValidation } from '@kbn/core-ui-settings-browser/src/types'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; import { useFetcher, isPending } from '../../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/index.tsx index 2b709e2077470..68390d9c5598e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/index.tsx @@ -20,16 +20,14 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { KibanaEnvironmentContextProvider } from '../../../context/kibana_environment_context/kibana_environment_context'; import { AnomalyDetectionJobsContextProvider } from '../../../context/anomaly_detection_jobs/anomaly_detection_jobs_context'; -import { - ApmPluginContext, - ApmPluginContextValue, -} from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import { ApmPluginContext } from '../../../context/apm_plugin/apm_plugin_context'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { BreadcrumbsContextProvider } from '../../../context/breadcrumbs/context'; import { LicenseProvider } from '../../../context/license/license_context'; import { TimeRangeIdContextProvider } from '../../../context/time_range_id/time_range_id_context'; import { UrlParamsProvider } from '../../../context/url_params_context/url_params_context'; -import { ApmPluginStartDeps, ApmServices } from '../../../plugin'; +import type { ApmPluginStartDeps, ApmServices } from '../../../plugin'; import { ApmErrorBoundary } from '../apm_error_boundary'; import { apmRouter } from '../apm_route_config'; import { TrackPageview } from '../track_pageview'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_date_range/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_date_range/index.tsx index 30476dd0539b2..421fb8b682380 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_date_range/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_date_range/index.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ReactElement } from 'react'; +import type { ReactElement } from 'react'; import { useLocation } from 'react-router-dom'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useDateRangeRedirect } from '../../../../hooks/use_date_range_redirect'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_environment/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_environment/index.test.tsx index fa5d9c3b64102..e98ab28794808 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_environment/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_default_environment/index.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { RouterProvider } from '@kbn/typed-react-router-config'; import { render } from '@testing-library/react'; -import { createMemoryHistory, Location, MemoryHistory } from 'history'; +import type { Location, MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; import qs from 'query-string'; import { RedirectWithDefaultEnvironment } from '.'; import { apmRouter } from '../../apm_route_config'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.test.tsx index 0d48d157fa6b8..d850feb6b715c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { RouterProvider } from '@kbn/typed-react-router-config'; import { render } from '@testing-library/react'; -import { createMemoryHistory, Location, MemoryHistory } from 'history'; +import type { Location, MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; import qs from 'query-string'; import { RedirectWithOffset } from '.'; import { apmRouter } from '../../apm_route_config'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.tsx index 6bfbf82fc2f2a..424d1a4b33b1c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/redirect_with_offset/index.tsx @@ -10,10 +10,8 @@ import qs from 'query-string'; import React from 'react'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { isRouteWithComparison } from '../../../shared/is_route_with_time_range'; -import { - TimeRangeComparisonEnum, - dayAndWeekBeforeToOffset, -} from '../../../shared/time_comparison/get_comparison_options'; +import type { TimeRangeComparisonEnum } from '../../../shared/time_comparison/get_comparison_options'; +import { dayAndWeekBeforeToOffset } from '../../../shared/time_comparison/get_comparison_options'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { getComparisonEnabled } from '../../../shared/time_comparison/get_comparison_enabled'; import { toBoolean } from '../../../../context/url_params_context/helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/scroll_to_top_on_path_change.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/scroll_to_top_on_path_change.tsx index bd51666dcf439..d86bdc52fd942 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/scroll_to_top_on_path_change.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/app_root/scroll_to_top_on_path_change.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import { Component } from 'react'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/home/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/home/index.tsx index 63ee44baae253..993315551497b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/home/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/home/index.tsx @@ -8,7 +8,8 @@ import { i18n } from '@kbn/i18n'; import { toBooleanRt, toNumberRt } from '@kbn/io-ts-utils'; import { Outlet } from '@kbn/typed-react-router-config'; import * as t from 'io-ts'; -import React, { ComponentProps } from 'react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { dynamic } from '@kbn/shared-ux-utility'; import { offsetRt } from '../../../../common/comparison_rt'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/home/page_template.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/home/page_template.tsx index 1e5508bceb4ed..b0a0360df866c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/home/page_template.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/home/page_template.tsx @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import * as t from 'io-ts'; +import type * as t from 'io-ts'; import React from 'react'; -import { Route } from '@kbn/typed-react-router-config'; +import type { Route } from '@kbn/typed-react-router-config'; import { Breadcrumb } from '../../app/breadcrumb'; import { ApmMainTemplate } from '../templates/apm_main_template'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/redirect_to.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/redirect_to.tsx index aeedf5f9cb55b..459a3faf12624 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/redirect_to.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/redirect_to.tsx @@ -6,8 +6,9 @@ */ import React from 'react'; -import { Location } from 'history'; -import { Redirect, useLocation, RouteComponentProps } from 'react-router-dom'; +import type { Location } from 'history'; +import type { RouteComponentProps } from 'react-router-dom'; +import { Redirect, useLocation } from 'react-router-dom'; /** * Function that returns a react component to redirect to a given pathname removing hash-based URLs diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/service_detail/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/service_detail/index.tsx index 8a4a1c32877c5..2c214fe542a5f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/service_detail/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/service_detail/index.tsx @@ -27,7 +27,7 @@ import { InfraTab } from '../../app/infra_overview/infra_tabs/use_tabs'; import { ApmServiceTemplate } from '../templates/apm_service_template'; import { ApmServiceWrapper } from './apm_service_wrapper'; import { RedirectToDefaultServiceRouteView } from './redirect_to_default_service_route_view'; -import { SearchBar } from '../../shared/search_bar/search_bar'; +import type { SearchBar } from '../../shared/search_bar/search_bar'; import { ServiceDependencies } from '../../app/service_dependencies'; import { ServiceDashboards } from '../../app/service_dashboards'; import { ErrorGroupDetails } from '../../app/error_group_details'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/entities_inventory_callout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/entities_inventory_callout.tsx index 16eeba5e67ef4..447d8cfba007d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/entities_inventory_callout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/entities_inventory_callout.tsx @@ -10,7 +10,7 @@ import { TechnicalPreviewBadge } from '@kbn/observability-shared-plugin/public'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; interface EntitiesInventoryCalloutProps { onDismiss: () => void; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/index.tsx index b7fadf8c12870..eae1bbae1c34b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_main_template/index.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { EuiFlexGroup, EuiPageHeaderProps } from '@elastic/eui'; +import type { EuiPageHeaderProps } from '@elastic/eui'; +import { EuiFlexGroup } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; +import type { ObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; import type { KibanaPageTemplateProps } from '@kbn/shared-ux-page-kibana-template'; import React, { useContext } from 'react'; import { useLocation } from 'react-router-dom'; @@ -20,7 +21,7 @@ import { KibanaEnvironmentContext } from '../../../../context/kibana_environment import { getPathForFeedback } from '../../../../utils/get_path_for_feedback'; import { EnvironmentsContextProvider } from '../../../../context/environments_context/environments_context'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { ApmPluginStartDeps } from '../../../../plugin'; +import type { ApmPluginStartDeps } from '../../../../plugin'; import { ServiceGroupSaveButton } from '../../../app/service_groups'; import { ServiceGroupsButtonGroup } from '../../../app/service_groups/service_groups_button_group'; import { ApmEnvironmentFilter } from '../../../shared/environment_filter'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.stories.tsx index 3ea8707fe7849..287c34b701895 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/analyze_data_button.stories.tsx @@ -13,7 +13,7 @@ import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock import { APMServiceContext } from '../../../../context/apm_service/apm_service_context'; import { AnalyzeDataButton } from './analyze_data_button'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; interface Args { agentName: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx index 6c2fdaea96687..f75f7a67f8e0a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx @@ -22,7 +22,8 @@ import { SearchBar } from '../../../shared/search_bar/search_bar'; import { ServiceIcons } from '../../../shared/service_icons'; import { ApmMainTemplate } from '../apm_main_template'; import { AnalyzeDataButton } from './analyze_data_button'; -import { Tab, useTabs } from './use_tabs'; +import type { Tab } from './use_tabs'; +import { useTabs } from './use_tabs'; interface Props { title: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.test.tsx index fee28395960c9..363526d343baa 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.test.tsx @@ -4,20 +4,21 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { renderHook } from '@testing-library/react'; import { createMemoryHistory } from 'history'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { ServerlessType } from '../../../../../common/serverless'; -import { APIEndpoint } from '../../../../../server'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { APIEndpoint } from '../../../../../server'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginContextWrapper, mockApmPluginContextValue, } from '../../../../context/apm_plugin/mock_apm_plugin_context'; import * as useApmServiceContext from '../../../../context/apm_service/use_apm_service_context'; -import { ServiceEntitySummary } from '../../../../context/apm_service/use_service_entity_summary_fetcher'; +import type { ServiceEntitySummary } from '../../../../context/apm_service/use_service_entity_summary_fetcher'; import * as fetcherHook from '../../../../hooks/use_fetcher'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { fromQuery } from '../../../shared/links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.tsx index 53a91c60be3ab..b91ce935f3055 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/apm_service_template/use_tabs.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiBadge, EuiPageHeaderProps, EuiToolTip } from '@elastic/eui'; +import type { EuiPageHeaderProps } from '@elastic/eui'; +import { EuiBadge, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { enableAwsLambdaMetrics } from '@kbn/observability-plugin/common'; import { keyBy, omit } from 'lodash'; @@ -18,7 +19,7 @@ import { isServerlessAgentName, } from '../../../../../common/agent_name'; import { ApmFeatureFlagName } from '../../../../../common/apm_feature_flags'; -import { ServerlessType } from '../../../../../common/serverless'; +import type { ServerlessType } from '../../../../../common/serverless'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useApmFeatureFlag } from '../../../../hooks/use_apm_feature_flag'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/mobile_service_template/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/mobile_service_template/index.tsx index 0c6a1f4176ec5..752bb740ca37f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/mobile_service_template/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/mobile_service_template/index.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexItem, EuiPageHeaderProps, EuiTitle } from '@elastic/eui'; +import type { EuiPageHeaderProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { omit } from 'lodash'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/service_group_template.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/service_group_template.tsx index d9fb2437be14c..1319b4f87148e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/service_group_template.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/service_group_template.tsx @@ -5,13 +5,8 @@ * 2.0. */ -import { - EuiPageHeaderProps, - EuiFlexGroup, - EuiFlexItem, - EuiSkeletonTitle, - EuiIcon, -} from '@elastic/eui'; +import type { EuiPageHeaderProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSkeletonTitle, EuiIcon } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; import type { KibanaPageTemplateProps } from '@kbn/shared-ux-page-kibana-template'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.stories.tsx index eaab08bc09e6f..5a3ccd5f85ac4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.stories.tsx @@ -8,7 +8,8 @@ import type { CoreStart } from '@kbn/core/public'; import type { Meta, Story } from '@storybook/react'; import { noop } from 'lodash'; -import React, { ComponentProps } from 'react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginStorybook } from '../../../context/apm_plugin/mock_apm_plugin_storybook'; import { mockApmApiCallResponse } from '../../../services/rest/call_apm_api_spy'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.tsx b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.tsx index 9235065271768..fc9a2976357e9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/routing/templates/settings_template.tsx @@ -5,17 +5,17 @@ * 2.0. */ -import { EuiPageHeaderProps } from '@elastic/eui'; -import { CoreStart } from '@kbn/core/public'; +import type { EuiPageHeaderProps } from '@elastic/eui'; +import type { CoreStart } from '@kbn/core/public'; import { i18n } from '@kbn/i18n'; import { enableAgentExplorerView } from '@kbn/observability-plugin/public'; import React from 'react'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { useDefaultEnvironment } from '../../../hooks/use_default_environment'; import { BetaBadge } from '../../shared/beta_badge'; -import { ApmRouter } from '../apm_route_config'; +import type { ApmRouter } from '../apm_route_config'; import { ApmMainTemplate } from './apm_main_template'; import { useApmFeatureFlag } from '../../../hooks/use_apm_feature_flag'; import { ApmFeatureFlagName } from '../../../../common/apm_feature_flags'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/add_data_buttons/buttons.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/add_data_buttons/buttons.tsx index b58799f0e00c2..b8c9e9c11e329 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/add_data_buttons/buttons.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/add_data_buttons/buttons.tsx @@ -8,16 +8,15 @@ // Disabling it for now until the EUI team fixes it /* eslint-disable @elastic/eui/href-or-on-click */ -import { EuiButton, EuiButtonSize } from '@elastic/eui'; +import type { EuiButtonSize } from '@elastic/eui'; +import { EuiButton } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; -import { LocatorPublic } from '@kbn/share-plugin/common'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { - ApmOnboardingLocatorCategory, - ApmOnboardingLocatorParams, -} from '../../../locator/onboarding_locator'; +import type { ApmOnboardingLocatorParams } from '../../../locator/onboarding_locator'; +import { ApmOnboardingLocatorCategory } from '../../../locator/onboarding_locator'; export const addApmDataProps = (locator: LocatorPublic | undefined) => { return { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/beta_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/beta_badge.tsx index c6b3c72575fce..76b4a595d0900 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/beta_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/beta_badge.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiBetaBadge, IconType } from '@elastic/eui'; +import type { IconType } from '@elastic/eui'; +import { EuiBetaBadge } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx index e0ad710a14d9e..d9cbec2c86bc6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { TickFormatter, XYBrushEvent } from '@elastic/charts'; import { AnnotationDomainType, AreaSeries, @@ -16,8 +17,6 @@ import { Position, ScaleType, Settings, - TickFormatter, - XYBrushEvent, Tooltip, LegendValue, } from '@elastic/charts'; @@ -27,15 +26,15 @@ import moment from 'moment'; import React from 'react'; import { useHistory } from 'react-router-dom'; import { useChartThemes } from '@kbn/observability-shared-plugin/public'; -import { Annotation } from '../../../../../common/annotations'; +import type { Annotation } from '../../../../../common/annotations'; import { asAbsoluteDateTime, asPercent, getDurationFormatter, } from '../../../../../common/utils/formatters'; -import { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; import { useChartPointerEventContext } from '../../../../context/chart_pointer_event/use_chart_pointer_event_context'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { unit } from '../../../../utils/style'; import { ChartContainer } from '../chart_container'; import { isTimeseriesEmpty, onBrushEnd } from '../helper/helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart/index.tsx index 65f22d78adf99..572f3e0504db1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart/index.tsx @@ -8,21 +8,23 @@ import React, { useMemo } from 'react'; import { flatten } from 'lodash'; +import type { + BrushEndListener, + LineAnnotationDatum, + LineAnnotationStyle, + TickFormatter, +} from '@elastic/charts'; import { AnnotationDomainType, AreaSeries, Axis, - BrushEndListener, Chart, CurveType, LineAnnotation, - LineAnnotationDatum, - LineAnnotationStyle, Position, RectAnnotation, ScaleType, Settings, - TickFormatter, } from '@elastic/charts'; import { euiPaletteColorBlind, useEuiTheme } from '@elastic/eui'; @@ -36,7 +38,7 @@ import { getDurationFormatter } from '../../../../../common/utils/formatters'; import type { HistogramItem } from '../../../../../common/correlations/types'; import { DEFAULT_PERCENTILE_THRESHOLD } from '../../../../../common/correlations/constants'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { ChartContainer } from '../chart_container'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart_with_scrubber/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart_with_scrubber/index.tsx index 3b9131a537362..650047c899453 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart_with_scrubber/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/duration_distribution_chart_with_scrubber/index.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BrushEndListener, BrushEvent, XYBrushEvent } from '@elastic/charts'; +import type { BrushEndListener, BrushEvent, XYBrushEvent } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; @@ -17,15 +17,13 @@ import { EuiText, EuiTitle, } from '@elastic/eui'; -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; import { ChartTitleToolTip } from '../../../app/correlations/chart_title_tool_tip'; import { getDurationFormatter } from '../../../../../common/utils/formatters'; -import { - DurationDistributionChart, - DurationDistributionChartData, -} from '../duration_distribution_chart'; +import type { DurationDistributionChartData } from '../duration_distribution_chart'; +import { DurationDistributionChart } from '../duration_distribution_chart'; import { TotalDocCountLabel } from '../duration_distribution_chart/total_doc_count_label'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; // Format the selected latency range for the "Clear selection" badge. // If the two values share the same unit, it will only displayed once. diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx index 6be23f967398b..677c7bcecffc4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx @@ -11,7 +11,7 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiIconTip } from '@elastic/eui'; import { usePreviousPeriodLabel } from '../../../../hooks/use_previous_period_text'; import { isTimeComparison } from '../../time_comparison/get_comparison_options'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asPercent } from '../../../../../common/utils/formatters'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/flamegraph/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/flamegraph/index.tsx index d1617f198b9e2..757eb7adefeb9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/flamegraph/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/flamegraph/index.tsx @@ -7,7 +7,7 @@ import { EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { EmbeddableFlamegraph } from '@kbn/observability-shared-plugin/public'; -import { BaseFlameGraph } from '@kbn/profiling-utils'; +import type { BaseFlameGraph } from '@kbn/profiling-utils'; import { isEmpty } from 'lodash'; import React from 'react'; import { FETCH_STATUS, isPending } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/get_chart_anomaly_timeseries.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/get_chart_anomaly_timeseries.tsx index 74179489aceb2..7c01428cab960 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/get_chart_anomaly_timeseries.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/get_chart_anomaly_timeseries.tsx @@ -13,8 +13,8 @@ import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import type { AreaSeriesStyle, RecursivePartial } from '@elastic/charts'; import type { EuiThemeComputed } from '@elastic/eui'; import { getSeverityColor } from '../../../../../common/anomaly_detection'; -import { ServiceAnomalyTimeseries } from '../../../../../common/anomaly_detection/service_anomaly_timeseries'; -import { APMChartSpec } from '../../../../../typings/timeseries'; +import type { ServiceAnomalyTimeseries } from '../../../../../common/anomaly_detection/service_anomaly_timeseries'; +import type { APMChartSpec } from '../../../../../typings/timeseries'; export const expectedBoundsTitle = i18n.translate('xpack.apm.comparison.expectedBoundsTitle', { defaultMessage: 'Expected bounds', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.test.ts index 9db7123b32881..db92f011ecc7c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.test.ts @@ -6,8 +6,8 @@ */ import { onBrushEnd, isTimeseriesEmpty } from './helper'; -import { History } from 'history'; -import { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; +import type { History } from 'history'; +import type { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; describe('Chart helper', () => { describe('onBrushEnd', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.ts index c5fc977ad2fa6..138e6ffe9be7d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/helper.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { XYBrushEvent } from '@elastic/charts'; -import { History } from 'history'; -import { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; +import type { XYBrushEvent } from '@elastic/charts'; +import type { History } from 'history'; +import type { Coordinate, TimeSeries } from '../../../../../typings/timeseries'; import { fromQuery, toQuery } from '../../links/url_helpers'; export const onBrushEnd = ({ x, history }: { x: XYBrushEvent['x']; history: History }) => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.test.ts index 9b5308de1020d..d7f448ea4dcb6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.test.ts @@ -6,7 +6,7 @@ */ import moment from 'moment-timezone'; -import { IUiSettingsClient } from '@kbn/core/public'; +import type { IUiSettingsClient } from '@kbn/core/public'; import { getDomainTZ, getTimeTicksTZ, getTimeZone } from './timezone'; describe('Timezone helper', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.ts index 951788bfbe7b3..71d2d862142da 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/helper/timezone.ts @@ -6,7 +6,7 @@ */ import d3 from 'd3'; -import { IUiSettingsClient } from '@kbn/core/public'; +import type { IUiSettingsClient } from '@kbn/core/public'; import { UI_SETTINGS } from '@kbn/data-plugin/common'; import { getTimezoneOffsetInMs } from './get_timezone_offset_in_ms'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx index 72391588d3909..7ecd8cf09e1eb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { TooltipInfo } from '@elastic/charts'; +import type { TooltipInfo } from '@elastic/charts'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getDurationFormatter } from '../../../../../common/utils/formatters'; import { CustomTooltip } from './custom_tooltip'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx index 8e0c24162f2a6..1a026a02c90dd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import { TooltipInfo } from '@elastic/charts'; +import type { TooltipInfo } from '@elastic/charts'; import { EuiIcon, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getServiceNodeName } from '../../../../../common/service_nodes'; -import { asTransactionRate, TimeFormatter } from '../../../../../common/utils/formatters'; +import type { TimeFormatter } from '../../../../../common/utils/formatters'; +import { asTransactionRate } from '../../../../../common/utils/formatters'; type ServiceInstanceMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx index 6e5ce28e8cd22..65095a4c9e3f7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx @@ -5,17 +5,19 @@ * 2.0. */ +import type { + ElementClickListener, + GeometryValue, + TooltipInfo, + TooltipProps, +} from '@elastic/charts'; import { Axis, BubbleSeries, Chart, - ElementClickListener, - GeometryValue, Position, ScaleType, Settings, - TooltipInfo, - TooltipProps, TooltipType, Tooltip, } from '@elastic/charts'; @@ -27,8 +29,8 @@ import { useChartThemes } from '@kbn/observability-shared-plugin/public'; import { usePreviousPeriodLabel } from '../../../../hooks/use_previous_period_text'; import { SERVICE_NODE_NAME } from '../../../../../common/es_fields/apm'; import { asTransactionRate, getDurationFormatter } from '../../../../../common/utils/formatters'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import * as urlHelpers from '../../links/url_helpers'; import { ChartContainer } from '../chart_container'; import { getResponseTimeTickFormatter } from '../transaction_charts/helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/instances_latency_distribution_chart.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/instances_latency_distribution_chart.stories.tsx index fc92947cd7737..fecc9c683b3e4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/instances_latency_distribution_chart.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/instances_latency_distribution_chart.stories.tsx @@ -5,9 +5,11 @@ * 2.0. */ -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { InstancesLatencyDistributionChart, InstancesLatencyDistributionChartProps } from '.'; +import type { InstancesLatencyDistributionChartProps } from '.'; +import { InstancesLatencyDistributionChart } from '.'; import { MockApmPluginStorybook } from '../../../../context/apm_plugin/mock_apm_plugin_storybook'; export default { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx index f02020c3645ed..9a5e74e1f8fbd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx @@ -6,7 +6,7 @@ */ import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { LatencyChart } from '.'; @@ -20,7 +20,8 @@ import { ApmTimeRangeMetadataContextProvider } from '../../../../context/time_ra import { MockUrlParamsContextProvider } from '../../../../context/url_params_context/mock_url_params_context_provider'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { mockApmApiCallResponse } from '../../../../services/rest/call_apm_api_spy'; -import { APIReturnType, createCallApmApi } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; interface Args { latencyChartResponse: APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/charts/latency'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_error_rate_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_error_rate_chart.tsx index 6cbd3e188720b..bf7d2871f6846 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_error_rate_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_error_rate_chart.tsx @@ -13,7 +13,7 @@ import { SERVICE_NAME } from '@kbn/observability-shared-plugin/common'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asDecimalOrInteger } from '../../../../../common/utils/formatters'; import { TooltipContent } from './tooltip_content'; import { Popover } from './popover'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_rate_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_rate_chart.tsx index 8025a628067e7..efb89f68ef541 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_rate_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/log_rate_chart.tsx @@ -12,7 +12,7 @@ import { css } from '@emotion/react'; import { useApmParams } from '../../../../hooks/use_apm_params'; import { useFetcher } from '../../../../hooks/use_fetcher'; import { useTimeRange } from '../../../../hooks/use_time_range'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asDecimalOrInteger } from '../../../../../common/utils/formatters'; import { TooltipContent } from './tooltip_content'; import { Popover } from './popover'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/tooltip_content.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/tooltip_content.tsx index 9fbcdec335a73..54f99a7deb16e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/tooltip_content.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/log_rates/tooltip_content.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { HTMLAttributes, ReactElement } from 'react'; +import type { HTMLAttributes, ReactElement } from 'react'; +import React from 'react'; import { EuiText } from '@elastic/eui'; import { css } from '@emotion/react'; import { FormattedMessage } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx index 017ede4861a2b..b5c1047b22cfc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx @@ -7,7 +7,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIconTip, EuiTitle } from '@elastic/eui'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asDecimal, asInteger, @@ -15,8 +15,8 @@ import { getDurationFormatter, getFixedByteFormatter, } from '../../../../../common/utils/formatters'; -import { Maybe } from '../../../../../typings/common'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { Maybe } from '../../../../../typings/common'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { TimeseriesChartWithContext } from '../timeseries_chart_with_context'; import { getMaxY, getResponseTimeTickFormatter } from '../transaction_charts/helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/spark_plot/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/spark_plot/index.tsx index b18fd70d0d2ca..526c16fb06c7d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/spark_plot/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/spark_plot/index.tsx @@ -5,13 +5,13 @@ * 2.0. */ +import type { PartialTheme } from '@elastic/charts'; import { AreaSeries, BarSeries, Chart, CurveType, LineSeries, - PartialTheme, ScaleType, Settings, Tooltip, @@ -20,7 +20,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiLoadingChart, useEuiTheme } from import React from 'react'; import { useChartThemes } from '@kbn/observability-shared-plugin/public'; import { i18n } from '@kbn/i18n'; -import { Coordinate } from '../../../../../typings/timeseries'; +import type { Coordinate } from '../../../../../typings/timeseries'; import { unit } from '../../../../utils/style'; import { getComparisonChartTheme } from '../../time_comparison/get_comparison_chart_theme'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/index.tsx index 8b0a966b91b44..11fe04d30a3a9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/index.tsx @@ -7,8 +7,8 @@ import React, { useState } from 'react'; import { EuiResizeObserver } from '@elastic/eui'; -import { AgentMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; -import { ErrorMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; +import type { AgentMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { ErrorMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; import { getPlotValues } from './plot_utils'; import { TimelineAxis } from './timeline_axis'; import { VerticalLines } from './vertical_lines'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.test.tsx index 27fe750b06521..c825a23b51515 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.test.tsx @@ -8,7 +8,7 @@ import { shallow } from 'enzyme'; import React from 'react'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; -import { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; import { AgentMarker } from './agent_marker'; describe('AgentMarker', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.tsx index 1ee668fb5765f..eff9364351987 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/agent_marker.tsx @@ -9,7 +9,7 @@ import { EuiToolTip, useEuiTheme } from '@elastic/eui'; import React from 'react'; import styled from '@emotion/styled'; import { asDuration } from '../../../../../../common/utils/formatters'; -import { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; import { Legend } from '../legend'; const NameContainer = styled.div` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx index 748b783661743..58e0ab63fedb3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx @@ -6,11 +6,12 @@ */ import { fireEvent, act } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context'; import { expectTextsInDocument, renderWithTheme } from '../../../../../utils/test_helpers'; -import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; +import type { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; import { ErrorMarker } from './error_marker'; function Wrapper({ children }: { children?: ReactNode }) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.tsx index 14b2a277c3931..bdc8c1ded4a29 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.tsx @@ -11,7 +11,7 @@ import styled from '@emotion/styled'; import { TRACE_ID, TRANSACTION_ID } from '../../../../../../common/es_fields/apm'; import { asDuration } from '../../../../../../common/utils/formatters'; import { useLegacyUrlParams } from '../../../../../context/url_params_context/use_url_params'; -import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; +import type { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; import { ErrorDetailLink } from '../../../links/apm/error_detail_link'; import { Legend, Shape } from '../legend'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.test.tsx index cadf1078937c6..100dbe3515e85 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.test.tsx @@ -8,8 +8,8 @@ import { shallow } from 'enzyme'; import React from 'react'; import { Marker } from '.'; -import { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; -import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; +import type { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; describe('Marker', () => { it('renders agent marker', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.tsx index 4499f06558db6..2a5b72abb41ce 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/marker/index.tsx @@ -7,8 +7,8 @@ import React from 'react'; import styled from '@emotion/styled'; -import { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; -import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; +import type { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; import { AgentMarker } from './agent_marker'; import { ErrorMarker } from './error_marker'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/plot_utils.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/plot_utils.ts index a099c2c39313a..c91682f6dba43 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/plot_utils.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/plot_utils.ts @@ -6,7 +6,7 @@ */ import { scaleLinear } from 'd3-scale'; -import { Margins } from '.'; +import type { Margins } from '.'; export type PlotValues = ReturnType; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx index e6b9d30000229..4d7ac4a3e6c95 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx @@ -12,8 +12,9 @@ import { mockMoment, toJson, } from '../../../../utils/test_helpers'; -import { TimelineAxisContainer, TimelineProps, VerticalLinesContainer } from '.'; -import { AgentMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; +import type { TimelineProps } from '.'; +import { TimelineAxisContainer, VerticalLinesContainer } from '.'; +import type { AgentMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks'; describe.each([[TimelineAxisContainer], [VerticalLinesContainer]])(`Timeline`, (Component) => { let consoleMock: jest.SpyInstance; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline_axis.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline_axis.tsx index ebaa3d231dfa1..2b00687c009e6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline_axis.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/timeline_axis.tsx @@ -9,9 +9,9 @@ import { inRange } from 'lodash'; import React from 'react'; import { useEuiTheme } from '@elastic/eui'; import { getDurationFormatter } from '../../../../../common/utils/formatters'; -import { Mark } from '.'; +import type { Mark } from '.'; import { Marker } from './marker'; -import { PlotValues } from './plot_utils'; +import type { PlotValues } from './plot_utils'; // Remove any tick that is too close to topTraceDuration const getXAxisTickValues = (tickValues: number[], topTraceDuration?: number) => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/vertical_lines.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/vertical_lines.tsx index 1f2a929084bea..fe54ffb4fa9a4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/vertical_lines.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeline/vertical_lines.tsx @@ -7,8 +7,8 @@ import React from 'react'; import { useEuiTheme } from '@elastic/eui'; -import { Mark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks'; -import { PlotValues } from './plot_utils'; +import type { Mark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks'; +import type { PlotValues } from './plot_utils'; interface VerticalLinesProps { marks?: Mark[]; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart.tsx index 5f08befb46a3a..75be9419fa111 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart.tsx @@ -5,29 +5,32 @@ * 2.0. */ +import type { + LineAnnotation, + RectAnnotationStyle, + SeriesIdentifier, + XYBrushEvent, + XYChartSeriesIdentifier, + SettingsSpec, +} from '@elastic/charts'; import { AreaSeries, Axis, BarSeries, Chart, CurveType, - LineAnnotation, LineSeries, niceTimeFormatter, Position, RectAnnotation, - RectAnnotationStyle, ScaleType, - SeriesIdentifier, Settings, - XYBrushEvent, - XYChartSeriesIdentifier, Tooltip, - SettingsSpec, } from '@elastic/charts'; import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSpacer, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { ReactElement } from 'react'; +import type { ReactElement } from 'react'; +import React from 'react'; import { useHistory } from 'react-router-dom'; import { useChartThemes } from '@kbn/observability-shared-plugin/public'; import { isExpectedBoundsComparison } from '../time_comparison/get_comparison_options'; @@ -40,7 +43,7 @@ import { getChartAnomalyTimeseries, } from './helper/get_chart_anomaly_timeseries'; import { isTimeseriesEmpty, onBrushEnd } from './helper/helper'; -import { TimeseriesChartWithContextProps } from './timeseries_chart_with_context'; +import type { TimeseriesChartWithContextProps } from './timeseries_chart_with_context'; const END_ZONE_LABEL = i18n.translate('xpack.apm.timeseries.endzone', { defaultMessage: diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx index 5f08e7375788e..707819ce75d8a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx @@ -5,23 +5,18 @@ * 2.0. */ -import { - AnnotationDomainType, - LegendItemListener, - LineAnnotation, - Position, - YDomainRange, -} from '@elastic/charts'; +import type { LegendItemListener, YDomainRange } from '@elastic/charts'; +import { AnnotationDomainType, LineAnnotation, Position } from '@elastic/charts'; import React from 'react'; import { EuiIcon, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { asAbsoluteDateTime } from '../../../../common/utils/formatters'; import { useAnnotationsContext } from '../../../context/annotations/use_annotations_context'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; -import { ServiceAnomalyTimeseries } from '../../../../common/anomaly_detection/service_anomaly_timeseries'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { ServiceAnomalyTimeseries } from '../../../../common/anomaly_detection/service_anomaly_timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { FETCH_STATUS } from '../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { unit } from '../../../utils/style'; import { getTimeZone } from './helper/timezone'; import { TimeseriesChart } from './timeseries_chart'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.test.ts index f8f4858109891..763ee014921de 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.test.ts @@ -7,7 +7,7 @@ import { getResponseTimeTickFormatter, getMaxY } from './helper'; -import { TimeSeries, Coordinate } from '../../../../../typings/timeseries'; +import type { TimeSeries, Coordinate } from '../../../../../typings/timeseries'; import { getDurationFormatter, toMicroseconds } from '../../../../../common/utils/formatters'; describe('transaction chart helper', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.tsx index 31d18b7a9709d..c9ba53795558b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/helper.tsx @@ -6,8 +6,8 @@ */ import { isFiniteNumber } from '../../../../../common/utils/is_finite_number'; -import { Coordinate } from '../../../../../typings/timeseries'; -import { TimeFormatter } from '../../../../../common/utils/formatters'; +import type { Coordinate } from '../../../../../typings/timeseries'; +import type { TimeFormatter } from '../../../../../common/utils/formatters'; export function getResponseTimeTickFormatter(formatter: TimeFormatter) { return (t: number) => formatter(t).formatted; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx index 06ca3ad46bf3a..f0a20e78ed0e4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_charts/index.tsx @@ -22,7 +22,7 @@ import { isOpenTelemetryAgentName, isRumAgentName, } from '../../../../../common/agent_name'; -import { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../typings/es_schemas/ui/fields/agent'; export function TransactionCharts({ kuery, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_coldstart_rate_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_coldstart_rate_chart/index.tsx index 701c5eaa12db3..5e79fa002dc1b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_coldstart_rate_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/transaction_coldstart_rate_chart/index.tsx @@ -17,7 +17,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import { usePreviousPeriodLabel } from '../../../../hooks/use_previous_period_text'; import { isTimeComparison } from '../../time_comparison/get_comparison_options'; -import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asPercent } from '../../../../../common/utils/formatters'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { TimeseriesChartWithContext } from '../timeseries_chart_with_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/treemap_chart/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/treemap_chart/index.tsx index 05685a608487d..02a7d045ef802 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/treemap_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/charts/treemap_chart/index.tsx @@ -5,11 +5,12 @@ * 2.0. */ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '@elastic/charts'; +import type { Datum } from '@elastic/charts'; +import { Chart, Partition, PartitionLayout } from '@elastic/charts'; import { euiPaletteColorBlind } from '@elastic/eui'; import { percentValueGetter } from '@elastic/charts/dist/chart_types/partition_chart/layout/config'; import { isEmpty } from 'lodash'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { ChartContainer } from '../chart_container'; type DataType = Array<{ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/critical_path_to_flamegraph.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/critical_path_to_flamegraph.ts index ff144973920e5..72e83a78d23e9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/critical_path_to_flamegraph.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/critical_path_to_flamegraph.ts @@ -10,10 +10,8 @@ import { memoize, sumBy } from 'lodash'; import { lighten, parseToRgb } from 'polished'; import seedrandom from 'seedrandom'; import type { CriticalPathResponse } from '../../../../server/routes/traces/get_aggregated_critical_path'; -import { - CriticalPathTreeNode, - getAggregatedCriticalPathRootNodes, -} from '../../../../common/critical_path/get_aggregated_critical_path_root_nodes'; +import type { CriticalPathTreeNode } from '../../../../common/critical_path/get_aggregated_critical_path_root_nodes'; +import { getAggregatedCriticalPathRootNodes } from '../../../../common/critical_path/get_aggregated_critical_path_root_nodes'; const lightenColor = lighten(0.2); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/index.tsx index cf5bad7592374..988d2ef547581 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/critical_path_flamegraph/index.tsx @@ -4,14 +4,16 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Chart, Datum, Flame, Settings, Tooltip } from '@elastic/charts'; +import type { Datum } from '@elastic/charts'; +import { Chart, Flame, Settings, Tooltip } from '@elastic/charts'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, euiPaletteColorBlind } from '@elastic/eui'; import { css } from '@emotion/css'; import { useChartThemes } from '@kbn/observability-shared-plugin/public'; import { uniqueId } from 'lodash'; import React, { useMemo, useRef } from 'react'; import { i18n } from '@kbn/i18n'; -import { FETCH_STATUS, useFetcher, isPending } from '../../../hooks/use_fetcher'; +import type { FETCH_STATUS } from '../../../hooks/use_fetcher'; +import { useFetcher, isPending } from '../../../hooks/use_fetcher'; import { CriticalPathFlamegraphTooltip } from './critical_path_flamegraph_tooltip'; import { criticalPathToFlamegraph } from './critical_path_to_flamegraph'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/date_picker.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/date_picker.test.tsx index 4e862d044bb3c..5f2b34b72615f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/date_picker.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/date_picker.test.tsx @@ -8,7 +8,8 @@ import { EuiSuperDatePicker } from '@elastic/eui'; import { waitFor } from '@testing-library/react'; import { mount } from 'enzyme'; -import { createMemoryHistory, MemoryHistory } from 'history'; +import type { MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; import React from 'react'; import { useLocation } from 'react-router-dom'; import qs from 'query-string'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/index.tsx index cfade20f548d0..ddaac8d8b1f3e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/date_picker/index.tsx @@ -12,7 +12,7 @@ import { UI_SETTINGS } from '@kbn/data-plugin/common'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { clearCache } from '../../../services/rest/call_api'; import { fromQuery, toQuery } from '../links/url_helpers'; -import { TimePickerQuickRange } from './typings'; +import type { TimePickerQuickRange } from './typings'; export function DatePicker({ rangeFrom, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/get_span_metric_columns.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/get_span_metric_columns.tsx index 567b635f1eb42..f6a33c9afa3cb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/get_span_metric_columns.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/get_span_metric_columns.tsx @@ -9,14 +9,15 @@ import { EuiFlexGroup, EuiFlexItem, EuiIconTip, RIGHT_ALIGNMENT } from '@elastic import { i18n } from '@kbn/i18n'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; import { ListMetric } from '../list_metric'; -import { ITableColumn } from '../managed_table'; -import { FETCH_STATUS, isPending } from '../../../hooks/use_fetcher'; +import type { ITableColumn } from '../managed_table'; +import type { FETCH_STATUS } from '../../../hooks/use_fetcher'; +import { isPending } from '../../../hooks/use_fetcher'; import { asMillisecondDuration, asPercent, asTransactionRate, } from '../../../../common/utils/formatters'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { ImpactBar } from '../impact_bar'; import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/index.tsx index 48b8e6ebc7d09..6266091a3c21b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependencies_table/index.tsx @@ -8,14 +8,16 @@ import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ConnectionStatsItemWithComparisonData } from '../../../../common/connections'; +import type { ConnectionStatsItemWithComparisonData } from '../../../../common/connections'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { EmptyMessage } from '../empty_message'; -import { ITableColumn, ManagedTable } from '../managed_table'; +import type { ITableColumn } from '../managed_table'; +import { ManagedTable } from '../managed_table'; import { OverviewTableContainer } from '../overview_table_container'; import { TruncateWithTooltip } from '../truncate_with_tooltip'; -import { getSpanMetricColumns, SpanMetricGroup } from './get_span_metric_columns'; +import type { SpanMetricGroup } from './get_span_metric_columns'; +import { getSpanMetricColumns } from './get_span_metric_columns'; export type DependenciesItem = Omit & { name: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_failed_transaction_rate_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_failed_transaction_rate_chart.tsx index 2b6a146050967..d0ebfd148ec7f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_failed_transaction_rate_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_failed_transaction_rate_chart.tsx @@ -11,11 +11,11 @@ import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { asPercent } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { TimeseriesChartWithContext } from '../charts/timeseries_chart_with_context'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; import { getComparisonChartTheme } from '../time_comparison/get_comparison_chart_theme'; -import { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; +import type { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; import { useSearchServiceDestinationMetrics } from '../../../context/time_range_metadata/use_search_service_destination_metrics'; function yLabelFormat(y?: number | null) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_latency_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_latency_chart.tsx index 1305fc9fd9386..0d4fe5d5840a0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_latency_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_latency_chart.tsx @@ -11,12 +11,12 @@ import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { getDurationFormatter } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { TimeseriesChartWithContext } from '../charts/timeseries_chart_with_context'; import { getMaxY, getResponseTimeTickFormatter } from '../charts/transaction_charts/helper'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; import { getComparisonChartTheme } from '../time_comparison/get_comparison_chart_theme'; -import { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; +import type { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; import { useSearchServiceDestinationMetrics } from '../../../context/time_range_metadata/use_search_service_destination_metrics'; export function DependencyLatencyChart({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_metric_charts_route_params.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_metric_charts_route_params.ts index f348a257462e0..10b8fe1e9b95a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_metric_charts_route_params.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_metric_charts_route_params.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TypeOf } from '@kbn/typed-react-router-config'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; export type DependencyMetricChartsRouteParams = Pick< { spanName?: string } & TypeOf< diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_throughput_chart.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_throughput_chart.tsx index c9487e93e3f06..b55c2a3075d46 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_throughput_chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/dependency_throughput_chart.tsx @@ -11,11 +11,11 @@ import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { asTransactionRate } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; +import type { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { TimeseriesChartWithContext } from '../charts/timeseries_chart_with_context'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; import { getComparisonChartTheme } from '../time_comparison/get_comparison_chart_theme'; -import { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; +import type { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; import { useSearchServiceDestinationMetrics } from '../../../context/time_range_metadata/use_search_service_destination_metrics'; export function DependencyThroughputChart({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/index.tsx index f64d40ca9e88a..7ed5549e2241d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/dependency_metric_charts/index.tsx @@ -12,7 +12,7 @@ import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; import { DependencyFailedTransactionRateChart } from './dependency_failed_transaction_rate_chart'; import { DependencyLatencyChart } from './dependency_latency_chart'; -import { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; +import type { DependencyMetricChartsRouteParams } from './dependency_metric_charts_route_params'; import { DependencyThroughputChart } from './dependency_throughput_chart'; export function DependencyMetricCharts() { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/empty_message.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/empty_message.tsx index 012060cbee375..1ca82d39f0fd6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/empty_message.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/empty_message.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiEmptyPrompt, EuiEmptyPromptProps } from '@elastic/eui'; +import type { EuiEmptyPromptProps } from '@elastic/eui'; +import { EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_filter/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_filter/index.tsx index 782b409957e4d..f950b01c4acc0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_filter/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_filter/index.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { History } from 'history'; +import type { History } from 'history'; import React from 'react'; import { useHistory, useLocation } from 'react-router-dom'; import { fromQuery, toQuery } from '../links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_select/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_select/index.tsx index 0978694116432..902f4ee6afdaa 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_select/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/environment_select/index.tsx @@ -8,7 +8,8 @@ import { isEmpty } from 'lodash'; import { i18n } from '@kbn/i18n'; import React, { useMemo, useState } from 'react'; import { debounce } from 'lodash'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { getEnvironmentLabel, ENVIRONMENT_NOT_DEFINED, @@ -17,7 +18,7 @@ import { import { SERVICE_ENVIRONMENT } from '../../../../common/es_fields/apm'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; function getEnvironmentOptions(environments: Environment[]) { const environmentOptions = environments diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/errors_table/get_columns.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/errors_table/get_columns.tsx index 1cbd4c108509a..56f424ef46b31 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/errors_table/get_columns.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/errors_table/get_columns.tsx @@ -5,14 +5,15 @@ * 2.0. */ -import { EuiBasicTableColumn, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import React from 'react'; import styled from '@emotion/styled'; import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { asInteger } from '../../../../common/utils/formatters'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { truncate } from '../../../utils/style'; import { SparkPlot } from '../charts/spark_plot'; import { ErrorDetailLink } from '../links/apm/error_detail_link'; @@ -20,7 +21,7 @@ import { ErrorOverviewLink } from '../links/apm/error_overview_link'; import { TimestampTooltip } from '../timestamp_tooltip'; import { TruncateWithTooltip } from '../truncate_with_tooltip'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; const ErrorLink = styled(ErrorOverviewLink)` ${truncate('100%')}; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/explore_logs_button.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/explore_logs_button.tsx index 4d09b6bd08fe6..ece78351deed6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/explore_logs_button.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/explore_logs_button.tsx @@ -13,7 +13,8 @@ */ import React from 'react'; -import { AllDatasetsLocatorParams, ALL_DATASETS_LOCATOR_ID } from '@kbn/deeplinks-observability'; +import type { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability'; +import { ALL_DATASETS_LOCATOR_ID } from '@kbn/deeplinks-observability'; import { EuiButtonEmpty } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/logs_explorer_locator_config.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/logs_explorer_locator_config.ts index e5baa87856b31..39279f46e6587 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/logs_explorer_locator_config.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/explore_logs_button/logs_explorer_locator_config.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability'; -import { LocatorPublic } from '@kbn/share-plugin/common'; +import type { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; import { getRouterLinkProps } from '@kbn/router-utils'; -import { RouterLinkProps } from '@kbn/router-utils/src/get_router_link_props'; +import type { RouterLinkProps } from '@kbn/router-utils/src/get_router_link_props'; export const buildLogsExplorerLocatorConfig = ({ locator, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/get_bool_filter.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/get_bool_filter.ts index 42575126aaab5..4adfe0ec68a6c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/get_bool_filter.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/get_bool_filter.ts @@ -14,9 +14,9 @@ import { TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; -import { UIProcessorEvent } from '../../../common/processor_event'; +import type { UIProcessorEvent } from '../../../common/processor_event'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { ApmUrlParams } from '../../context/url_params_context/types'; +import type { ApmUrlParams } from '../../context/url_params_context/types'; export function getBoolFilter({ groupId, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/is_route_with_time_range.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/is_route_with_time_range.ts index f5ec673745939..6dfd7f815d57e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/is_route_with_time_range.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/is_route_with_time_range.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import type { ApmRouter } from '../routing/apm_route_config'; export function isRouteWithTimeRange({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/index.tsx index fdd993fab6c28..fe127e555ee2f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/index.tsx @@ -5,10 +5,12 @@ * 2.0. */ import { castArray } from 'lodash'; -import React, { TableHTMLAttributes } from 'react'; -import { EuiTable, EuiTableProps, EuiTableBody, EuiTableRow, EuiTableRowCell } from '@elastic/eui'; +import type { TableHTMLAttributes } from 'react'; +import React from 'react'; +import type { EuiTableProps } from '@elastic/eui'; +import { EuiTable, EuiTableBody, EuiTableRow, EuiTableRowCell } from '@elastic/eui'; import { FormattedValue } from './formatted_value'; -import { KeyValuePair } from '../../../../common/utils/flatten_object'; +import type { KeyValuePair } from '../../../../common/utils/flatten_object'; export function KeyValueTable({ keyValuePairs, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx index 395003e7b2439..4942f61ccb4ba 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { KeyValueTable } from '.'; -import { render } from '@testing-library/react'; +import type { render } from '@testing-library/react'; import { renderWithTheme } from '../../../utils/test_helpers'; function getKeys(output: ReturnType) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/index.tsx index 373482675854f..3d800d6bb4167 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/index.tsx @@ -5,12 +5,12 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { i18n } from '@kbn/i18n'; import { uniqueId } from 'lodash'; import React, { useState } from 'react'; import { useHistory, useLocation } from 'react-router-dom'; -import { QuerySuggestion } from '@kbn/unified-search-plugin/public'; +import type { QuerySuggestion } from '@kbn/unified-search-plugin/public'; import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; import type { DataView } from '@kbn/data-views-plugin/public'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/utils.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/utils.ts index 805e162c67fe6..28728a170f28c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/utils.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/kuery_bar/utils.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { History } from 'history'; +import type { History } from 'history'; import { isEmpty } from 'lodash'; import { push } from '../links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/license_prompt/license_prompt.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/license_prompt/license_prompt.stories.tsx index 3ab6cfd69888a..f415140fd0a82 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/license_prompt/license_prompt.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/license_prompt/license_prompt.stories.tsx @@ -5,12 +5,11 @@ * 2.0. */ -import React, { ComponentProps, ComponentType } from 'react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { LicensePrompt } from '.'; -import { - ApmPluginContext, - ApmPluginContextValue, -} from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import { ApmPluginContext } from '../../../context/apm_plugin/apm_plugin_context'; const contextMock = { core: { http: { basePath: { prepend: () => {} } } }, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/agent_configuration_links.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/agent_configuration_links.tsx index b518cb23d91ff..2e1030653d5c6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/agent_configuration_links.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/agent_configuration_links.tsx @@ -5,8 +5,8 @@ * 2.0. */ -import { IBasePath } from '@kbn/core/public'; -import { AgentConfigurationIntake } from '../../../../../common/agent_configuration/configuration_types'; +import type { IBasePath } from '@kbn/core/public'; +import type { AgentConfigurationIntake } from '../../../../../common/agent_configuration/configuration_types'; import { getLegacyApmHref } from './apm_link'; export function editAgentConfigurationHref( diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx index 5065ab1689f5f..4f889f2eda5a6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../../utils/test_helpers'; import { LegacyAPMLink } from './apm_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.tsx index 8fdbec144a4b8..6d3d57bc6b660 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/apm_link.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { EuiLink, EuiLinkAnchorProps } from '@elastic/eui'; -import { IBasePath } from '@kbn/core/public'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; +import { EuiLink } from '@elastic/eui'; +import type { IBasePath } from '@kbn/core/public'; import { pick } from 'lodash'; import React from 'react'; import { useLocation } from 'react-router-dom'; @@ -14,7 +15,8 @@ import url from 'url'; import { pickKeys } from '../../../../../common/utils/pick_keys'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; -import { APMQueryParams, fromQuery, toQuery } from '../url_helpers'; +import type { APMQueryParams } from '../url_helpers'; +import { fromQuery, toQuery } from '../url_helpers'; interface Props extends EuiLinkAnchorProps { path?: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_detail_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_detail_link.tsx index 0f06e698acaee..74ef4682f4cc1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_detail_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_detail_link.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { LegacyAPMLink, APMLinkExtendProps } from './apm_link'; +import type { APMLinkExtendProps } from './apm_link'; +import { LegacyAPMLink } from './apm_link'; interface Props extends APMLinkExtendProps { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_overview_link.tsx index 58bc9cd75492e..ed624eac3fcb4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/error_overview_link.tsx @@ -7,9 +7,9 @@ import React from 'react'; import { EuiLink } from '@elastic/eui'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { useApmRouter } from '../../../../hooks/use_apm_router'; -import { ApmRoutes } from '../../../routing/apm_route_config'; +import type { ApmRoutes } from '../../../routing/apm_route_config'; interface Props { children: React.ReactNode; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/home_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/home_link.tsx index 78d0d4f9fb000..9d7b27b24daed 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/home_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/home_link.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { LegacyAPMLink, APMLinkExtendProps } from './apm_link'; +import type { APMLinkExtendProps } from './apm_link'; +import { LegacyAPMLink } from './apm_link'; function HomeLink(props: APMLinkExtendProps) { return ; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/metric_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/metric_overview_link.tsx index 5c2dd2b4b6705..e77b77537ce52 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/metric_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/metric_overview_link.tsx @@ -6,8 +6,9 @@ */ import React from 'react'; -import { APMQueryParams } from '../url_helpers'; -import { LegacyAPMLink, APMLinkExtendProps, useAPMHref } from './apm_link'; +import type { APMQueryParams } from '../url_helpers'; +import type { APMLinkExtendProps } from './apm_link'; +import { LegacyAPMLink, useAPMHref } from './apm_link'; const persistedFilters: Array = [ 'host', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/crash_detail_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/crash_detail_link.tsx index 7e72af09bb5c5..676454e2e54ae 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/crash_detail_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/crash_detail_link.tsx @@ -6,9 +6,9 @@ */ import React from 'react'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { EuiLink } from '@elastic/eui'; -import { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; +import type { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_detail_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_detail_link.tsx index 2a7cc1566514c..e5caddd300f84 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_detail_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_detail_link.tsx @@ -6,10 +6,10 @@ */ import React from 'react'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { EuiLink } from '@elastic/eui'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; -import { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; +import type { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; interface Props { children: React.ReactNode; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_overview_link.tsx index 4c066b2656e0b..f78eaefb39ac8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/mobile/error_overview_link.tsx @@ -7,9 +7,9 @@ import React from 'react'; import { EuiLink } from '@elastic/eui'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; -import { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; +import type { mobileServiceDetailRoute } from '../../../../routing/mobile_service_detail'; interface Props { children: React.ReactNode; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_inventory_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_inventory_link.tsx index c4a589dca3ad8..4d95f3c70a483 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_inventory_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_inventory_link.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { APMQueryParams } from '../url_helpers'; +import type { APMQueryParams } from '../url_helpers'; import { useAPMHref } from './apm_link'; const persistedFilters: Array = ['host', 'agentName']; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/index.tsx index b6d7d1789fac9..6239c0b4d6071 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/index.tsx @@ -9,14 +9,14 @@ import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiText } from '@elastic/eui'; import { AgentIcon } from '@kbn/custom-icons'; import { i18n } from '@kbn/i18n'; import styled from '@emotion/styled'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import React from 'react'; import { isMobileAgentName } from '../../../../../../common/agent_name'; import { NOT_AVAILABLE_LABEL } from '../../../../../../common/i18n'; -import { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../../../typings/es_schemas/ui/fields/agent'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; import { truncate, unit } from '../../../../../utils/style'; -import { ApmRoutes } from '../../../../routing/apm_route_config'; +import type { ApmRoutes } from '../../../../routing/apm_route_config'; import { PopoverTooltip } from '../../../popover_tooltip'; import { TruncateWithTooltip } from '../../../truncate_with_tooltip'; import { MaxGroupsMessage, OTHER_SERVICE_NAME } from '../max_groups_message'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/service_link.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/service_link.stories.tsx index 55033ed6349ae..ea313171a5626 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/service_link.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_link/service_link.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import React, { ComponentProps, ComponentType } from 'react'; +import type { Story } from '@storybook/react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { ServiceLink } from '.'; import { MockApmPluginStorybook } from '../../../../../context/apm_plugin/mock_apm_plugin_storybook'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_map_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_map_link.tsx index e2e4afd79c0d8..f9958e588ba73 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_map_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_map_link.tsx @@ -7,7 +7,8 @@ import { EuiLink } from '@elastic/eui'; import React from 'react'; -import { APMLinkExtendProps, useAPMHref } from './apm_link'; +import type { APMLinkExtendProps } from './apm_link'; +import { useAPMHref } from './apm_link'; export function useServiceMapHref(serviceName?: string) { const path = serviceName ? `/services/${serviceName}/service-map` : '/service-map'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_metric_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_metric_overview_link.tsx index 2032e15266dbf..7b99e981e9bb1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_metric_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_metric_overview_link.tsx @@ -7,8 +7,9 @@ import { EuiLink } from '@elastic/eui'; import React from 'react'; -import { APMQueryParams } from '../url_helpers'; -import { APMLinkExtendProps, useAPMHref } from './apm_link'; +import type { APMQueryParams } from '../url_helpers'; +import type { APMLinkExtendProps } from './apm_link'; +import { useAPMHref } from './apm_link'; interface Props extends APMLinkExtendProps { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_overview_link.tsx index e13a38143ef25..7ea28dfbebeac 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_node_overview_link.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { APMQueryParams } from '../url_helpers'; +import type { APMQueryParams } from '../url_helpers'; import { useAPMHref } from './apm_link'; const persistedFilters: Array = [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_transactions_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_transactions_overview_link.tsx index 42b345f330d49..edf62a082bc56 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_transactions_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/service_transactions_overview_link.tsx @@ -7,8 +7,9 @@ import { EuiLink } from '@elastic/eui'; import React from 'react'; -import { APMQueryParams } from '../url_helpers'; -import { APMLinkExtendProps, useAPMHref } from './apm_link'; +import type { APMQueryParams } from '../url_helpers'; +import type { APMLinkExtendProps } from './apm_link'; +import { useAPMHref } from './apm_link'; import { removeUndefinedProps } from '../../../../context/url_params_context/helpers'; const persistedFilters: Array = [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/trace_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/trace_overview_link.tsx index 9353de8162b08..2462c5905c5e4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/trace_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/trace_overview_link.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { APMQueryParams } from '../url_helpers'; +import type { APMQueryParams } from '../url_helpers'; import { useAPMHref } from './apm_link'; const persistedFilters: Array = [ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.test.tsx index bbd4f162fe361..5c405c711c8b3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.test.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../../../utils/test_helpers'; import { TransactionDetailLink } from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.tsx index 4cdd3fd5a6398..78904a0d8c389 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_detail_link/index.tsx @@ -17,8 +17,9 @@ import { unit } from '../../../../../utils/style'; import { PopoverTooltip } from '../../../popover_tooltip'; import { getComparisonEnabled } from '../../../time_comparison/get_comparison_enabled'; import { TruncateWithTooltip } from '../../../truncate_with_tooltip'; -import { APMQueryParams } from '../../url_helpers'; -import { APMLinkExtendProps, getLegacyApmHref } from '../apm_link'; +import type { APMQueryParams } from '../../url_helpers'; +import type { APMLinkExtendProps } from '../apm_link'; +import { getLegacyApmHref } from '../apm_link'; import { MaxGroupsMessage } from '../max_groups_message'; export const txGroupsDroppedBucketName = '_other'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_overview_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_overview_link.tsx index 1098864dbc28f..93e0382794b76 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_overview_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/apm/transaction_overview_link.tsx @@ -10,7 +10,8 @@ import React from 'react'; import { useLocation } from 'react-router-dom'; import { removeUndefinedProps } from '../../../../context/url_params_context/helpers'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; -import { APMLinkExtendProps, getLegacyApmHref } from './apm_link'; +import type { APMLinkExtendProps } from './apm_link'; +import { getLegacyApmHref } from './apm_link'; interface Props extends APMLinkExtendProps { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.stories.tsx index b240cafb20ed2..0a9798556ff22 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import React, { ComponentProps, ComponentType } from 'react'; +import type { Story } from '@storybook/react'; +import type { ComponentProps, ComponentType } from 'react'; +import React from 'react'; import { MockApmPluginStorybook } from '../../../context/apm_plugin/mock_apm_plugin_storybook'; import { DependencyLink } from './dependency_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.tsx index d202c1cb770b7..4aade4a60a5d3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/dependency_link.tsx @@ -6,12 +6,12 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import React from 'react'; import styled from '@emotion/styled'; import { useApmRouter } from '../../../hooks/use_apm_router'; import { truncate } from '../../../utils/style'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; import { SpanIcon } from '../span_icon'; const StyledLink = styled(EuiLink)` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_button.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_button.test.tsx index 3cbe8d7e31632..d02280769ba9f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_button.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_button.test.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { shallow, ShallowWrapper } from 'enzyme'; +import type { ShallowWrapper } from 'enzyme'; +import { shallow } from 'enzyme'; import React from 'react'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { DiscoverErrorLink } from './discover_error_link'; describe('DiscoverErrorLink without kuery', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.test.tsx index 3cbe8d7e31632..d02280769ba9f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.test.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { shallow, ShallowWrapper } from 'enzyme'; +import type { ShallowWrapper } from 'enzyme'; +import { shallow } from 'enzyme'; import React from 'react'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { DiscoverErrorLink } from './discover_error_link'; describe('DiscoverErrorLink without kuery', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.tsx index a32c01f3b15e5..4194c30fa7ec1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_error_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { ERROR_GROUP_ID, SERVICE_NAME } from '../../../../../common/es_fields/apm'; import { DiscoverLink } from './discover_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_link.tsx index 31e214c679f7e..eb3a86e16f4ee 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_link.tsx @@ -6,8 +6,8 @@ */ import { EuiLink, EuiLoadingSpinner } from '@elastic/eui'; -import { Location } from 'history'; -import { IBasePath } from '@kbn/core/public'; +import type { Location } from 'history'; +import type { IBasePath } from '@kbn/core/public'; import React from 'react'; import { useLocation } from 'react-router-dom'; import rison from '@kbn/rison'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx index e1defd9d3f592..4566141871e5e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx @@ -5,11 +5,11 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; -import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; -import { Span } from '../../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; +import type { Span } from '../../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import * as useAdHocApmDataView from '../../../../hooks/use_adhoc_apm_data_view'; import { getRenderedHref } from '../../../../utils/test_helpers'; import { DiscoverErrorLink } from './discover_error_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_span_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_span_link.tsx index 189353cea7403..22e08776db1b6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_span_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_span_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { SPAN_ID } from '../../../../../common/es_fields/apm'; import { DiscoverLink } from './discover_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_button.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_button.test.tsx index b8b021f558c0b..8fd17b34fec0b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_button.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_button.test.tsx @@ -7,7 +7,7 @@ import { shallow } from 'enzyme'; import React from 'react'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { DiscoverTransactionLink, getDiscoverQuery } from './discover_transaction_link'; import mockTransaction from './__fixtures__/mock_transaction.json'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.test.tsx index 61f2a1090cd37..7eef258f9c28e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { getDiscoverQuery } from './discover_transaction_link'; function getMockTransaction() { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.tsx index e4e306c7430d4..862b955d8e129 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/discover_links/discover_transaction_link.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { PROCESSOR_EVENT, TRACE_ID, TRANSACTION_ID } from '../../../../../common/es_fields/apm'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { DiscoverLink } from './discover_link'; export function getDiscoverQuery(transaction: Transaction) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/elastic_docs_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/elastic_docs_link.tsx index df1f5694783d0..5293a8152801a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/elastic_docs_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/elastic_docs_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiLink, EuiLinkAnchorProps } from '@elastic/eui'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; +import { EuiLink } from '@elastic/eui'; import React from 'react'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.test.tsx index 17cd3871b9e2d..8449a30baa827 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../utils/test_helpers'; import { InfraLink } from './infra_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.tsx index b98652b710020..aa3a03b96cd2e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/infra_link.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { EuiLink, EuiLinkAnchorProps } from '@elastic/eui'; -import { IBasePath } from '@kbn/core/public'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; +import { EuiLink } from '@elastic/eui'; +import type { IBasePath } from '@kbn/core/public'; import React from 'react'; import url from 'url'; -import { InfraAppId } from '@kbn/observability-shared-plugin/public/infra'; +import type { InfraAppId } from '@kbn/observability-shared-plugin/public/infra'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { fromQuery } from './url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/kibana.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/kibana.ts index 0facd9287e5e1..2076345f63289 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/kibana.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/kibana.ts @@ -6,7 +6,7 @@ */ import rison from '@kbn/rison'; -import { IBasePath } from '@kbn/core/public'; +import type { IBasePath } from '@kbn/core/public'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; export function getUpgradeAssistantHref(basePath: IBasePath) { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx index 703bca0f5364e..0d400d861ab4c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLExplorerLink } from './mlexplorer_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.tsx index af5ec49635db0..fcb55c1ad2ffc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { EuiLink } from '@elastic/eui'; import { useMlHref, ML_PAGES } from '@kbn/ml-plugin/public'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx index 88ac543a745df..0fae49b449c54 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLManageJobsLink } from './mlmanage_jobs_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx index 05f891409f98f..9af085372fa80 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import React from 'react'; import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLSingleMetricLink } from './mlsingle_metric_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.tsx index 122e790efb4c6..7c9b53b309b41 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { EuiLink } from '@elastic/eui'; import { useMlHref, ML_PAGES } from '@kbn/ml-plugin/public'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/rison_helpers.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/rison_helpers.ts index 7bc02b407c823..9dbd56b70c935 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/rison_helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/rison_helpers.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import { toQuery } from './url_helpers'; export interface TimepickerRisonData { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/url_helpers.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/url_helpers.ts index 93ecb3a8d4855..06e3b31792858 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/links/url_helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/links/url_helpers.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { History } from 'history'; +import type { History } from 'history'; import { parse, stringify } from 'query-string'; import { url } from '@kbn/kibana-utils-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/list_metric.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/list_metric.tsx index df70ced1daa53..1bb8df929a066 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/list_metric.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/list_metric.tsx @@ -6,7 +6,8 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; -import React, { ComponentProps } from 'react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { SparkPlot } from './charts/spark_plot'; interface ListMetricProps extends ComponentProps { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/managed_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/managed_table/index.tsx index 908be6a16dcaa..ac7d89eea7b79 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/managed_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/managed_table/index.tsx @@ -6,9 +6,11 @@ */ import { i18n } from '@kbn/i18n'; -import { EuiBasicTable, EuiBasicTableColumn } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable } from '@elastic/eui'; import { isEmpty, merge, orderBy } from 'lodash'; -import React, { ReactNode, useCallback, useEffect, useMemo, useState } from 'react'; +import type { ReactNode } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; import { fromQuery, toQuery } from '../links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/error_metadata/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/error_metadata/index.tsx index dab585180fce9..0ae0aef46ef1f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/error_metadata/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/error_metadata/index.tsx @@ -7,7 +7,8 @@ import React, { useMemo } from 'react'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { APMError, AT_TIMESTAMP } from '@kbn/apm-types'; +import type { APMError } from '@kbn/apm-types'; +import { AT_TIMESTAMP } from '@kbn/apm-types'; import { getSectionsFromFields } from '../helper'; import { MetadataTable } from '..'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/index.tsx index 3056c173caa46..c8807bf55292f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/index.tsx @@ -26,7 +26,7 @@ import { fromQuery, toQuery } from '../links/url_helpers'; import { filterSectionsByTerm } from './helper'; import { Section } from './section'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { SectionDescriptor } from './types'; +import type { SectionDescriptor } from './types'; interface Props { sections: SectionDescriptor[]; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx index e43e80ff51119..d4db1d76346ad 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx @@ -6,7 +6,8 @@ */ import { render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MetadataTable } from '.'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/span_metadata/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/span_metadata/index.tsx index f98956e93745b..9c87d548cdd77 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/span_metadata/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/span_metadata/index.tsx @@ -7,7 +7,7 @@ import React, { useMemo } from 'react'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Span } from '../../../../../typings/es_schemas/ui/span'; +import type { Span } from '../../../../../typings/es_schemas/ui/span'; import { getSectionsFromFields } from '../helper'; import { MetadataTable } from '..'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/transaction_metadata/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/transaction_metadata/index.tsx index ac9bf7af55790..e2dc1901bfac8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/transaction_metadata/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/metadata_table/transaction_metadata/index.tsx @@ -7,7 +7,7 @@ import React, { useMemo } from 'react'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { getSectionsFromFields } from '../helper'; import { MetadataTable } from '..'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/not_available_popover/not_available_apm_metrics.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/not_available_popover/not_available_apm_metrics.tsx index 66c466502bdd1..3cd11802d2dcf 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/not_available_popover/not_available_apm_metrics.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/not_available_popover/not_available_apm_metrics.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { PopoverBadge } from '../popover_badge'; import { useKibana } from '../../../context/kibana_context/use_kibana'; -import { ApmPluginStartDeps, ApmServices } from '../../../plugin'; +import type { ApmPluginStartDeps, ApmServices } from '../../../plugin'; import { AddApmData } from '../add_data_buttons/buttons'; export function NotAvailableApmMetrics() { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/overview_table_container/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/overview_table_container/index.tsx index 8c2f62f7998b3..93f2b15ff4deb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/overview_table_container/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/overview_table_container/index.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/flamegraph/flamegraph_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/flamegraph/flamegraph_link.tsx index 3ead8b10b0f66..b6bf28a95e879 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/flamegraph/flamegraph_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/flamegraph/flamegraph_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexGroupProps, EuiFlexItem, EuiLink } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; import { useProfilingPlugin } from '../../../../hooks/use_profiling_plugin'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/top_functions/top_functions_link.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/top_functions/top_functions_link.tsx index 9c0edafb6ce55..96fb900722576 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/top_functions/top_functions_link.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/profiling/top_functions/top_functions_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexGroupProps, EuiFlexItem, EuiLink } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; import { useProfilingPlugin } from '../../../../hooks/use_profiling_plugin'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.test.tsx index 75b18be29b422..04f1b4f39352f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.test.tsx @@ -6,7 +6,8 @@ */ import { getByTestId, fireEvent, getByText, act } from '@testing-library/react'; -import { createMemoryHistory, MemoryHistory } from 'history'; +import type { MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; import React from 'react'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; @@ -18,7 +19,7 @@ import * as useApmDataViewHook from '../../../hooks/use_adhoc_apm_data_view'; import * as useServiceTransactionTypesHook from '../../../context/apm_service/use_service_transaction_types_fetcher'; import { renderWithTheme } from '../../../utils/test_helpers'; import { fromQuery } from '../links/url_helpers'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { SearchBar } from './search_bar'; import { ApmTimeRangeMetadataContextProvider } from '../../../context/time_range_metadata/time_range_metadata_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.tsx index 57033eb5f1d19..dd82f303feaca 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/search_bar/search_bar.tsx @@ -4,9 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiFlexGroup, EuiFlexGroupProps, EuiFlexItem, EuiSpacer } from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import React from 'react'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; import { TimeComparison } from '../time_comparison'; import { TransactionTypeSelect } from '../transaction_type_select'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx index 23a1ad7eddaa3..ca46895b8f24c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/select_with_placeholder/index.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { EuiSelect, EuiSelectProps } from '@elastic/eui'; +import type { EuiSelectProps } from '@elastic/eui'; +import { EuiSelect } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { i18n } from '@kbn/i18n'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/cloud_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/cloud_details.tsx index ce79f9132dce9..9a19e89385ece 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/cloud_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/cloud_details.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiBadge, EuiDescriptionList, EuiDescriptionListProps } from '@elastic/eui'; +import type { EuiDescriptionListProps } from '@elastic/eui'; +import { EuiBadge, EuiDescriptionList } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/container_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/container_details.tsx index 2d558c3cfee8e..652fa6a2eae8c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/container_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/container_details.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { EuiDescriptionList, EuiDescriptionListProps, EuiBadge } from '@elastic/eui'; +import type { EuiDescriptionListProps } from '@elastic/eui'; +import { EuiDescriptionList, EuiBadge } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { asInteger } from '../../../../common/utils/formatters'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/icon_popover.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/icon_popover.tsx index 5c6a5fc54d335..db4a32e1589d8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/icon_popover.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/icon_popover.tsx @@ -7,7 +7,7 @@ import { EuiButtonIcon, EuiSkeletonText, EuiPopover, EuiPopoverTitle } from '@elastic/eui'; import React from 'react'; -import { PopoverItem } from '.'; +import type { PopoverItem } from '.'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; interface IconPopoverProps { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.test.tsx index 577c5267c1589..77546f9b31369 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.test.tsx @@ -6,13 +6,14 @@ */ import { fireEvent, render } from '@testing-library/react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { merge } from 'lodash'; // import { renderWithTheme } from '../../../../utils/test_helpers'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MockUrlParamsContextProvider } from '../../../context/url_params_context/mock_url_params_context_provider'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.tsx index a7c4b2311508a..a72ead1b2963c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/index.tsx @@ -7,14 +7,11 @@ import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { - CloudProvider, - getAgentIcon, - getCloudProviderIcon, - getServerlessIcon, -} from '@kbn/custom-icons'; -import React, { ReactChild, useState } from 'react'; -import { ContainerType } from '../../../../common/service_metadata'; +import type { CloudProvider } from '@kbn/custom-icons'; +import { getAgentIcon, getCloudProviderIcon, getServerlessIcon } from '@kbn/custom-icons'; +import type { ReactChild } from 'react'; +import React, { useState } from 'react'; +import type { ContainerType } from '../../../../common/service_metadata'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { CloudDetails } from './cloud_details'; import { ServerlessDetails } from './serverless_details'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/otel_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/otel_details.tsx index 04aa2b6f56838..fb0a44f31f043 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/otel_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/otel_details.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiDescriptionList, EuiDescriptionListProps } from '@elastic/eui'; +import type { EuiDescriptionListProps } from '@elastic/eui'; +import { EuiDescriptionList } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/serverless_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/serverless_details.tsx index 7584097966932..672b15e3105a4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/serverless_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/serverless_details.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiBadge, EuiDescriptionList, EuiDescriptionListProps } from '@elastic/eui'; +import type { EuiDescriptionListProps } from '@elastic/eui'; +import { EuiBadge, EuiDescriptionList } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_details.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_details.tsx index e43d444fcf493..991f1b0d327e1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_details.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_details.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiDescriptionList, EuiDescriptionListProps } from '@elastic/eui'; +import type { EuiDescriptionListProps } from '@elastic/eui'; +import { EuiDescriptionList } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx index 468cad227e71d..a3a1f47425788 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx @@ -5,11 +5,12 @@ * 2.0. */ import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; -import { Meta, Story } from '@storybook/react'; +import type { Meta, Story } from '@storybook/react'; import React from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { APIReturnType, createCallApmApi } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { ServiceIcons } from '.'; type ServiceDetailsReturnType = diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/index.tsx index e46af11ffbe50..b0bef413b5d84 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/index.tsx @@ -4,20 +4,15 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiFlexGroup, - EuiFlexItem, - EuiLoadingSpinner, - EuiSelect, - EuiSelectOption, -} from '@elastic/eui'; +import type { EuiSelectOption } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiSelect } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo, useState } from 'react'; -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { isPending, useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { SpanLinksCount } from '../../app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; +import type { SpanLinksCount } from '../../app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; import { KueryBar } from '../kuery_bar'; import { SpanLinksCallout } from './span_links_callout'; import { SpanLinksTable } from './span_links_table'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_tab_content.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_tab_content.tsx index 8d85763f7e6c0..e368211cfef6b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_tab_content.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_tab_content.tsx @@ -7,9 +7,9 @@ import { EuiNotificationBadge, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SpanLinks } from '.'; -import { SpanLinksCount } from '../../app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; +import type { SpanLinksCount } from '../../app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; import { TechnicalPreviewBadge } from '../technical_preview_badge'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_table.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_table.tsx index 357ad7e9deb11..3f9008d624154 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/span_links/span_links_table.tsx @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { EuiBasicTableColumn } from '@elastic/eui'; import { - EuiBasicTableColumn, EuiButtonEmpty, EuiButtonIcon, EuiCopy, @@ -19,7 +19,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; -import { SpanLinkDetails } from '../../../../common/span_links'; +import type { SpanLinkDetails } from '../../../../common/span_links'; import { asDuration } from '../../../../common/utils/formatters'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useApmRouter } from '../../../hooks/use_apm_router'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.tsx index 9db86f6147eb9..fdc0d1002ec66 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; import { Stacktrace } from '.'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; const Accordion = styled(EuiAccordion)` border-top: ${({ theme }) => theme.euiTheme.border.thin}; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/context.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/context.tsx index a79b5529d2cde..624df9c7b8e7d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/context.tsx @@ -14,7 +14,7 @@ import python from 'react-syntax-highlighter/dist/cjs/languages/hljs/python'; import ruby from 'react-syntax-highlighter/dist/cjs/languages/hljs/ruby'; import xcode from 'react-syntax-highlighter/dist/cjs/styles/hljs/xcode'; import styled from '@emotion/styled'; -import { StackframeWithLineContext } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { StackframeWithLineContext } from '../../../../typings/es_schemas/raw/fields/stackframe'; SyntaxHighlighter.registerLanguage('javascript', javascript); SyntaxHighlighter.registerLanguage('python', python); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx index 73803f70d6954..7e3cf4b7f8902 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { renderWithTheme } from '../../../utils/test_helpers'; import { FrameHeading } from './frame_heading'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.tsx index 734ac85cf40e6..20c470b45bc7b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading.tsx @@ -5,14 +5,15 @@ * 2.0. */ -import React, { ComponentType } from 'react'; +import type { ComponentType } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; import { useEuiFontSize } from '@elastic/eui'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { FrameHeadingRendererProps } from './frame_heading_renderers'; import { CSharpFrameHeadingRenderer, DefaultFrameHeadingRenderer, - FrameHeadingRendererProps, JavaFrameHeadingRenderer, JavaScriptFrameHeadingRenderer, RubyFrameHeadingRenderer, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/c_sharp_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/c_sharp_frame_heading_renderer.tsx index 0664fbf6b1d94..b8c3a47e93a88 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/c_sharp_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/c_sharp_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; import { DefaultFrameHeadingRenderer } from './default_frame_heading_renderer'; export function CSharpFrameHeadingRenderer({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/default_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/default_frame_heading_renderer.tsx index f4a6116fa080a..fa866cb5c396e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/default_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/default_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; export function DefaultFrameHeadingRenderer({ stackframe, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/index.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/index.ts index 3dd235706a4ec..15965aa805878 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/index.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/index.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ComponentType } from 'react'; -import { Stackframe } from '../../../../../typings/es_schemas/raw/fields/stackframe'; +import type { ComponentType } from 'react'; +import type { Stackframe } from '../../../../../typings/es_schemas/raw/fields/stackframe'; export interface FrameHeadingRendererProps { fileDetailComponent: ComponentType>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_frame_heading_renderer.tsx index 4b4864e7f1f76..318d7c32b84c0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; export function JavaFrameHeadingRenderer({ stackframe, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_script_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_script_frame_heading_renderer.tsx index a50f782f19ec2..d17197607bea1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_script_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/java_script_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; export function JavaScriptFrameHeadingRenderer({ stackframe, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/php_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/php_frame_heading_renderer.tsx index 5d80ea85756a3..7bb19fcb0cc2b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/php_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/php_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; export function PhpFrameHeadingRenderer({ stackframe, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/ruby_frame_heading_renderer.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/ruby_frame_heading_renderer.tsx index 0446c790225e5..38d1c9cd248da 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/ruby_frame_heading_renderer.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/frame_heading_renderers/ruby_frame_heading_renderer.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { FrameHeadingRendererProps } from '.'; +import type { FrameHeadingRendererProps } from '.'; export function RubyFrameHeadingRenderer({ stackframe, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/index.tsx index 5f23a99395057..ca220626dc8e2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/index.tsx @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { isEmpty, last } from 'lodash'; import React, { Fragment } from 'react'; import { EuiCodeBlock } from '@elastic/eui'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { EmptyMessage } from '../empty_message'; import { LibraryStacktrace } from './library_stacktrace'; import { Stackframe as StackframeComponent } from './stackframe'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx index b5fe38b6eb663..dd4df07467e29 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx @@ -9,7 +9,7 @@ import { EuiAccordion } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { Stackframe as StackframeComponent } from './stackframe'; const LibraryStacktraceAccordion = styled(EuiAccordion)` diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx index dd7b188b4b552..e9da0bda8aaf2 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx @@ -6,8 +6,9 @@ */ import React from 'react'; -import { ReactWrapper, shallow } from 'enzyme'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { ReactWrapper } from 'enzyme'; +import { shallow } from 'enzyme'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { mountWithTheme } from '../../../utils/test_helpers'; import { Stackframe as StackframeComponent } from './stackframe'; import stacktracesMock from './__fixtures__/stacktraces.json'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.tsx index 8eb6138557d25..7b4a4d1b1529e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stackframe.tsx @@ -8,7 +8,7 @@ import { EuiAccordion, useEuiFontSize } from '@elastic/eui'; import React from 'react'; import styled from '@emotion/styled'; -import { +import type { Stackframe as StackframeType, StackframeWithLineContext, } from '../../../../typings/es_schemas/raw/fields/stackframe'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stacktrace.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stacktrace.test.ts index 2dc6ea3baf5dc..e6001bb76063c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stacktrace.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/stacktrace.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { getGroupedStackframes } from '.'; import stacktracesMock from './__fixtures__/stacktraces.json'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/variables.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/variables.tsx index e59d6e9bc5c12..2cd3fc1408a85 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/variables.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/stacktrace/variables.tsx @@ -9,7 +9,7 @@ import { EuiAccordion } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import styled from '@emotion/styled'; -import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; +import type { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { KeyValueTable } from '../key_value_table'; import { flattenObject } from '../../../../common/utils/flatten_object'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/index.tsx index d45f948362307..6a319f6d94201 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/index.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { throttle } from 'lodash'; import React, { useCallback, useState } from 'react'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx index d61ff83de083f..d67e4579547e8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx @@ -5,10 +5,10 @@ * 2.0. */ -import { EuiComboBoxOptionOption } from '@elastic/eui'; -import { Meta, Story } from '@storybook/react'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import type { Meta, Story } from '@storybook/react'; import React from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { SuggestionsSelect } from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/__fixtures__/transactions.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/__fixtures__/transactions.ts index be36da8931a5f..d85712245575a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/__fixtures__/transactions.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/__fixtures__/transactions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; export const httpOk: Transaction = { '@timestamp': '0', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/index.tsx index 619ed1bb8f791..1bd5ff208b5b1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/index.tsx @@ -7,7 +7,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import React, { Fragment } from 'react'; -import { Maybe } from '../../../../typings/common'; +import type { Maybe } from '../../../../typings/common'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/transaction_summary.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/transaction_summary.tsx index db5ab9b4c7af5..795d437fec745 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/transaction_summary.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/transaction_summary.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; import { Summary } from '.'; import { TimestampTooltip } from '../timestamp_tooltip'; import { DurationSummaryItem } from './duration_summary_item'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/user_agent_summary_item.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/user_agent_summary_item.tsx index 9a2f3e041bf1c..3f037e288cc19 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/user_agent_summary_item.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/user_agent_summary_item.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiToolTip, useEuiFontSize } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import styled from '@emotion/styled'; -import { UserAgent } from '../../../../typings/es_schemas/raw/fields/user_agent'; +import type { UserAgent } from '../../../../typings/es_schemas/raw/fields/user_agent'; type UserAgentSummaryItemProps = UserAgent; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/technical_preview_badge.tsx index 4263412b26057..11f5d75b9bcee 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/technical_preview_badge.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/technical_preview_badge.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiBetaBadge, IconType } from '@elastic/eui'; +import type { IconType } from '@elastic/eui'; +import { EuiBetaBadge } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_chart_theme.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_chart_theme.ts index c4684d6398c94..9cc11a46453e5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_chart_theme.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_chart_theme.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PartialTheme } from '@elastic/charts'; +import type { PartialTheme } from '@elastic/charts'; export function getComparisonChartTheme(): PartialTheme { return { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.test.ts index 12811360cabc8..f2c4826286cc7 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.test.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { getComparisonEnabled } from './get_comparison_enabled'; describe('getComparisonEnabled', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.ts index edf7f11194bfb..d413e4d347a10 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_enabled.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { enableComparisonByDefault } from '@kbn/observability-plugin/public'; export function getComparisonEnabled({ diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_options.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_options.ts index ffb14f95848e6..212707be31dd3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_options.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/get_comparison_options.ts @@ -7,8 +7,8 @@ import moment from 'moment'; import { i18n } from '@kbn/i18n'; -import { Environment } from '../../../../common/environment_rt'; -import { AnomalyDetectionJobsContextValue } from '../../../context/anomaly_detection_jobs/anomaly_detection_jobs_context'; +import type { Environment } from '../../../../common/environment_rt'; +import type { AnomalyDetectionJobsContextValue } from '../../../context/anomaly_detection_jobs/anomaly_detection_jobs_context'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; export enum TimeRangeComparisonEnum { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/index.test.tsx index 9fffd11600c81..2bfdd2530aaf9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/time_comparison/index.test.tsx @@ -6,7 +6,8 @@ */ import { render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { expectTextsInDocument, expectTextsNotInDocument } from '../../../utils/test_helpers'; import { TimeComparison } from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/timestamp_tooltip/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/timestamp_tooltip/index.tsx index cf5693c29c384..bae019bc574dd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/timestamp_tooltip/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/timestamp_tooltip/index.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { EuiToolTip } from '@elastic/eui'; import moment from 'moment-timezone'; -import { asAbsoluteDateTime, TimeUnit } from '../../../../common/utils/formatters'; +import type { TimeUnit } from '../../../../common/utils/formatters'; +import { asAbsoluteDateTime } from '../../../../common/utils/formatters'; interface Props { /** diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts index cda39943214a1..1cd0895770c84 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; const bareTransaction = { '@metadata': 'whatever', diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_flyout.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_flyout.tsx index db1c7db2a3303..2d0488cb3e6c9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_flyout.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_flyout.tsx @@ -7,8 +7,8 @@ import { useMemo } from 'react'; import React from 'react'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; -import { Filter } from '../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { Filter } from '../../../../common/custom_link/custom_link_types'; import { useFetcher } from '../../../hooks/use_fetcher'; import { convertFiltersToQuery } from '../../app/settings/custom_link/create_edit_custom_link_flyout/helper'; import { CreateEditCustomLinkFlyout } from '../../app/settings/custom_link/create_edit_custom_link_flyout'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx index 91cbee58cd259..430b609032f15 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx @@ -7,8 +7,8 @@ import { render } from '@testing-library/react'; import React from 'react'; -import { CustomLink } from '../../../../../common/custom_link/custom_link_types'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { CustomLink } from '../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { expectTextsInDocument, expectTextsNotInDocument } from '../../../../utils/test_helpers'; import { CustomLinkList } from './custom_link_list'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.tsx index a8d9da7ccd35b..b242a0656bb93 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.tsx @@ -7,8 +7,8 @@ import React from 'react'; import { SectionLink, SectionLinks } from '@kbn/observability-shared-plugin/public'; -import { CustomLink } from '../../../../../common/custom_link/custom_link_types'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { CustomLink } from '../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { unit } from '../../../../utils/style'; import { getEncodedCustomLinkUrl } from '../../../../../common/custom_link'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx index 8ac1be269487a..29e3a304d760f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx @@ -6,9 +6,10 @@ */ import { act, fireEvent, render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; -import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx index 07bbc170d022e..258ec003055f8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx @@ -6,10 +6,11 @@ */ import { act, fireEvent, render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { CustomLinkMenuSection } from '.'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context'; import * as useFetcher from '../../../../hooks/use_fetcher'; import { expectTextsInDocument, expectTextsNotInDocument } from '../../../../utils/test_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx index 74b398e2eadc3..0ef4c65dab200 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx @@ -23,8 +23,8 @@ import { SectionTitle, } from '@kbn/observability-shared-plugin/public'; import { NO_PERMISSION_LABEL } from '../../../../../common/custom_link'; -import { CustomLink, Filter } from '../../../../../common/custom_link/custom_link_types'; -import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; +import type { CustomLink, Filter } from '../../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { convertFiltersToQuery } from '../../../app/settings/custom_link/create_edit_custom_link_flyout/helper'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.test.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.test.ts index 0ec439f177222..3f93870bc696d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.test.ts @@ -7,13 +7,14 @@ import { createMemoryHistory } from 'history'; import rison from '@kbn/rison'; -import { IBasePath } from '@kbn/core/public'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { IBasePath } from '@kbn/core/public'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; import { getSections } from './sections'; -import { apmRouter as apmRouterBase, ApmRouter } from '../../routing/apm_route_config'; +import type { ApmRouter } from '../../routing/apm_route_config'; +import { apmRouter as apmRouterBase } from '../../routing/apm_route_config'; import { logsLocatorsMock } from '../../../context/apm_plugin/mock_apm_plugin_context'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; -import { +import type { AssetDetailsLocatorParams, AssetDetailsLocator, } from '@kbn/observability-shared-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.ts index f30deed376e86..8721c1293ac2a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections.ts @@ -6,23 +6,24 @@ */ import { i18n } from '@kbn/i18n'; -import { Location } from 'history'; -import { IBasePath } from '@kbn/core/public'; +import type { Location } from 'history'; +import type { IBasePath } from '@kbn/core/public'; import { isEmpty, pickBy } from 'lodash'; import moment from 'moment'; import type { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; import type { ProfilingLocators } from '@kbn/observability-shared-plugin/public'; import type { AssetDetailsLocator } from '@kbn/observability-shared-plugin/common'; -import { LocatorPublic } from '@kbn/share-plugin/common'; -import { SerializableRecord } from '@kbn/utility-types'; -import { Environment } from '../../../../common/environment_rt'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; +import type { SerializableRecord } from '@kbn/utility-types'; +import type { Environment } from '../../../../common/environment_rt'; import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; import { getDiscoverHref } from '../links/discover_links/discover_link'; import { getDiscoverQuery } from '../links/discover_links/discover_transaction_link'; -import { SectionRecord, getNonEmptySections, Action } from './sections_helper'; +import type { SectionRecord, Action } from './sections_helper'; +import { getNonEmptySections } from './sections_helper'; import { HOST_NAME, TRACE_ID } from '../../../../common/es_fields/apm'; -import { ApmRouter } from '../../routing/apm_route_config'; +import type { ApmRouter } from '../../routing/apm_route_config'; function getInfraMetricsQuery(transaction: Transaction) { const timestamp = new Date(transaction['@timestamp']).getTime(); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections_helper.ts b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections_helper.ts index a59628981e1a4..b6f2afb81694f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections_helper.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/sections_helper.ts @@ -6,7 +6,7 @@ */ import { isEmpty } from 'lodash'; -import { MouseEvent } from 'react'; +import type { MouseEvent } from 'react'; export interface Action { key: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx index 90cbbec97ac16..2c9722e89f91f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx @@ -16,8 +16,8 @@ import { NODE_LOGS_LOCATOR_ID, TRACE_LOGS_LOCATOR_ID, } from '@kbn/logs-shared-plugin/common'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { mockApmPluginContextValue, MockApmPluginContextWrapper, @@ -33,11 +33,11 @@ import * as useAdHocApmDataView from '../../../hooks/use_adhoc_apm_data_view'; import { useProfilingIntegrationSetting } from '../../../hooks/use_profiling_integration_setting'; import { uptimeOverviewLocatorID } from '@kbn/observability-plugin/common'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; -import { +import type { AssetDetailsLocator, AssetDetailsLocatorParams, - ASSET_DETAILS_LOCATOR_ID, } from '@kbn/observability-shared-plugin/common'; +import { ASSET_DETAILS_LOCATOR_ID } from '@kbn/observability-shared-plugin/common'; const mockAssetDetailsLocator = { getRedirectUrl: jest diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.tsx index 4f45441ea1937..60532c4ed2310 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.tsx @@ -30,7 +30,7 @@ import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { uptimeOverviewLocatorID } from '@kbn/observability-plugin/common'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { ApmFeatureFlagName } from '../../../../common/apm_feature_flags'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useLicenseContext } from '../../../context/license/use_license_context'; import { useApmFeatureFlag } from '../../../hooks/use_apm_feature_flag'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_type_select.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_type_select.tsx index f6e2a1a52b535..b12d3e18d059a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_type_select.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transaction_type_select.tsx @@ -6,7 +6,8 @@ */ import { EuiSelect } from '@elastic/eui'; -import React, { FormEvent, useCallback } from 'react'; +import type { FormEvent } from 'react'; +import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import styled from '@emotion/styled'; import { useApmServiceContext } from '../../context/apm_service/use_apm_service_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/get_columns.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/get_columns.tsx index 3c34af7e999c5..452f8910a6a68 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/get_columns.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/get_columns.tsx @@ -15,27 +15,27 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { TypeOf } from '@kbn/typed-react-router-config'; -import { ValuesType } from 'utility-types'; +import type { TypeOf } from '@kbn/typed-react-router-config'; +import type { ValuesType } from 'utility-types'; import { ALERT_STATUS_ACTIVE } from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; import { asMillisecondDuration, asPercent, asTransactionRate, } from '../../../../common/utils/formatters'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { ChartType, getTimeSeriesColor } from '../charts/helper/get_timeseries_color'; import { ImpactBar } from '../impact_bar'; import { TransactionDetailLink } from '../links/apm/transaction_detail_link'; import { ListMetric } from '../list_metric'; import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { getLatencyColumnLabel } from './get_latency_column_label'; -import { ApmRoutes } from '../../routing/apm_route_config'; +import type { ApmRoutes } from '../../routing/apm_route_config'; import { unit } from '../../../utils/style'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; import { TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../../common/es_fields/apm'; import { fieldValuePairToKql } from '../../../../common/utils/field_value_pair_to_kql'; -import { ITableColumn } from '../managed_table'; +import type { ITableColumn } from '../managed_table'; type TransactionGroupMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/index.tsx index 1749490a37915..08b4f51446873 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/transactions_table/index.tsx @@ -13,10 +13,8 @@ import { compact } from 'lodash'; import React, { useEffect, useMemo, useState } from 'react'; import { apmEnableTableSearchBar } from '@kbn/observability-plugin/common'; import { ApmDocumentType } from '../../../../common/document_type'; -import { - getLatencyAggregationType, - LatencyAggregationType, -} from '../../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import { getLatencyAggregationType } from '../../../../common/latency_aggregation_types'; import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { useApmRouter } from '../../../hooks/use_apm_router'; @@ -24,9 +22,10 @@ import { useBreakpoints } from '../../../hooks/use_breakpoints'; import { useStateDebounced } from '../../../hooks/use_debounce'; import { FETCH_STATUS, isPending, useFetcher } from '../../../hooks/use_fetcher'; import { usePreferredDataSourceAndBucketSize } from '../../../hooks/use_preferred_data_source_and_bucket_size'; -import { APIReturnType } from '../../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { TransactionOverviewLink } from '../links/apm/transaction_overview_link'; -import { ManagedTable, TableSearchBar } from '../managed_table'; +import type { TableSearchBar } from '../managed_table'; +import { ManagedTable } from '../managed_table'; import { OverviewTableContainer } from '../overview_table_container'; import { isTimeComparison } from '../time_comparison/get_comparison_options'; import { getColumns } from './get_columns'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/index.tsx index 4e86f331e520f..ac2b67b8b9c94 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/index.tsx @@ -6,24 +6,23 @@ */ import React, { useCallback, useEffect } from 'react'; import { i18n } from '@kbn/i18n'; +import type { Filter, Query, TimeRange } from '@kbn/es-query'; import { - Filter, fromKueryExpression, getKqlFieldNamesFromExpression, - Query, - TimeRange, toElasticsearchQuery, } from '@kbn/es-query'; import { useHistory, useLocation } from 'react-router-dom'; import deepEqual from 'fast-deep-equal'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import qs from 'query-string'; -import { DataView, UI_SETTINGS } from '@kbn/data-plugin/common'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { OnRefreshChangeProps } from '@elastic/eui/src/components/date_picker/types'; -import { UIProcessorEvent } from '../../../../common/processor_event'; -import { TimePickerTimeDefaults } from '../date_picker/typings'; -import { ApmPluginStartDeps, ApmServices } from '../../../plugin'; +import type { DataView } from '@kbn/data-plugin/common'; +import { UI_SETTINGS } from '@kbn/data-plugin/common'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { OnRefreshChangeProps } from '@elastic/eui/src/components/date_picker/types'; +import type { UIProcessorEvent } from '../../../../common/processor_event'; +import type { TimePickerTimeDefaults } from '../date_picker/typings'; +import type { ApmPluginStartDeps, ApmServices } from '../../../plugin'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useAdHocApmDataView } from '../../../hooks/use_adhoc_apm_data_view'; import { useProcessorEvent } from '../../../hooks/use_processor_event'; diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/unified_search_bar.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/unified_search_bar.test.tsx index 8a7e71907a62a..7600cc6c0e17f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/unified_search_bar.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/unified_search_bar/unified_search_bar.test.tsx @@ -6,13 +6,14 @@ */ import { mount } from 'enzyme'; -import { createMemoryHistory, MemoryHistory } from 'history'; +import type { MemoryHistory } from 'history'; +import { createMemoryHistory } from 'history'; import React from 'react'; import { useLocation } from 'react-router-dom'; import { UnifiedSearchBar } from '.'; -import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { UrlParams } from '../../../context/url_params_context/types'; +import type { UrlParams } from '../../../context/url_params_context/types'; import * as useApmDataViewHook from '../../../hooks/use_adhoc_apm_data_view'; import * as useApmParamsHook from '../../../hooks/use_apm_params'; import * as useFetcherHook from '../../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/annotations/annotations_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/annotations/annotations_context.tsx index e5eb4399b1319..07f073768ca49 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/annotations/annotations_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/annotations/annotations_context.tsx @@ -6,7 +6,7 @@ */ import React, { createContext } from 'react'; -import { Annotation } from '../../../common/annotations'; +import type { Annotation } from '../../../common/annotations'; import { useFetcher } from '../../hooks/use_fetcher'; export const AnnotationsContext = createContext({ annotations: [] } as { diff --git a/x-pack/solutions/observability/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx index 7deeb1f41ea97..5b8d416eb1d98 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx @@ -5,15 +5,15 @@ * 2.0. */ -import React, { createContext, ReactChild } from 'react'; -import { - AnomalyDetectionSetupState, - getAnomalyDetectionSetupState, -} from '../../../common/anomaly_detection/get_anomaly_detection_setup_state'; +import type { ReactChild } from 'react'; +import React, { createContext } from 'react'; +import type { AnomalyDetectionSetupState } from '../../../common/anomaly_detection/get_anomaly_detection_setup_state'; +import { getAnomalyDetectionSetupState } from '../../../common/anomaly_detection/get_anomaly_detection_setup_state'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; import { useApmParams } from '../../hooks/use_apm_params'; -import { FETCH_STATUS, useFetcher } from '../../hooks/use_fetcher'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { FETCH_STATUS } from '../../hooks/use_fetcher'; +import { useFetcher } from '../../hooks/use_fetcher'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../apm_plugin/use_apm_plugin_context'; import { useLicenseContext } from '../license/use_license_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/apm_plugin_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/apm_plugin_context.tsx index 03711b7265e3f..221bce3ab331d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/apm_plugin_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/apm_plugin_context.tsx @@ -18,7 +18,7 @@ import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/ import type { DataPublicPluginStart } from '@kbn/data-plugin/public'; import type { UiActionsStart } from '@kbn/ui-actions-plugin/public'; import type { ObservabilityAIAssistantPublicStart } from '@kbn/observability-ai-assistant-plugin/public'; -import { SharePluginSetup } from '@kbn/share-plugin/public'; +import type { SharePluginSetup } from '@kbn/share-plugin/public'; import type { LicensingPluginStart } from '@kbn/licensing-plugin/public'; import type { ApmPluginSetupDeps } from '../../plugin'; import type { ConfigSchema } from '../..'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx index 961ac7c733e50..759cfa8a8c819 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx @@ -8,7 +8,7 @@ import { coreMock } from '@kbn/core/public/mocks'; import { UI_SETTINGS } from '@kbn/data-plugin/common'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import { +import type { LogsLocatorParams, NodeLogsLocatorParams, TraceLogsLocatorParams, @@ -22,15 +22,18 @@ import { import { UrlService } from '@kbn/share-plugin/common/url_service'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; import { RouterProvider } from '@kbn/typed-react-router-config'; -import { History, createMemoryHistory } from 'history'; +import type { History } from 'history'; +import { createMemoryHistory } from 'history'; import { merge, noop } from 'lodash'; -import React, { ReactNode, useMemo } from 'react'; +import type { ReactNode } from 'react'; +import React, { useMemo } from 'react'; import { useHistory } from 'react-router-dom'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; -import { ConfigSchema } from '../..'; +import type { ConfigSchema } from '../..'; import { apmRouter } from '../../components/routing/apm_route_config'; import { createCallApmApi } from '../../services/rest/create_call_apm_api'; -import { ApmPluginContext, ApmPluginContextValue } from './apm_plugin_context'; +import type { ApmPluginContextValue } from './apm_plugin_context'; +import { ApmPluginContext } from './apm_plugin_context'; const coreStart = coreMock.createStart({ basePath: '/basepath' }); diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_storybook.tsx b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_storybook.tsx index 14d8d4404a719..bbf2f1dc3e28f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_storybook.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_plugin/mock_apm_plugin_storybook.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MlLocatorDefinition } from '@kbn/ml-plugin/public'; @@ -14,15 +14,18 @@ import { UrlService } from '@kbn/share-plugin/common/url_service'; import { RouterProvider } from '@kbn/typed-react-router-config'; import { createMemoryHistory } from 'history'; import { merge, noop } from 'lodash'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; import { Observable, of } from 'rxjs'; import { apmRouter } from '../../components/routing/apm_route_config'; import { createCallApmApi } from '../../services/rest/create_call_apm_api'; -import { APMServiceContext, APMServiceContextValue } from '../apm_service/apm_service_context'; +import type { APMServiceContextValue } from '../apm_service/apm_service_context'; +import { APMServiceContext } from '../apm_service/apm_service_context'; import { MockTimeRangeContextProvider } from '../time_range_metadata/mock_time_range_metadata_context_provider'; import { ApmTimeRangeMetadataContextProvider } from '../time_range_metadata/time_range_metadata_context'; -import { ApmPluginContext, ApmPluginContextValue } from './apm_plugin_context'; +import type { ApmPluginContextValue } from './apm_plugin_context'; +import { ApmPluginContext } from './apm_plugin_context'; const uiSettings: Record = { [UI_SETTINGS.TIMEPICKER_QUICK_RANGES]: [ diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/apm_service_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/apm_service_context.tsx index f0b830b541007..e0c09c5756a4e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/apm_service_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/apm_service_context.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import React, { createContext, ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React, { createContext } from 'react'; import { useHistory } from 'react-router-dom'; -import { History } from 'history'; +import type { History } from 'history'; import { ApmDocumentType } from '../../../common/document_type'; import { getDefaultTransactionType } from '../../../common/transaction_types'; import { useServiceTransactionTypesFetcher } from './use_service_transaction_types_fetcher'; @@ -17,7 +18,7 @@ import { useTimeRange } from '../../hooks/use_time_range'; import { useFallbackToTransactionsFetcher } from '../../hooks/use_fallback_to_transactions_fetcher'; import { replace } from '../../components/shared/links/url_helpers'; import { FETCH_STATUS } from '../../hooks/use_fetcher'; -import { ServerlessType } from '../../../common/serverless'; +import type { ServerlessType } from '../../../common/serverless'; import { usePreferredDataSourceAndBucketSize } from '../../hooks/use_preferred_data_source_and_bucket_size'; import { type ServiceEntitySummary, diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_entity_summary_fetcher.ts b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_entity_summary_fetcher.ts index 1c01b6bd25cb2..357e53819cc08 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_entity_summary_fetcher.ts +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_entity_summary_fetcher.ts @@ -7,7 +7,7 @@ import { useEntityCentricExperienceSetting } from '../../hooks/use_entity_centric_experience_setting'; import { useFetcher } from '../../hooks/use_fetcher'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; export type ServiceEntitySummary = APIReturnType<'GET /internal/apm/entities/services/{serviceName}/summary'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_transaction_types_fetcher.tsx b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_transaction_types_fetcher.tsx index 188202fd3935b..1c8800fa897a8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_transaction_types_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/apm_service/use_service_transaction_types_fetcher.tsx @@ -6,8 +6,8 @@ */ import { useFetcher } from '../../hooks/use_fetcher'; -import { RollupInterval } from '../../../common/rollup'; -import { ApmTransactionDocumentType } from '../../../common/document_type'; +import type { RollupInterval } from '../../../common/rollup'; +import type { ApmTransactionDocumentType } from '../../../common/document_type'; const INITIAL_DATA = { transactionTypes: [] }; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/context.tsx index 7ec17b3a6cf3b..8ae6482a866c4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/context.tsx @@ -4,8 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Route, RouteMatch, useMatchRoutes } from '@kbn/typed-react-router-config'; -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { Route, RouteMatch } from '@kbn/typed-react-router-config'; +import { useMatchRoutes } from '@kbn/typed-react-router-config'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { compact, isEqual } from 'lodash'; import React, { createContext, useMemo, useState } from 'react'; import { useBreadcrumbs } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/use_breadcrumb.ts b/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/use_breadcrumb.ts index 846aa1ec70877..23a9280e3eba4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/use_breadcrumb.ts +++ b/x-pack/solutions/observability/plugins/apm/public/context/breadcrumbs/use_breadcrumb.ts @@ -9,7 +9,8 @@ import { useCurrentRoute } from '@kbn/typed-react-router-config'; import { useContext, useEffect, useRef } from 'react'; import { castArray } from 'lodash'; import useObservable from 'react-use/lib/useObservable'; -import { Breadcrumb, BreadcrumbsContext } from './context'; +import type { Breadcrumb } from './context'; +import { BreadcrumbsContext } from './context'; import { useKibanaEnvironmentContext } from '../kibana_environment_context/use_kibana_environment_context'; import { useKibana } from '../kibana_context/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/chart_pointer_event_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/chart_pointer_event_context.tsx index 0efc0b57179bf..1d4cb41f0664f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/chart_pointer_event_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/chart_pointer_event_context.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import React, { createContext, ReactNode, useRef } from 'react'; +import type { ReactNode } from 'react'; +import React, { createContext, useRef } from 'react'; -import { PointerEvent } from '@elastic/charts'; +import type { PointerEvent } from '@elastic/charts'; export const UPDATE_POINTER_EVENT = 'updatePointerEvent'; export const ChartPointerEventContext = createContext<{ diff --git a/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/use_chart_pointer_event_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/use_chart_pointer_event_context.tsx index 8bd835061f3a9..c0671a80f9752 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/use_chart_pointer_event_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/chart_pointer_event/use_chart_pointer_event_context.tsx @@ -6,8 +6,8 @@ */ import React, { useContext, useEffect, useCallback, useRef } from 'react'; -import { Chart } from '@elastic/charts'; -import { PointerEvent } from '@elastic/charts'; +import type { Chart } from '@elastic/charts'; +import type { PointerEvent } from '@elastic/charts'; import { ChartPointerEventContext, UPDATE_POINTER_EVENT } from './chart_pointer_event_context'; export function useChartPointerEventContext() { diff --git a/x-pack/solutions/observability/plugins/apm/public/context/environments_context/environments_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/environments_context/environments_context.tsx index 4407120e2bf69..95d75be9c6fe3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/environments_context/environments_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/environments_context/environments_context.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { useApmParams } from '../../hooks/use_apm_params'; import { useEnvironmentsFetcher } from '../../hooks/use_environments_fetcher'; import { FETCH_STATUS } from '../../hooks/use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/kibana_context/use_kibana.tsx b/x-pack/solutions/observability/plugins/apm/public/context/kibana_context/use_kibana.tsx index b36a4a1dea35b..5d4700e0ec213 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/kibana_context/use_kibana.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/kibana_context/use_kibana.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { type ApmPluginStartDeps } from '../../plugin'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/license/license_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/license/license_context.tsx index 927e4367dd376..0958736d2f86d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/license/license_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/license/license_context.tsx @@ -7,7 +7,7 @@ import React from 'react'; import useObservable from 'react-use/lib/useObservable'; -import { ILicense } from '@kbn/licensing-plugin/public'; +import type { ILicense } from '@kbn/licensing-plugin/public'; import { useApmPluginContext } from '../apm_plugin/use_apm_plugin_context'; import { InvalidLicenseNotification } from './invalid_license_notification'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/service_anomaly_timeseries/service_anomaly_timeseries_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/service_anomaly_timeseries/service_anomaly_timeseries_context.tsx index 986730c99691e..efbc56e095e74 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/service_anomaly_timeseries/service_anomaly_timeseries_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/service_anomaly_timeseries/service_anomaly_timeseries_context.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { useEnvironmentsContext } from '../environments_context/use_environments_context'; -import { ServiceAnomalyTimeseries } from '../../../common/anomaly_detection/service_anomaly_timeseries'; +import type { ServiceAnomalyTimeseries } from '../../../common/anomaly_detection/service_anomaly_timeseries'; import { useAnyOfApmParams } from '../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../hooks/use_fetcher'; import { useTimeRange } from '../../hooks/use_time_range'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/mock_time_range_metadata_context_provider.tsx b/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/mock_time_range_metadata_context_provider.tsx index 4c08dd57db9eb..c7a223ad1ddba 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/mock_time_range_metadata_context_provider.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/mock_time_range_metadata_context_provider.tsx @@ -7,7 +7,7 @@ import React, { useMemo } from 'react'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; -import { TimeRangeMetadata } from '../../../common/time_range_metadata'; +import type { TimeRangeMetadata } from '../../../common/time_range_metadata'; import { mockApmApiCallResponse } from '../../services/rest/call_apm_api_spy'; const DEFAULTS = { diff --git a/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/time_range_metadata_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/time_range_metadata_context.tsx index b821b3ff217d9..35084d97c4084 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/time_range_metadata_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/time_range_metadata/time_range_metadata_context.tsx @@ -9,11 +9,12 @@ import { apmEnableServiceMetrics, apmEnableContinuousRollups, } from '@kbn/observability-plugin/common'; -import { IUiSettingsClient } from '@kbn/core/public'; -import { TimeRangeMetadata } from '../../../common/time_range_metadata'; +import type { IUiSettingsClient } from '@kbn/core/public'; +import type { TimeRangeMetadata } from '../../../common/time_range_metadata'; import { useApmParams } from '../../hooks/use_apm_params'; import { useApmRoutePath } from '../../hooks/use_apm_route_path'; -import { FetcherResult, useFetcher } from '../../hooks/use_fetcher'; +import type { FetcherResult } from '../../hooks/use_fetcher'; +import { useFetcher } from '../../hooks/use_fetcher'; import { useTimeRange } from '../../hooks/use_time_range'; import { useApmPluginContext } from '../apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/helpers.ts b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/helpers.ts index 1fb70e929ad5a..80880fd622abd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/helpers.ts @@ -7,7 +7,7 @@ import datemath from '@kbn/datemath'; import { pickBy } from 'lodash'; -import { UrlParams } from './types'; +import type { UrlParams } from './types'; function getParsedDate(rawDate?: string, options = {}) { if (rawDate) { diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/mock_url_params_context_provider.tsx b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/mock_url_params_context_provider.tsx index 3cd522037bb11..236a8ac81d22e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/mock_url_params_context_provider.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/mock_url_params_context_provider.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { UrlParams } from './types'; +import type { UrlParams } from './types'; import { UrlParamsContext } from './url_params_context'; const defaultUrlParams = { diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/resolve_url_params.ts b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/resolve_url_params.ts index 3de5b263a83c6..471a405e2f7fe 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/resolve_url_params.ts +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/resolve_url_params.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; import { toQuery } from '../../components/shared/links/url_helpers'; import { getDateRange, removeUndefinedProps, toBoolean, toNumber, toString } from './helpers'; -import { UrlParams } from './types'; +import type { UrlParams } from './types'; type TimeUrlParams = Pick; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/types.ts b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/types.ts index d5932ff73cafb..055f05a67a75f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/types.ts +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../common/latency_aggregation_types'; export interface UrlParams { detailTab?: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.test.tsx b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.test.tsx index 82e9fa1e97067..cfbaa07bca259 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.test.tsx @@ -7,7 +7,7 @@ import { waitFor } from '@testing-library/react'; import { mount } from 'enzyme'; -import { History, Location } from 'history'; +import type { History, Location } from 'history'; import moment from 'moment-timezone'; import * as React from 'react'; import { MemoryRouter, Router } from '@kbn/shared-ux-router'; diff --git a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.tsx b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.tsx index 1579ab784dba6..22292f9cd6037 100644 --- a/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/context/url_params_context/url_params_context.tsx @@ -5,18 +5,13 @@ * 2.0. */ -import React, { - createContext, - useCallback, - useMemo, - useRef, - useState, - PropsWithChildren, -} from 'react'; -import { withRouter, RouteComponentProps } from 'react-router-dom'; +import type { PropsWithChildren } from 'react'; +import React, { createContext, useCallback, useMemo, useRef, useState } from 'react'; +import type { RouteComponentProps } from 'react-router-dom'; +import { withRouter } from 'react-router-dom'; import { getDateRange } from './helpers'; import { resolveUrlParams } from './resolve_url_params'; -import { UrlParams } from './types'; +import type { UrlParams } from './types'; export interface TimeRange { rangeFrom: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_failed_transactions_chart/react_embeddable_factory.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_failed_transactions_chart/react_embeddable_factory.tsx index f9513ad09fde7..6eb52a58d0c59 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_failed_transactions_chart/react_embeddable_factory.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_failed_transactions_chart/react_embeddable_factory.tsx @@ -5,8 +5,8 @@ * 2.0. */ import React from 'react'; -import { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; -import { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; +import type { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; +import type { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; import { initializeTitles, useBatchedPublishingSubjects } from '@kbn/presentation-publishing'; import { BehaviorSubject } from 'rxjs'; import type { EmbeddableApmAlertingVizProps } from '../types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_latency_chart/react_embeddable_factory.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_latency_chart/react_embeddable_factory.tsx index 1cb032d1d8fc5..27f5eec4f097a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_latency_chart/react_embeddable_factory.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_latency_chart/react_embeddable_factory.tsx @@ -5,8 +5,8 @@ * 2.0. */ import React from 'react'; -import { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; -import { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; +import type { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; +import type { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; import { initializeTitles, useBatchedPublishingSubjects } from '@kbn/presentation-publishing'; import { BehaviorSubject } from 'rxjs'; import type { EmbeddableApmAlertingLatencyVizProps } from '../types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/chart.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/chart.tsx index d98c27fc52d1d..999fb020f53e4 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/chart.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/chart.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import ThroughputChart from '../../../components/alerting/ui_components/alert_details_app_section/throughput_chart'; -import { EmbeddableApmAlertingVizProps } from '../types'; +import type { EmbeddableApmAlertingVizProps } from '../types'; import { useAlertingProps } from '../use_alerting_props'; import { TimeRangeCallout } from '../time_range_callout'; import { ServiceNameCallout } from '../service_name_callout'; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/react_embeddable_factory.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/react_embeddable_factory.tsx index 1126c376e2f0d..df61e1558e9cd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/react_embeddable_factory.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/alerting_throughput_chart/react_embeddable_factory.tsx @@ -5,8 +5,8 @@ * 2.0. */ import React from 'react'; -import { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; -import { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; +import type { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; +import type { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; import { initializeTitles, useBatchedPublishingSubjects } from '@kbn/presentation-publishing'; import { BehaviorSubject } from 'rxjs'; import type { EmbeddableApmAlertingVizProps } from '../types'; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/testing/fixtures.ts b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/testing/fixtures.ts index f2ae97beb74f6..d1869fa40d33f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/testing/fixtures.ts +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/testing/fixtures.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { TopAlert } from '@kbn/observability-plugin/public'; -import { Rule } from '@kbn/alerting-plugin/common'; -import { ApmEmbeddableContextProps } from '../../embeddable_context'; +import type { TopAlert } from '@kbn/observability-plugin/public'; +import type { Rule } from '@kbn/alerting-plugin/common'; +import type { ApmEmbeddableContextProps } from '../../embeddable_context'; import { mockApmPluginContextValue } from '../../../context/apm_plugin/mock_apm_plugin_context'; export const MOCK_DEPS: ApmEmbeddableContextProps['deps'] = { diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/types.ts b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/types.ts index 17d5da69644b3..b55e4d6c51e45 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/types.ts +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/types.ts @@ -7,7 +7,7 @@ import type { Rule } from '@kbn/alerting-plugin/common'; import type { TopAlert } from '@kbn/observability-plugin/public'; -import { SerializedTitles } from '@kbn/presentation-publishing'; +import type { SerializedTitles } from '@kbn/presentation-publishing'; import type { BoolQuery } from '@kbn/es-query'; export interface EmbeddableApmAlertingVizProps extends SerializedTitles { diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/use_alerting_props.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/use_alerting_props.tsx index d85be78919043..cf16033bbdc6b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/use_alerting_props.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/alerting/use_alerting_props.tsx @@ -5,7 +5,7 @@ * 2.0. */ import { useState, useEffect } from 'react'; -import { Rule } from '@kbn/alerting-plugin/common'; +import type { Rule } from '@kbn/alerting-plugin/common'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { getTransactionType } from '../../context/apm_service/apm_service_context'; import { useServiceTransactionTypesFetcher } from '../../context/apm_service/use_service_transaction_types_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/embeddable_context.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/embeddable_context.tsx index 8458a4c9d4466..dd38e9cf7e5f0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/embeddable_context.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/embeddable_context.tsx @@ -7,10 +7,11 @@ import React from 'react'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme'; -import { ApmPluginContext, ApmPluginContextValue } from '../context/apm_plugin/apm_plugin_context'; +import type { ApmPluginContextValue } from '../context/apm_plugin/apm_plugin_context'; +import { ApmPluginContext } from '../context/apm_plugin/apm_plugin_context'; import { createCallApmApi } from '../services/rest/create_call_apm_api'; import { ChartPointerEventContextProvider } from '../context/chart_pointer_event/chart_pointer_event_context'; -import { EmbeddableDeps } from './types'; +import type { EmbeddableDeps } from './types'; import { TimeRangeMetadataContextProvider } from '../context/time_range_metadata/time_range_metadata_context'; export interface ApmEmbeddableContextProps { diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/register_embeddables.tsx b/x-pack/solutions/observability/plugins/apm/public/embeddable/register_embeddables.tsx index 215959007a6bb..60627b81c8da0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/register_embeddables.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/register_embeddables.tsx @@ -4,10 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreSetup } from '@kbn/core/public'; +import type { CoreSetup } from '@kbn/core/public'; -import { ApmPluginStartDeps, ApmPluginStart } from '../plugin'; -import { EmbeddableDeps } from './types'; +import type { ApmPluginStartDeps, ApmPluginStart } from '../plugin'; +import type { EmbeddableDeps } from './types'; import { APM_ALERTING_FAILED_TRANSACTIONS_CHART_EMBEDDABLE, APM_ALERTING_LATENCY_CHART_EMBEDDABLE, diff --git a/x-pack/solutions/observability/plugins/apm/public/embeddable/types.ts b/x-pack/solutions/observability/plugins/apm/public/embeddable/types.ts index 14b8d18fe2101..1e61aedcd0e2d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/embeddable/types.ts +++ b/x-pack/solutions/observability/plugins/apm/public/embeddable/types.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import type { EmbeddableInput } from '@kbn/embeddable-plugin/public'; +import type { EmbeddableInput } from '@kbn/embeddable-plugin/common'; import type { CoreStart, CoreSetup } from '@kbn/core/public'; import type { ObservabilityRuleTypeRegistry } from '@kbn/observability-plugin/public'; import type { ApmPluginStartDeps, ApmPluginSetupDeps } from '../plugin'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/create_shared_use_fetcher.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/create_shared_use_fetcher.tsx index b215ae39f67f2..01b448bb699ee 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/create_shared_use_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/create_shared_use_fetcher.tsx @@ -7,7 +7,8 @@ import React, { createContext, useContext, useMemo } from 'react'; import type { APIEndpoint } from '../../server'; import type { APIClientRequestParamsOf, APIReturnType } from '../services/rest/create_call_apm_api'; -import { useFetcher, FetcherResult } from './use_fetcher'; +import type { FetcherResult } from './use_fetcher'; +import { useFetcher } from './use_fetcher'; interface SharedUseFetcher { useFetcherResult: () => FetcherResult> & { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_adhoc_apm_data_view.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_adhoc_apm_data_view.ts index 918a701ea169f..08cb54866bffb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_adhoc_apm_data_view.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_adhoc_apm_data_view.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { i18n } from '@kbn/i18n'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { useEffect, useState } from 'react'; -import { ApmPluginStartDeps } from '../plugin'; +import type { ApmPluginStartDeps } from '../plugin'; import { callApmApi } from '../services/rest/create_call_apm_api'; export async function getApmDataViewIndexPattern() { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_feature_flag.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_feature_flag.ts index c3fd7e5d54181..14dc1722e80f9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_feature_flag.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_feature_flag.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ApmFeatureFlagName, ValueOfApmFeatureFlag } from '../../common/apm_feature_flags'; +import type { ApmFeatureFlagName, ValueOfApmFeatureFlag } from '../../common/apm_feature_flags'; import { useApmPluginContext } from '../context/apm_plugin/use_apm_plugin_context'; export function useApmFeatureFlag( diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_params.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_params.ts index 2a835e7e6989a..4bc3047a3d5fc 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_params.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_params.ts @@ -4,9 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ValuesType } from 'utility-types'; -import { TypeOf, PathsOf, useParams } from '@kbn/typed-react-router-config'; -import { ApmRoutes } from '../components/routing/apm_route_config'; +import type { ValuesType } from 'utility-types'; +import type { TypeOf, PathsOf } from '@kbn/typed-react-router-config'; +import { useParams } from '@kbn/typed-react-router-config'; +import type { ApmRoutes } from '../components/routing/apm_route_config'; // these three different functions exist purely to speed up completions from // TypeScript. One overloaded function is expensive because of the size of the diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_route_path.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_route_path.ts index b659e26610490..8a35a35f94a38 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_route_path.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_apm_route_path.ts @@ -4,8 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { useRoutePath, PathsOf } from '@kbn/typed-react-router-config'; -import { ApmRoutes } from '../components/routing/apm_route_config'; +import type { PathsOf } from '@kbn/typed-react-router-config'; +import { useRoutePath } from '@kbn/typed-react-router-config'; +import type { ApmRoutes } from '../components/routing/apm_route_config'; export function useApmRoutePath() { const path = useRoutePath(); diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_breakpoints.test.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/use_breakpoints.test.tsx index 7a9a7aa33b6b2..ca25af1f0643b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_breakpoints.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_breakpoints.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { renderHook } from '@testing-library/react'; import { EuiProvider } from '@elastic/eui'; import { useBreakpoints } from './use_breakpoints'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_current_user.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_current_user.ts index e319d4ce03ca4..0df4e777ad953 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_current_user.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_current_user.ts @@ -7,8 +7,8 @@ import { useState, useEffect } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { AuthenticatedUser } from '@kbn/security-plugin/common'; -import { ApmServices } from '../plugin'; +import type { AuthenticatedUser } from '@kbn/security-plugin/common'; +import type { ApmServices } from '../plugin'; export function useCurrentUser() { const { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_dashboards_fetcher.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_dashboards_fetcher.ts index 8b1ccf301ae38..1a8b6fb187e09 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_dashboards_fetcher.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_dashboards_fetcher.ts @@ -7,8 +7,8 @@ import { useState, useEffect } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { SearchDashboardsResponse } from '@kbn/dashboard-plugin/public'; -import { ApmPluginStartDeps } from '../plugin'; +import type { SearchDashboardsResponse } from '@kbn/dashboard-plugin/public'; +import type { ApmPluginStartDeps } from '../plugin'; import { FETCH_STATUS } from './use_fetcher'; export interface SearchDashboardsResult { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_date_range_redirect.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_date_range_redirect.ts index 40367b29768a2..ea64de3e81ab5 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_date_range_redirect.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_date_range_redirect.ts @@ -7,7 +7,7 @@ import qs from 'query-string'; import { useHistory, useLocation } from 'react-router-dom'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; -import { TimePickerTimeDefaults } from '../components/shared/date_picker/typings'; +import type { TimePickerTimeDefaults } from '../components/shared/date_picker/typings'; import { useApmPluginContext } from '../context/apm_plugin/use_apm_plugin_context'; export function useDateRangeRedirect() { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_environment.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_environment.ts index d4a0cd1057cd4..88ed9a6d55afb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_environment.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_environment.ts @@ -7,7 +7,7 @@ import { defaultApmServiceEnvironment } from '@kbn/observability-plugin/common'; import { ENVIRONMENT_ALL } from '../../common/environment_filter_values'; -import { Environment } from '../../common/environment_rt'; +import type { Environment } from '../../common/environment_rt'; import { useApmPluginContext } from '../context/apm_plugin/use_apm_plugin_context'; export function useDefaultEnvironment() { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_time_range.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_time_range.ts index c504040dfc06f..eb7855036cd40 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_time_range.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_default_time_range.ts @@ -6,7 +6,7 @@ */ import { UI_SETTINGS } from '@kbn/data-plugin/public'; -import { TimePickerTimeDefaults } from '../components/shared/date_picker/typings'; +import type { TimePickerTimeDefaults } from '../components/shared/date_picker/typings'; import { useApmPluginContext } from '../context/apm_plugin/use_apm_plugin_context'; export function useDefaultTimeRange() { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_dependency_detail_operations_breadcrumb.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_dependency_detail_operations_breadcrumb.ts index 197e03845a953..193b364d0c2a1 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_dependency_detail_operations_breadcrumb.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_dependency_detail_operations_breadcrumb.ts @@ -10,7 +10,7 @@ import { castArray } from 'lodash'; import { useBreadcrumb } from '../context/breadcrumbs/use_breadcrumb'; import { useAnyOfApmParams } from './use_apm_params'; import { useApmRouter } from './use_apm_router'; -import { Breadcrumb } from '../context/breadcrumbs/context'; +import type { Breadcrumb } from '../context/breadcrumbs/context'; export function useDependencyDetailOperationsBreadcrumb( extraBreadCrumbs: Breadcrumb | Breadcrumb[] = [] diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_environments_fetcher.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/use_environments_fetcher.tsx index 4dc32754cbfe4..b8393e6741f86 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_environments_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_environments_fetcher.tsx @@ -7,8 +7,8 @@ import { SERVICE_ENVIRONMENT } from '../../common/es_fields/apm'; import { useFetcher } from './use_fetcher'; -import { Environment } from '../../common/environment_rt'; -import { APIReturnType } from '../services/rest/create_call_apm_api'; +import type { Environment } from '../../common/environment_rt'; +import type { APIReturnType } from '../services/rest/create_call_apm_api'; type EnvironmentsAPIResponse = APIReturnType<'GET /internal/apm/environments'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.test.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.test.tsx index 4d25a61227d95..d6224c18d679a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { waitFor, act, renderHook, type RenderHookResult } from '@testing-library/react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { delay } from '../utils/test_helpers'; import { useFetcher, isPending, FETCH_STATUS } from './use_fetcher'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.tsx index 7522fa87a20e0..419b540c24d3c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_fetcher.tsx @@ -11,7 +11,8 @@ import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser' import { useKibana } from '@kbn/kibana-react-plugin/public'; import { useInspectorContext } from '@kbn/observability-shared-plugin/public'; import { useTimeRangeId } from '../context/time_range_id/use_time_range_id'; -import { AutoAbortedAPMClient, callApmApi } from '../services/rest/create_call_apm_api'; +import type { AutoAbortedAPMClient } from '../services/rest/create_call_apm_api'; +import { callApmApi } from '../services/rest/create_call_apm_api'; export enum FETCH_STATUS { LOADING = 'loading', diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_data_source_and_bucket_size.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_data_source_and_bucket_size.ts index cf27bce80de40..0e5c371a0c0bb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_data_source_and_bucket_size.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_data_source_and_bucket_size.ts @@ -7,7 +7,7 @@ import { useMemo } from 'react'; import { getPreferredBucketSizeAndDataSource } from '@kbn/apm-data-access-plugin/common'; -import { ApmDataSourceWithSummary } from '../../common/data_source'; +import type { ApmDataSourceWithSummary } from '../../common/data_source'; import { ApmDocumentType } from '../../common/document_type'; import { getBucketSize } from '../../common/utils/get_bucket_size'; import { useTimeRangeMetadata } from '../context/time_range_metadata/use_time_range_metadata_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_service_anomaly_timeseries.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_service_anomaly_timeseries.ts index 944db3726cc1a..a329a73f14c4f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_service_anomaly_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_preferred_service_anomaly_timeseries.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnomalyDetectorType } from '../../common/anomaly_detection/apm_ml_detectors'; +import type { AnomalyDetectorType } from '../../common/anomaly_detection/apm_ml_detectors'; import { getPreferredServiceAnomalyTimeseries } from '../../common/anomaly_detection/get_preferred_service_anomaly_timeseries'; import { useApmServiceContext } from '../context/apm_service/use_apm_service_context'; import { useEnvironmentsContext } from '../context/environments_context/use_environments_context'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_processor_event.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_processor_event.ts index deffd7eae1517..ee9c078c5dbff 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_processor_event.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_processor_event.ts @@ -7,7 +7,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { useLocation } from 'react-router-dom'; -import { UIProcessorEvent } from '../../common/processor_event'; +import type { UIProcessorEvent } from '../../common/processor_event'; /** * Infer the processor.event to used based on the route path diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_progressive_fetcher.tsx b/x-pack/solutions/observability/plugins/apm/public/hooks/use_progressive_fetcher.tsx index 79fd80efdf362..174b9f58701c6 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_progressive_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_progressive_fetcher.tsx @@ -15,7 +15,8 @@ import { import type { APMServerRouteRepository } from '../../server'; import type { APMClient, APMClientOptions } from '../services/rest/create_call_apm_api'; -import { FetcherResult, FETCH_STATUS, useFetcher } from './use_fetcher'; +import type { FetcherResult } from './use_fetcher'; +import { FETCH_STATUS, useFetcher } from './use_fetcher'; type APMProgressivelyLoadingServerRouteRepository = OmitByValue< { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_sample_chart_selection.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_sample_chart_selection.ts index b6753bfd89960..f8a8bd531bd72 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_sample_chart_selection.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_sample_chart_selection.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { XYBrushEvent } from '@elastic/charts'; +import type { XYBrushEvent } from '@elastic/charts'; import { useHistory } from 'react-router-dom'; import { push } from '../components/shared/links/url_helpers'; diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_time_range.test.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_time_range.test.ts index 2f6c08aad8ccf..e614bb5e20950 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_time_range.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_time_range.test.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { renderHook, RenderHookResult } from '@testing-library/react'; +import type { RenderHookResult } from '@testing-library/react'; +import { renderHook } from '@testing-library/react'; import { useTimeRange } from './use_time_range'; describe('useTimeRange', () => { diff --git a/x-pack/solutions/observability/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts b/x-pack/solutions/observability/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts index 3bc56daeffc42..e045034410d8b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts +++ b/x-pack/solutions/observability/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts @@ -7,7 +7,7 @@ import { useMemo } from 'react'; import { ApmDocumentType } from '../../common/document_type'; -import { LatencyAggregationType } from '../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../common/latency_aggregation_types'; import { isTimeComparison } from '../components/shared/time_comparison/get_comparison_options'; import { useApmServiceContext } from '../context/apm_service/use_apm_service_context'; import { getLatencyChartSelector } from '../selectors/latency_chart_selectors'; diff --git a/x-pack/solutions/observability/plugins/apm/public/index.ts b/x-pack/solutions/observability/plugins/apm/public/index.ts index 5d25f64a0d6e4..d4207d993e1fa 100644 --- a/x-pack/solutions/observability/plugins/apm/public/index.ts +++ b/x-pack/solutions/observability/plugins/apm/public/index.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; -import { ApmPlugin, ApmPluginSetup, ApmPluginStart } from './plugin'; +import type { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; +import type { ApmPluginSetup, ApmPluginStart } from './plugin'; +import { ApmPlugin } from './plugin'; export interface ConfigSchema { serviceMapEnabled: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/public/locator/helpers.ts b/x-pack/solutions/observability/plugins/apm/public/locator/helpers.ts index 69c041a00374c..e14cccf9eda0d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/locator/helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/locator/helpers.ts @@ -7,7 +7,8 @@ import * as t from 'io-ts'; import { isRight } from 'fp-ts/Either'; import { PathReporter } from 'io-ts/lib/PathReporter'; -import { Environment, environmentRt } from '../../common/environment_rt'; +import type { Environment } from '../../common/environment_rt'; +import { environmentRt } from '../../common/environment_rt'; import { apmRouter } from '../components/routing/apm_route_config'; import type { TimePickerTimeDefaults } from '../components/shared/date_picker/typings'; diff --git a/x-pack/solutions/observability/plugins/apm/public/locator/onboarding_locator.ts b/x-pack/solutions/observability/plugins/apm/public/locator/onboarding_locator.ts index 889486cca8ca7..4f9ed2860ca96 100644 --- a/x-pack/solutions/observability/plugins/apm/public/locator/onboarding_locator.ts +++ b/x-pack/solutions/observability/plugins/apm/public/locator/onboarding_locator.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; export enum ApmOnboardingLocatorCategory { Apm = 'application', diff --git a/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.test.ts b/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.test.ts index 0aa3caf13f1cb..415b394975095 100644 --- a/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.test.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Environment } from '../../common/environment_rt'; -import { IUiSettingsClient } from '@kbn/core/public'; +import type { Environment } from '../../common/environment_rt'; +import type { IUiSettingsClient } from '@kbn/core/public'; import { APMServiceDetailLocator, APM_APP_LOCATOR_ID } from './service_detail_locator'; import { enableComparisonByDefault, diff --git a/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.ts b/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.ts index 6d4a53f1f6e26..b6e7e30459b73 100644 --- a/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.ts +++ b/x-pack/solutions/observability/plugins/apm/public/locator/service_detail_locator.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { IUiSettingsClient } from '@kbn/core/public'; -import { LocatorDefinition } from '@kbn/share-plugin/common'; +import type { IUiSettingsClient } from '@kbn/core/public'; +import type { LocatorDefinition } from '@kbn/share-plugin/common'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; import { defaultApmServiceEnvironment, diff --git a/x-pack/solutions/observability/plugins/apm/public/plugin.ts b/x-pack/solutions/observability/plugins/apm/public/plugin.ts index 532c0498f7a56..e0480e53ff826 100644 --- a/x-pack/solutions/observability/plugins/apm/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/apm/public/plugin.ts @@ -9,31 +9,31 @@ import type { PluginSetupContract as AlertingPluginPublicSetup, PluginStartContract as AlertingPluginPublicStart, } from '@kbn/alerting-plugin/public'; -import { ChartsPluginStart } from '@kbn/charts-plugin/public'; -import { +import type { ChartsPluginStart } from '@kbn/charts-plugin/public'; +import type { AppMountParameters, CoreSetup, CoreStart, - DEFAULT_APP_CATEGORIES, Plugin, PluginInitializerContext, SecurityServiceStart, } from '@kbn/core/public'; +import { DEFAULT_APP_CATEGORIES } from '@kbn/core/public'; import type { DataPublicPluginSetup, DataPublicPluginStart } from '@kbn/data-plugin/public'; -import { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public'; -import { DiscoverSetup, DiscoverStart } from '@kbn/discover-plugin/public'; +import type { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public'; +import type { DiscoverSetup, DiscoverStart } from '@kbn/discover-plugin/public'; import type { EmbeddableSetup, EmbeddableStart } from '@kbn/embeddable-plugin/public'; import type { ExploratoryViewPublicSetup } from '@kbn/exploratory-view-plugin/public'; import type { FeaturesPluginSetup } from '@kbn/features-plugin/public'; -import { FieldFormatsStart } from '@kbn/field-formats-plugin/public'; +import type { FieldFormatsStart } from '@kbn/field-formats-plugin/public'; import type { FleetStart } from '@kbn/fleet-plugin/public'; import type { HomePublicPluginSetup } from '@kbn/home-plugin/public'; import { i18n } from '@kbn/i18n'; -import { MetricsDataPluginStart } from '@kbn/metrics-data-access-plugin/public'; -import { Start as InspectorPluginStart } from '@kbn/inspector-plugin/public'; +import type { MetricsDataPluginStart } from '@kbn/metrics-data-access-plugin/public'; +import type { Start as InspectorPluginStart } from '@kbn/inspector-plugin/public'; import type { IStorageWrapper } from '@kbn/kibana-utils-plugin/public'; -import { LensPublicStart } from '@kbn/lens-plugin/public'; -import { LicenseManagementUIPluginSetup } from '@kbn/license-management-plugin/public'; +import type { LensPublicStart } from '@kbn/lens-plugin/public'; +import type { LicenseManagementUIPluginSetup } from '@kbn/license-management-plugin/public'; import type { LicensingPluginStart } from '@kbn/licensing-plugin/public'; import type { MapsStartApi } from '@kbn/maps-plugin/public'; import type { MlPluginSetup, MlPluginStart } from '@kbn/ml-plugin/public'; @@ -41,7 +41,7 @@ import type { ObservabilityAIAssistantPublicSetup, ObservabilityAIAssistantPublicStart, } from '@kbn/observability-ai-assistant-plugin/public'; -import { +import type { FetchDataParams, ObservabilityPublicSetup, ObservabilityPublicStart, @@ -52,26 +52,26 @@ import type { ObservabilitySharedPluginStart, } from '@kbn/observability-shared-plugin/public'; import { METRIC_TYPE } from '@kbn/observability-shared-plugin/public'; -import { ProfilingPluginSetup, ProfilingPluginStart } from '@kbn/profiling-plugin/public'; +import type { ProfilingPluginSetup, ProfilingPluginStart } from '@kbn/profiling-plugin/public'; import type { SecurityPluginStart } from '@kbn/security-plugin/public'; import type { SharePluginSetup } from '@kbn/share-plugin/public'; -import { SpacesPluginStart } from '@kbn/spaces-plugin/public'; +import type { SpacesPluginStart } from '@kbn/spaces-plugin/public'; import type { TriggersAndActionsUIPublicPluginSetup, TriggersAndActionsUIPublicPluginStart, } from '@kbn/triggers-actions-ui-plugin/public'; -import { UiActionsSetup, UiActionsStart } from '@kbn/ui-actions-plugin/public'; +import type { UiActionsSetup, UiActionsStart } from '@kbn/ui-actions-plugin/public'; import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/public'; -import { UsageCollectionStart } from '@kbn/usage-collection-plugin/public'; -import { DashboardStart } from '@kbn/dashboard-plugin/public'; +import type { UsageCollectionStart } from '@kbn/usage-collection-plugin/public'; +import type { DashboardStart } from '@kbn/dashboard-plugin/public'; import type { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; import { from } from 'rxjs'; import { map } from 'rxjs'; import type { CloudSetup } from '@kbn/cloud-plugin/public'; import type { ServerlessPluginStart } from '@kbn/serverless/public'; -import { LogsSharedClientStartExports } from '@kbn/logs-shared-plugin/public'; -import { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; -import { SavedSearchPublicPluginStart } from '@kbn/saved-search-plugin/public'; +import type { LogsSharedClientStartExports } from '@kbn/logs-shared-plugin/public'; +import type { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; +import type { SavedSearchPublicPluginStart } from '@kbn/saved-search-plugin/public'; import type { ConfigSchema } from '.'; import { registerApmRuleTypes } from './components/alerting/rule_types/register_apm_rule_types'; import { registerEmbeddables } from './embeddable/register_embeddables'; @@ -84,7 +84,8 @@ import { getLazyAPMPolicyCreateExtension } from './components/fleet_integration/ import { getLazyAPMPolicyEditExtension } from './components/fleet_integration/lazy_apm_policy_edit_extension'; import { featureCatalogueEntry } from './feature_catalogue_entry'; import { APMServiceDetailLocator } from './locator/service_detail_locator'; -import { ITelemetryClient, TelemetryService } from './services/telemetry'; +import type { ITelemetryClient } from './services/telemetry'; +import { TelemetryService } from './services/telemetry'; export type ApmPluginSetup = ReturnType; export type ApmPluginStart = void; diff --git a/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selector.test.ts b/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selector.test.ts index 8a393b9c0e2cb..14b59f102b9d0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selector.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selector.test.ts @@ -6,7 +6,8 @@ */ import { LatencyAggregationType } from '../../common/latency_aggregation_types'; -import { getLatencyChartSelector, LatencyChartsResponse } from './latency_chart_selectors'; +import type { LatencyChartsResponse } from './latency_chart_selectors'; +import { getLatencyChartSelector } from './latency_chart_selectors'; import * as timeSeriesColor from '../components/shared/charts/helper/get_timeseries_color'; const latencyChartData = { diff --git a/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selectors.ts b/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selectors.ts index b4469ba2cfdf1..8e3a8a2cccefd 100644 --- a/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selectors.ts +++ b/x-pack/solutions/observability/plugins/apm/public/selectors/latency_chart_selectors.ts @@ -6,14 +6,14 @@ */ import { i18n } from '@kbn/i18n'; -import { LatencyAggregationType } from '../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../common/latency_aggregation_types'; import { asDuration } from '../../common/utils/formatters'; -import { APMChartSpec, Coordinate } from '../../typings/timeseries'; +import type { APMChartSpec, Coordinate } from '../../typings/timeseries'; import { ChartType, getTimeSeriesColor, } from '../components/shared/charts/helper/get_timeseries_color'; -import { APIReturnType } from '../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../services/rest/create_call_apm_api'; export type LatencyChartsResponse = APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/charts/latency'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/services/call_api.test.ts b/x-pack/solutions/observability/plugins/apm/public/services/call_api.test.ts index 89de087e506df..c2a38c8a76751 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/call_api.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/call_api.test.ts @@ -7,7 +7,7 @@ import { mockNow } from '../utils/test_helpers'; import { clearCache, callApi } from './rest/call_api'; -import { CoreStart, HttpSetup } from '@kbn/core/public'; +import type { CoreStart, HttpSetup } from '@kbn/core/public'; type CoreMock = CoreStart & { http: { diff --git a/x-pack/solutions/observability/plugins/apm/public/services/call_apm_api.test.ts b/x-pack/solutions/observability/plugins/apm/public/services/call_apm_api.test.ts index dceeba14504c3..866cb302c0795 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/call_apm_api.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/call_apm_api.test.ts @@ -7,7 +7,7 @@ import * as callApiExports from './rest/call_api'; import { createCallApmApi, callApmApi } from './rest/create_call_apm_api'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; const callApi = jest .spyOn(callApiExports, 'callApi') diff --git a/x-pack/solutions/observability/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts b/x-pack/solutions/observability/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts index 9f8f8dd4d44b3..4b2af86eb4a87 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ApmFetchDataResponse, FetchDataParams } from '@kbn/observability-plugin/public'; +import type { ApmFetchDataResponse, FetchDataParams } from '@kbn/observability-plugin/public'; import { callApmApi } from './create_call_apm_api'; export const fetchObservabilityOverviewPageData = async ({ diff --git a/x-pack/solutions/observability/plugins/apm/public/services/rest/call_api.ts b/x-pack/solutions/observability/plugins/apm/public/services/rest/call_api.ts index 44a491bc467ae..101e77c50e141 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/rest/call_api.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/rest/call_api.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { CoreSetup, CoreStart } from '@kbn/core/public'; +import type { CoreSetup, CoreStart } from '@kbn/core/public'; import { isString, startsWith } from 'lodash'; import LRU from 'lru-cache'; import hash from 'object-hash'; import { enableInspectEsQueries } from '@kbn/observability-plugin/public'; -import { FetchOptions } from '../../../common/fetch_options'; +import type { FetchOptions } from '../../../common/fetch_options'; function fetchOptionsWithDebug(fetchOptions: FetchOptions, inspectableEsQueriesEnabled: boolean) { const debugEnabled = diff --git a/x-pack/solutions/observability/plugins/apm/public/services/rest/create_call_apm_api.ts b/x-pack/solutions/observability/plugins/apm/public/services/rest/create_call_apm_api.ts index 0964517ef18b5..ae514eb5f5de9 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/rest/create_call_apm_api.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/rest/create_call_apm_api.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreSetup, CoreStart } from '@kbn/core/public'; +import type { CoreSetup, CoreStart } from '@kbn/core/public'; import type { ClientRequestParamsOf, ReturnOf, @@ -13,9 +13,10 @@ import type { ServerRouteRepository, } from '@kbn/server-route-repository'; import { formatRequest } from '@kbn/server-route-repository-utils'; -import { InspectResponse } from '@kbn/observability-plugin/typings/common'; -import { FetchOptions } from '../../../common/fetch_options'; -import { CallApi, callApi } from './call_api'; +import type { InspectResponse } from '@kbn/observability-plugin/typings/common'; +import type { FetchOptions } from '../../../common/fetch_options'; +import type { CallApi } from './call_api'; +import { callApi } from './call_api'; import type { APMServerRouteRepository, APIEndpoint } from '../../../server'; export type APMClientOptions = Omit & { diff --git a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_client.ts b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_client.ts index 3f9f870fb3ffe..5a11c4c610af3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_client.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_client.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; -import { +import type { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; +import type { ITelemetryClient, SearchQuerySubmittedParams, - TelemetryEventTypes, EntityInventoryAddDataParams, EmptyStateClickParams, } from './types'; +import { TelemetryEventTypes } from './types'; export class TelemetryClient implements ITelemetryClient { constructor(private analytics: AnalyticsServiceSetup) {} diff --git a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_events.ts b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_events.ts index 605c326f7cb09..1dbb27b60ad5f 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_events.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_events.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TelemetryEventTypes, TelemetryEvent } from './types'; +import type { TelemetryEvent } from './types'; +import { TelemetryEventTypes } from './types'; const searchQuerySubmittedEventType: TelemetryEvent = { eventType: TelemetryEventTypes.SEARCH_QUERY_SUBMITTED, diff --git a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_service.ts b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_service.ts index d5dfa09c1c9c6..a214de3d01980 100644 --- a/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_service.ts +++ b/x-pack/solutions/observability/plugins/apm/public/services/telemetry/telemetry_service.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; -import { TelemetryServiceSetupParams, ITelemetryClient, TelemetryEventParams } from './types'; +import type { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; +import type { TelemetryServiceSetupParams, ITelemetryClient, TelemetryEventParams } from './types'; import { apmTelemetryEventBasedTypes } from './telemetry_events'; import { TelemetryClient } from './telemetry_client'; diff --git a/x-pack/solutions/observability/plugins/apm/public/set_help_extension.ts b/x-pack/solutions/observability/plugins/apm/public/set_help_extension.ts index 0b79f81cce2d2..c367aa909994d 100644 --- a/x-pack/solutions/observability/plugins/apm/public/set_help_extension.ts +++ b/x-pack/solutions/observability/plugins/apm/public/set_help_extension.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { getUpgradeAssistantHref } from './components/shared/links/kibana'; export function setHelpExtension({ chrome, http }: CoreStart) { diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_instructions.test.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_instructions.test.tsx index 035844cfc02a7..6d8c50a43a181 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_instructions.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_instructions.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ import { render } from '@testing-library/react'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { AgentConfigInstructions } from './agent_config_instructions'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; import * as getCommands from './commands/get_apm_agent_commands'; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx index b06ad4be25dae..922fafeef944e 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx @@ -8,7 +8,8 @@ import React from 'react'; import type { ValuesType } from 'utility-types'; import { get } from 'lodash'; -import { EuiBasicTable, EuiText, EuiBasicTableColumn } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; export function AgentConfigurationTable({ diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx index 99c4ad9e55005..0abcb47787c8a 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx @@ -5,12 +5,12 @@ * 2.0. */ -import { Story } from '@storybook/react'; -import { HttpStart } from '@kbn/core/public'; +import type { Story } from '@storybook/react'; +import type { HttpStart } from '@kbn/core/public'; import React from 'react'; import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; import TutorialConfigAgent from '.'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; export type APIResponseType = APIReturnType<'GET /internal/apm/fleet/agents'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts index a8d03e651e5b7..69ad04a6c4f12 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts @@ -5,7 +5,7 @@ * 2.0. */ import { getPolicyOptions } from './get_policy_options'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; type APIResponseType = APIReturnType<'GET /internal/apm/fleet/agents'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.ts b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.ts index 2efc9cc463699..ceefc6367a4d8 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.ts +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/get_policy_options.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; -import { APIResponseType } from '.'; +import type { APIResponseType } from '.'; const DEFAULT_STANDALONE_CONFIG_LABEL = i18n.translate( 'xpack.apm.tutorial.agent_config.defaultStandaloneConfig', diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.test.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.test.tsx index 7ec6aecdc540f..137c7757b84eb 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ import { fireEvent, render, screen, within } from '@testing-library/react'; -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import React from 'react'; import { expectTextsInDocument, expectTextsNotInDocument } from '../../utils/test_helpers'; import TutorialConfigAgent from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.tsx index 129f15a3355cd..f87e2448bd9e3 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/index.tsx @@ -6,12 +6,13 @@ */ import { EuiLoadingSpinner } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import React, { useEffect, useMemo, useState } from 'react'; import styled from '@emotion/styled'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; import { AgentConfigInstructions } from './agent_config_instructions'; -import { getPolicyOptions, PolicyOption } from './get_policy_options'; +import type { PolicyOption } from './get_policy_options'; +import { getPolicyOptions } from './get_policy_options'; import { PolicySelector } from './policy_selector'; export type APIResponseType = APIReturnType<'GET /internal/apm/fleet/agents'>; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx index 4584326f2f3f2..ad46a12e4c34b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/opentelemetry_instructions.tsx @@ -7,17 +7,17 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiBasicTable, EuiLink, EuiSpacer, EuiText, - EuiBasicTableColumn, EuiButtonIcon, copyToClipboard, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; interface Props { apmServerUrl?: string; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/policy_selector.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/policy_selector.tsx index efea6de1bb59d..f006bc53f31ec 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/policy_selector.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/policy_selector.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { EuiComboBox, EuiComboBoxOptionOption, EuiFormRow, EuiLink, EuiText } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox, EuiFormRow, EuiLink, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { groupBy } from 'lodash'; import React from 'react'; -import { PolicyOption } from './get_policy_options'; +import type { PolicyOption } from './get_policy_options'; interface Props { options: PolicyOption[]; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/rum_script.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/rum_script.tsx index 704f42e7be594..e2a2734a45d02 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/rum_script.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/config_agent/rum_script.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import React from 'react'; import TutorialConfigAgent from '.'; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx index 6796c6576ab03..736446e07ae6c 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx @@ -16,10 +16,10 @@ import { EuiSpacer, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import React, { useEffect, useState } from 'react'; import styled from '@emotion/styled'; -import { APIReturnType } from '../../services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../services/rest/create_call_apm_api'; interface Props { http: HttpStart; diff --git a/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/tutorial_fleet_instructions.stories.tsx b/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/tutorial_fleet_instructions.stories.tsx index b5d0857042812..f17ec387c0e9b 100644 --- a/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/tutorial_fleet_instructions.stories.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/tutorial/tutorial_fleet_instructions/tutorial_fleet_instructions.stories.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { Story } from '@storybook/react'; +import type { Story } from '@storybook/react'; import React from 'react'; -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import TutorialFleetInstructions from '.'; interface Args { diff --git a/x-pack/solutions/observability/plugins/apm/public/update_badge.ts b/x-pack/solutions/observability/plugins/apm/public/update_badge.ts index a81a3181008d8..f4102c3a750c0 100644 --- a/x-pack/solutions/observability/plugins/apm/public/update_badge.ts +++ b/x-pack/solutions/observability/plugins/apm/public/update_badge.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; export function setReadonlyBadge({ application, chrome }: CoreStart) { const canSave = application.capabilities.apm.save; diff --git a/x-pack/solutions/observability/plugins/apm/public/utils/test_helpers.tsx b/x-pack/solutions/observability/plugins/apm/public/utils/test_helpers.tsx index a5d6f67829081..331dba862fd42 100644 --- a/x-pack/solutions/observability/plugins/apm/public/utils/test_helpers.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/utils/test_helpers.tsx @@ -9,13 +9,14 @@ // eslint-disable-next-line import/no-extraneous-dependencies import { render, waitFor } from '@testing-library/react'; +import type { MountRendererProps, ReactWrapper } from 'enzyme'; // eslint-disable-next-line import/no-extraneous-dependencies -import { mount, MountRendererProps, ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; // eslint-disable-next-line import/no-extraneous-dependencies import enzymeToJson from 'enzyme-to-json'; -import { Location } from 'history'; +import type { Location } from 'history'; import moment from 'moment'; -import { Moment } from 'moment-timezone'; +import type { Moment } from 'moment-timezone'; import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/apm/scripts/create_functional_tests_archive/index.ts b/x-pack/solutions/observability/plugins/apm/scripts/create_functional_tests_archive/index.ts index 48fdb06a99c38..5846b3b1bc6cb 100644 --- a/x-pack/solutions/observability/plugins/apm/scripts/create_functional_tests_archive/index.ts +++ b/x-pack/solutions/observability/plugins/apm/scripts/create_functional_tests_archive/index.ts @@ -10,7 +10,7 @@ import { execSync } from 'child_process'; import moment from 'moment'; import path from 'path'; import fs from 'fs'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { REPO_ROOT } from '@kbn/repo-info'; import { getEsClient } from '../shared/get_es_client'; import { parseIndexUrl } from '../shared/parse_index_url'; diff --git a/x-pack/solutions/observability/plugins/apm/scripts/diagnostics_bundle/diagnostics_bundle.ts b/x-pack/solutions/observability/plugins/apm/scripts/diagnostics_bundle/diagnostics_bundle.ts index 271a990382358..10d55aa2000e1 100644 --- a/x-pack/solutions/observability/plugins/apm/scripts/diagnostics_bundle/diagnostics_bundle.ts +++ b/x-pack/solutions/observability/plugins/apm/scripts/diagnostics_bundle/diagnostics_bundle.ts @@ -9,9 +9,10 @@ import { Client } from '@elastic/elasticsearch'; import fs from 'fs/promises'; -import axios, { AxiosRequestConfig } from 'axios'; +import type { AxiosRequestConfig } from 'axios'; +import axios from 'axios'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APIReturnType } from '../../public/services/rest/create_call_apm_api'; +import type { APIReturnType } from '../../public/services/rest/create_call_apm_api'; import { getDiagnosticsBundle } from '../../server/routes/diagnostics/get_diagnostics_bundle'; type DiagnosticsBundle = APIReturnType<'GET /internal/apm/diagnostics'>; diff --git a/x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts b/x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts index 0130e6512bdee..05223871b5a14 100644 --- a/x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts +++ b/x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts @@ -5,19 +5,15 @@ * 2.0. */ -import { - Project, - Node, +import type { FunctionDeclaration, FunctionExpression, ArrowFunction, MethodDeclaration, SourceFile, - SyntaxKind, PropertyAssignment, - ts, - TypeFormatFlags, } from 'ts-morph'; +import { Project, Node, SyntaxKind, ts, TypeFormatFlags } from 'ts-morph'; import Path from 'path'; import { execSync } from 'child_process'; import { argv } from 'yargs'; diff --git a/x-pack/solutions/observability/plugins/apm/scripts/shared/get_http_auth.ts b/x-pack/solutions/observability/plugins/apm/scripts/shared/get_http_auth.ts index 9a51000228d08..3685b06903078 100644 --- a/x-pack/solutions/observability/plugins/apm/scripts/shared/get_http_auth.ts +++ b/x-pack/solutions/observability/plugins/apm/scripts/shared/get_http_auth.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { KibanaConfig } from './read_kibana_config'; +import type { KibanaConfig } from './read_kibana_config'; export const getHttpAuth = (config: KibanaConfig) => { const httpAuth = diff --git a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_downstream_dependencies.ts b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_downstream_dependencies.ts index 478c96e77e568..8cc6e939429a0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_downstream_dependencies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_downstream_dependencies.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import type { FunctionRegistrationParameters } from '.'; -import { RandomSampler } from '../lib/helpers/get_random_sampler'; +import type { RandomSampler } from '../lib/helpers/get_random_sampler'; import { getAssistantDownstreamDependencies } from '../routes/assistant_functions/get_apm_downstream_dependencies'; interface DownstreamDependenciesFunctionRegistrationParams extends FunctionRegistrationParameters { diff --git a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_services_list.ts b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_services_list.ts index 20faf469a112e..70043b4f28444 100644 --- a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_services_list.ts +++ b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_services_list.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { FunctionRegistrationParameters } from '.'; +import type { FunctionRegistrationParameters } from '.'; import { ServiceHealthStatus } from '../../common/service_health_status'; import { getApmAlertsClient } from '../lib/helpers/get_apm_alerts_client'; import { getMlClient } from '../lib/helpers/get_ml_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_timeseries.ts b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_timeseries.ts index 63bdbd422c658..4015bfb95bb81 100644 --- a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/get_apm_timeseries.ts @@ -4,11 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { FromSchema } from 'json-schema-to-ts'; +import type { FromSchema } from 'json-schema-to-ts'; import { omit } from 'lodash'; import { FunctionVisibility } from '@kbn/observability-ai-assistant-plugin/common'; -import { FunctionRegistrationParameters } from '.'; -import { ApmTimeseries, getApmTimeseries } from '../routes/assistant_functions/get_apm_timeseries'; +import type { FunctionRegistrationParameters } from '.'; +import type { ApmTimeseries } from '../routes/assistant_functions/get_apm_timeseries'; +import { getApmTimeseries } from '../routes/assistant_functions/get_apm_timeseries'; import { NON_EMPTY_STRING } from '../utils/non_empty_string_ref'; const parameters = { diff --git a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/index.ts b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/index.ts index 2354d85d5f958..9c98e1f513fca 100644 --- a/x-pack/solutions/observability/plugins/apm/server/assistant_functions/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/assistant_functions/index.ts @@ -14,7 +14,7 @@ import type { import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import type { APMConfig } from '..'; import type { ApmFeatureFlags } from '../../common/apm_feature_flags'; -import { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; import { getApmEventClient } from '../lib/helpers/get_apm_event_client'; import { getRandomSampler } from '../lib/helpers/get_random_sampler'; import type { diff --git a/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.test.ts b/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.test.ts index c7b48846520bd..6cfc4096c3564 100644 --- a/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.test.ts @@ -8,7 +8,7 @@ import type { GetDeprecationsContext, IScopedClusterClient, CoreSetup } from '@kbn/core/server'; import { elasticsearchServiceMock, loggingSystemMock } from '@kbn/core/server/mocks'; import { getDeprecationsInfo } from './apm_user_role'; -import { SecurityPluginSetup } from '@kbn/security-plugin/server'; +import type { SecurityPluginSetup } from '@kbn/security-plugin/server'; let context: GetDeprecationsContext; let esClient: jest.Mocked; diff --git a/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.ts b/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.ts index d99e6a0a39f94..7336e6267115f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.ts +++ b/x-pack/solutions/observability/plugins/apm/server/deprecations/apm_user_role.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { SecurityGetRoleMappingResponse, SecurityGetUserResponse, } from '@elastic/elasticsearch/lib/api/types'; diff --git a/x-pack/solutions/observability/plugins/apm/server/deprecations/index.ts b/x-pack/solutions/observability/plugins/apm/server/deprecations/index.ts index 1d3dd0b3a5b57..341a4741247ad 100644 --- a/x-pack/solutions/observability/plugins/apm/server/deprecations/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/deprecations/index.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreSetup, Logger } from '@kbn/core/server'; -import { SecurityPluginSetup } from '@kbn/security-plugin/server'; +import type { CoreSetup, Logger } from '@kbn/core/server'; +import type { SecurityPluginSetup } from '@kbn/security-plugin/server'; import { getDeprecationsInfo as getApmUserRoleDeprecationsInfo } from './apm_user_role'; export interface DeprecationApmDeps { diff --git a/x-pack/solutions/observability/plugins/apm/server/feature.ts b/x-pack/solutions/observability/plugins/apm/server/feature.ts index 5fdb4a90bc16d..93ff6927246d5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/feature.ts +++ b/x-pack/solutions/observability/plugins/apm/server/feature.ts @@ -6,9 +6,9 @@ */ import { i18n } from '@kbn/i18n'; -import { LicenseType } from '@kbn/licensing-plugin/common/types'; +import type { LicenseType } from '@kbn/licensing-plugin/common/types'; import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { +import type { LicensingPluginSetup, LicensingApiRequestHandlerContext, } from '@kbn/licensing-plugin/server'; @@ -16,7 +16,8 @@ import { import { APM_INDEX_SETTINGS_SAVED_OBJECT_TYPE } from '@kbn/apm-data-access-plugin/server/saved_objects/apm_indices'; import { ApmRuleType } from '@kbn/rule-data-utils'; import { ALERTING_FEATURE_ID } from '@kbn/alerting-plugin/common'; -import { KibanaFeatureConfig, KibanaFeatureScope } from '@kbn/features-plugin/common'; +import type { KibanaFeatureConfig } from '@kbn/features-plugin/common'; +import { KibanaFeatureScope } from '@kbn/features-plugin/common'; import { APM_SERVER_FEATURE_ID } from '../common/rules/apm_rule_types'; const alertingFeatures = Object.values(ApmRuleType).map((ruleTypeId) => ({ diff --git a/x-pack/solutions/observability/plugins/apm/server/index.ts b/x-pack/solutions/observability/plugins/apm/server/index.ts index f3ebcec582a46..a37f453e7112a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/index.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { offeringBasedSchema, schema, TypeOf } from '@kbn/config-schema'; -import { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; +import type { TypeOf } from '@kbn/config-schema'; +import { offeringBasedSchema, schema } from '@kbn/config-schema'; +import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; import { maxSuggestions } from '@kbn/observability-plugin/common'; import { SearchAggregatedTransactionSetting } from '../common/aggregated_transactions'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/anomaly_search.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/anomaly_search.ts index 4192d35d796f3..bd1f2a05fbf3f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/anomaly_search.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/anomaly_search.ts @@ -6,7 +6,7 @@ */ import type { ESSearchRequest, ESSearchResponse } from '@kbn/es-types'; -import { MlClient } from '../helpers/get_ml_client'; +import type { MlClient } from '../helpers/get_ml_client'; export const ML_SERVICE_NAME_FIELD = 'partition_field_value'; export const ML_TRANSACTION_TYPE_FIELD = 'by_field_value'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_anomaly_query.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_anomaly_query.ts index 344a6cc416497..dce5b5b86a3ae 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_anomaly_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_anomaly_query.ts @@ -5,12 +5,10 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { termQuery, termsQuery } from '@kbn/observability-plugin/server'; -import { - AnomalyDetectorType, - getAnomalyDetectorIndex, -} from '../../../common/anomaly_detection/apm_ml_detectors'; +import type { AnomalyDetectorType } from '../../../common/anomaly_detection/apm_ml_detectors'; +import { getAnomalyDetectorIndex } from '../../../common/anomaly_detection/apm_ml_detectors'; export function apmMlAnomalyQuery({ serviceName, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_jobs_query.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_jobs_query.ts index 2720dbdecfe1c..f783d545e672b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_jobs_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/apm_ml_jobs_query.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; -import { ApmMlJob } from '../../../common/anomaly_detection/apm_ml_job'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { ApmMlJob } from '../../../common/anomaly_detection/apm_ml_job'; export function apmMlJobsQuery(jobs: ApmMlJob[]) { if (!jobs.length) { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/create_anomaly_detection_jobs.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/create_anomaly_detection_jobs.ts index fd456d6b203d4..9a557247b551d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/create_anomaly_detection_jobs.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/create_anomaly_detection_jobs.ts @@ -6,19 +6,19 @@ */ import Boom from '@hapi/boom'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; import { snakeCase } from 'lodash'; import moment from 'moment'; import { v4 as uuidv4 } from 'uuid'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { ElasticsearchCapabilities } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchCapabilities } from '@kbn/core-elasticsearch-server'; import { ML_ERRORS } from '../../../common/anomaly_detection'; import { METRICSET_NAME, PROCESSOR_EVENT } from '../../../common/es_fields/apm'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { environmentQuery } from '../../../common/utils/environment_query'; import { withApmSpan } from '../../utils/with_apm_span'; -import { MlClient } from '../helpers/get_ml_client'; +import type { MlClient } from '../helpers/get_ml_client'; import { APM_ML_JOB_GROUP, ML_MODULE_ID_APM_TRANSACTION } from './constants'; import { getAnomalyDetectionJobs } from './get_anomaly_detection_jobs'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_detection_jobs.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_detection_jobs.ts index 46b87f6247dcb..00bc519a2798d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_detection_jobs.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_detection_jobs.ts @@ -6,7 +6,7 @@ */ import Boom from '@hapi/boom'; import { ML_ERRORS } from '../../../common/anomaly_detection'; -import { MlClient } from '../helpers/get_ml_client'; +import type { MlClient } from '../helpers/get_ml_client'; import { getMlJobsWithAPMGroup } from './get_ml_jobs_with_apm_group'; export function getAnomalyDetectionJobs(mlClient?: MlClient) { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_timeseries.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_timeseries.ts index 335ee0005911c..32da4b6637228 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_anomaly_timeseries.ts @@ -9,7 +9,7 @@ import type { Logger } from '@kbn/logging'; import { compact, keyBy } from 'lodash'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { parseInterval } from '@kbn/data-plugin/common'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { apmMlAnomalyQuery } from './apm_ml_anomaly_query'; import { AnomalyDetectorType, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_ml_jobs_with_apm_group.ts b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_ml_jobs_with_apm_group.ts index c0070fbaa690c..63d7e9f49036c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_ml_jobs_with_apm_group.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/anomaly_detection/get_ml_jobs_with_apm_group.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { DATAFEED_STATE, JOB_STATE } from '@kbn/ml-plugin/common'; -import { MlAnomalyDetectors } from '@kbn/ml-plugin/server'; -import { ApmMlJob } from '../../../common/anomaly_detection/apm_ml_job'; -import { Environment } from '../../../common/environment_rt'; +import type { DATAFEED_STATE, JOB_STATE } from '@kbn/ml-plugin/common'; +import type { MlAnomalyDetectors } from '@kbn/ml-plugin/server'; +import type { ApmMlJob } from '../../../common/anomaly_detection/apm_ml_job'; +import type { Environment } from '../../../common/environment_rt'; import { withApmSpan } from '../../utils/with_apm_span'; import { APM_ML_JOB_GROUP } from './constants'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/index.ts index b0e2d99fefd5b..236c9c4f77c35 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/index.ts @@ -6,9 +6,10 @@ */ import { merge } from 'lodash'; -import { Logger } from '@kbn/core/server'; -import { tasks, TelemetryTaskExecutorParams } from './tasks'; -import { APMDataTelemetry } from '../types'; +import type { Logger } from '@kbn/core/server'; +import type { TelemetryTaskExecutorParams } from './tasks'; +import { tasks } from './tasks'; +import type { APMDataTelemetry } from '../types'; type CollectTelemetryParams = TelemetryTaskExecutorParams & { isProd: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.test.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.test.ts index 7bba841a8dee5..c6689a30c7a1f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.test.ts @@ -9,7 +9,7 @@ import { savedObjectsClientMock } from '@kbn/core-saved-objects-api-server-mocks import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { tasks } from './tasks'; import { SERVICE_NAME, SERVICE_ENVIRONMENT, AT_TIMESTAMP } from '../../../../common/es_fields/apm'; -import { IndicesStatsResponse } from '../telemetry_client'; +import type { IndicesStatsResponse } from '../telemetry_client'; describe('data telemetry collection tasks', () => { const indices = { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.ts index 1ab2a6d44969b..3a8747a65936a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/collect_data_telemetry/tasks.ts @@ -9,7 +9,7 @@ import { getKqlFieldNamesFromExpression } from '@kbn/es-query'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { createHash } from 'crypto'; import { flatten, merge, pickBy, sortBy, sum, uniq, without } from 'lodash'; -import { SavedObjectsClient } from '@kbn/core/server'; +import type { SavedObjectsClient } from '@kbn/core/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { AGENT_NAMES, @@ -57,14 +57,14 @@ import { TRANSACTION_TYPE, USER_AGENT_ORIGINAL, } from '../../../../common/es_fields/apm'; +import type { SavedServiceGroup } from '../../../../common/service_groups'; import { APM_SERVICE_GROUP_SAVED_OBJECT_TYPE, MAX_NUMBER_OF_SERVICE_GROUPS, - SavedServiceGroup, } from '../../../../common/service_groups'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; -import { +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { APMDataTelemetry, APMPerService, APMTelemetry, @@ -74,12 +74,10 @@ import { MetricSupportingRollUp, } from '../types'; import { APM_AGENT_CONFIGURATION_INDEX } from '../../../routes/settings/apm_indices/apm_system_index_constants'; -import { IndicesStatsResponse, TelemetryClient } from '../telemetry_client'; +import type { IndicesStatsResponse, TelemetryClient } from '../telemetry_client'; import { RollupInterval } from '../../../../common/rollup'; -import { - APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE, - SavedApmCustomDashboard, -} from '../../../../common/custom_dashboards'; +import type { SavedApmCustomDashboard } from '../../../../common/custom_dashboards'; +import { APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../../../common/custom_dashboards'; type ISavedObjectsClient = Pick; const TIME_RANGES = ['1d', 'all'] as const; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/index.ts index 5c976c8a499a7..5a88e26394490 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/index.ts @@ -5,25 +5,21 @@ * 2.0. */ -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { - CoreSetup, - Logger, - SavedObjectsClientContract, - SavedObjectsErrorHelpers, -} from '@kbn/core/server'; -import { +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { CoreSetup, Logger, SavedObjectsClientContract } from '@kbn/core/server'; +import { SavedObjectsErrorHelpers } from '@kbn/core/server'; +import type { TaskManagerSetupContract, TaskManagerStartContract, } from '@kbn/task-manager-plugin/server'; -import { APMDataAccessConfig } from '@kbn/apm-data-access-plugin/server'; +import type { APMDataAccessConfig } from '@kbn/apm-data-access-plugin/server'; import { APM_TELEMETRY_SAVED_OBJECT_ID, APM_TELEMETRY_SAVED_OBJECT_TYPE, } from '../../../common/apm_saved_object_constants'; import { getInternalSavedObjectsClient } from '../helpers/get_internal_saved_objects_client'; import { collectDataTelemetry } from './collect_data_telemetry'; -import { APMUsage } from './types'; +import type { APMUsage } from './types'; import { apmSchema } from './schema'; import { getTelemetryClient } from './telemetry_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/schema.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/schema.ts index d351cc40ae721..68706353eb026 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/schema.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/schema.ts @@ -5,8 +5,13 @@ * 2.0. */ -import { MakeSchemaFrom } from '@kbn/usage-collection-plugin/server'; -import { AggregatedTransactionsCounts, APMUsage, APMPerService, DataStreamCombined } from './types'; +import type { MakeSchemaFrom } from '@kbn/usage-collection-plugin/server'; +import type { + AggregatedTransactionsCounts, + APMUsage, + APMPerService, + DataStreamCombined, +} from './types'; import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; const aggregatedTransactionCountSchema: MakeSchemaFrom = { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/telemetry_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/telemetry_client.ts index afd3ec0cc87e4..80548a50e15fc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/telemetry_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/telemetry_client.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { estypes } from '@elastic/elasticsearch'; -import { CoreSetup } from '@kbn/core/server'; -import { ESSearchRequest, ESSearchResponse } from '@kbn/es-types'; +import type { estypes } from '@elastic/elasticsearch'; +import type { CoreSetup } from '@kbn/core/server'; +import type { ESSearchRequest, ESSearchResponse } from '@kbn/es-types'; import { unwrapEsResponse } from '@kbn/observability-plugin/server'; interface RequiredSearchParams { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/types.ts b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/types.ts index 757b8bad533ba..3ab1eb0d5b767 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/apm_telemetry/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { DeepPartial } from 'utility-types'; +import type { DeepPartial } from 'utility-types'; import type { AgentName } from '@kbn/elastic-agent-utils'; -import { RollupInterval } from '../../../common/rollup'; +import type { RollupInterval } from '../../../common/rollup'; export interface TimeframeMap { '1d': number; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts b/x-pack/solutions/observability/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts index 32c805b330327..c5d05a928b139 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/connections/exclude_rum_exit_spans_query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { AGENT_NAME } from '../../../common/es_fields/apm'; import { RUM_AGENT_NAMES } from '../../../common/agent_name'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts index f81999afbb18c..e1eeaad5cb899 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact.ts @@ -6,7 +6,10 @@ */ import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; -import { ConnectionStatsItem, ConnectionStatsItemWithImpact } from '../../../../common/connections'; +import type { + ConnectionStatsItem, + ConnectionStatsItemWithImpact, +} from '../../../../common/connections'; export function getConnectionStatsItemsWithRelativeImpact( items: ConnectionStatsItem[] diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts index cbcad6dea5baf..4263270f20474 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import objectHash from 'object-hash'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import { AGENT_NAME, EVENT_OUTCOME, @@ -25,10 +25,11 @@ import { SPAN_TYPE, } from '../../../../common/es_fields/apm'; import { withApmSpan } from '../../../utils/with_apm_span'; -import { Node, NodeType } from '../../../../common/connections'; +import type { Node } from '../../../../common/connections'; +import { NodeType } from '../../../../common/connections'; import { excludeRumExitSpansQuery } from '../exclude_rum_exit_spans_query'; -import { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../helpers/get_random_sampler'; +import type { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../helpers/get_random_sampler'; type Destination = { dependencyName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts index 7c5977ddbf854..a583e4de02c92 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts @@ -7,9 +7,9 @@ import { sum } from 'lodash'; import objectHash from 'object-hash'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { rangeQuery } from '@kbn/observability-plugin/server'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; @@ -30,7 +30,7 @@ import { NodeType } from '../../../../common/connections'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; import { excludeRumExitSpansQuery } from '../exclude_rum_exit_spans_query'; -import { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; import { getDocumentTypeFilterForServiceDestinationStatistics } from '../../helpers/spans/get_is_using_service_destination_metrics'; const MAX_ITEMS = 1500; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/index.ts index 328a9cb98523c..ad0eb8b9ab95c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/index.ts @@ -5,16 +5,16 @@ * 2.0. */ -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { merge } from 'lodash'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { joinByKey } from '../../../../common/utils/join_by_key'; import { getStats } from './get_stats'; import { getDestinationMap } from './get_destination_map'; import { calculateThroughputWithRange } from '../../helpers/calculate_throughput'; import { withApmSpan } from '../../../utils/with_apm_span'; -import { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../helpers/get_random_sampler'; +import type { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../helpers/get_random_sampler'; export function getConnectionStats({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/deprecations/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/deprecations/index.ts index f6e75bf5aa301..ae3b1fc00d6be 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/deprecations/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/deprecations/index.ts @@ -8,7 +8,7 @@ import { errors } from '@elastic/elasticsearch'; import Boom from '@hapi/boom'; import { i18n } from '@kbn/i18n'; -import { DeprecationsDetails, DocLinksServiceSetup } from '@kbn/core/server'; +import type { DeprecationsDetails, DocLinksServiceSetup } from '@kbn/core/server'; function deprecationError( title: string, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client.ts index 6754d0b75dc6d..108e738b15dd6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { KibanaRequest } from '@kbn/core/server'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { entitiesAliasPattern, ENTITY_LATEST, ENTITY_HISTORY } from '@kbn/entities-schema'; import { unwrapEsResponse } from '@kbn/observability-plugin/common/utils/unwrap_es_response'; -import { +import type { MsearchMultisearchBody, MsearchMultisearchHeader, } from '@elastic/elasticsearch/lib/api/types'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client.ts index 7a9274e1f3e77..e5cc51084cd9b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; -import { APMRouteHandlerResources } from '../../../../routes/apm_routes/register_apm_server_routes'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { APMRouteHandlerResources } from '../../../../routes/apm_routes/register_apm_server_routes'; type InfraMetricsSearchParams = Omit & { size: number; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts index 272f482cdc8eb..e65c8b21b3f31 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts @@ -8,7 +8,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { unwrapEsResponse } from '@kbn/observability-plugin/server'; import type { ESSearchResponse, ESSearchRequest } from '@kbn/es-types'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { callAsyncWithDebug, getDebugBody, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.test.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.test.ts index 2479cad9f213b..a45c754c9a836 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.test.ts @@ -12,7 +12,10 @@ import type { KibanaRequest, SavedObjectsClientContract, } from '@kbn/core/server'; -import { AlertsClient, RuleRegistryPluginStartContract } from '@kbn/rule-registry-plugin/server'; +import type { + AlertsClient, + RuleRegistryPluginStartContract, +} from '@kbn/rule-registry-plugin/server'; describe('get_apm_alerts_client', () => { let ruleRegistryMock: jest.Mocked; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.ts index fb519e2ef859f..b8a2e21316723 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_alerts_client.ts @@ -6,11 +6,11 @@ */ import { isEmpty } from 'lodash'; -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; -import { DataTier } from '@kbn/observability-shared-plugin/common'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; +import type { DataTier } from '@kbn/observability-shared-plugin/common'; import { searchExcludedDataTiers } from '@kbn/observability-plugin/common/ui_settings_keys'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { getDataTierFilterCombined } from '@kbn/apm-data-access-plugin/server/utils'; import { APM_ALERTING_RULE_TYPE_IDS } from '../../../common/alerting/config/apm_alerting_feature_ids'; import type { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_data_access_services.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_data_access_services.ts index 176507e6e3456..6484eb1ad3603 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_data_access_services.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_data_access_services.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ApmDataAccessServices, APMEventClient } from '@kbn/apm-data-access-plugin/server'; -import { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; +import type { ApmDataAccessServices, APMEventClient } from '@kbn/apm-data-access-plugin/server'; +import type { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; export async function getApmDataAccessServices({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_event_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_event_client.ts index 8d2f61a20500d..f595e2b4b7849 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_event_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_apm_event_client.ts @@ -6,11 +6,11 @@ */ import { UI_SETTINGS } from '@kbn/data-plugin/common'; -import { DataTier } from '@kbn/observability-shared-plugin/common'; +import type { DataTier } from '@kbn/observability-shared-plugin/common'; import { searchExcludedDataTiers } from '@kbn/observability-plugin/common/ui_settings_keys'; import { APMEventClient } from './create_es_client/create_apm_event_client'; import { withApmSpan } from '../../utils/with_apm_span'; -import { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; +import type { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; import { inspectableEsQueriesMap } from '../../routes/apm_routes/register_apm_server_routes'; export async function getApmEventClient({ diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.test.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.test.ts index d522eec585a3a..301d7f7422d5f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.test.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { APMError } from '../../../typings/es_schemas/ui/apm_error'; +import type { APMError } from '../../../typings/es_schemas/ui/apm_error'; import { NOT_AVAILABLE_LABEL } from '../../../common/i18n'; import { getErrorName } from './get_error_name'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.ts index 5d4977a73b42f..566900d1efc29 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_error_name.ts @@ -6,8 +6,8 @@ */ import { NOT_AVAILABLE_LABEL } from '../../../common/i18n'; -import { Maybe } from '../../../typings/common'; -import { APMError } from '../../../typings/es_schemas/ui/apm_error'; +import type { Maybe } from '../../../typings/common'; +import type { APMError } from '../../../typings/es_schemas/ui/apm_error'; export function getErrorName({ error, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_es_capabilities.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_es_capabilities.ts index ab262270075f0..b64081e72081f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_es_capabilities.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_es_capabilities.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; export async function getESCapabilities({ core }: APMRouteHandlerResources) { const es = (await core.start()).elasticsearch; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_internal_saved_objects_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_internal_saved_objects_client.ts index a69a705b2f374..9566fb9895928 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_internal_saved_objects_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_internal_saved_objects_client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/server'; +import type { CoreStart } from '@kbn/core/server'; export async function getInternalSavedObjectsClient(coreStart: CoreStart) { return coreStart.savedObjects.createInternalRepository(); diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_ml_client.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_ml_client.ts index b94a1abd67e2a..81d01981acbe2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_ml_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_ml_client.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { MlAnomalyDetectors, MlMlSystem, MlModules } from '@kbn/ml-plugin/server'; +import type { MlAnomalyDetectors, MlMlSystem, MlModules } from '@kbn/ml-plugin/server'; import { isActivePlatinumLicense } from '../../../common/license_check'; -import { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; +import type { MinimalAPMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; export interface MlClient { mlSystem: MlMlSystem; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_random_sampler/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_random_sampler/index.ts index d00dbfbb55589..052f7a6eb4c44 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_random_sampler/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/get_random_sampler/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart, KibanaRequest } from '@kbn/core/server'; +import type { CoreStart, KibanaRequest } from '@kbn/core/server'; import seedrandom from 'seedrandom'; export type RandomSampler = Awaited>; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/spans/get_is_using_service_destination_metrics.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/spans/get_is_using_service_destination_metrics.ts index 07ec546196707..7c6ad46b63db2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/spans/get_is_using_service_destination_metrics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/spans/get_is_using_service_destination_metrics.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getDocumentTypeFilterForServiceDestinationStatistics } from '@kbn/apm-data-access-plugin/server/utils'; @@ -15,7 +15,7 @@ import { SPAN_DURATION, SPAN_NAME, } from '../../../../common/es_fields/apm'; -import { APMEventClient } from '../create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../create_es_client/create_apm_event_client'; export function getProcessorEventForServiceDestinationStatistics( searchServiceDestinationMetrics: boolean diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transaction_error_rate.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transaction_error_rate.ts index 768a34fee6e5d..3121e4007044f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transaction_error_rate.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transaction_error_rate.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { AggregationsSumAggregation, AggregationsValueCountAggregation, QueryDslQueryContainer, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.test.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.test.ts index 0eecdfea916ea..2c8d32efc3f55 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.test.ts @@ -6,7 +6,8 @@ */ import { getIsUsingTransactionEvents } from './get_is_using_transaction_events'; -import { SearchParamsMock, inspectSearchParams } from '../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../utils/test_helpers'; import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions'; const mockResponseNoHits = { diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.ts index 7c2af7a4b5d84..38b8821ef956e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/get_is_using_transaction_events.ts @@ -7,11 +7,11 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { getSearchTransactionsEvents } from '.'; -import { APMEventClient } from '../create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../create_es_client/create_apm_event_client'; import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; -import { APMConfig } from '../../..'; +import type { APMConfig } from '../../..'; export async function getIsUsingTransactionEvents({ config, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/index.ts b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/index.ts index 8bf8c0cb74a70..b59001418a8f3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/helpers/transactions/index.ts @@ -7,7 +7,7 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions'; import { TRANSACTION_DURATION, @@ -16,8 +16,8 @@ import { PARENT_ID, TRANSACTION_DURATION_SUMMARY, } from '../../../../common/es_fields/apm'; -import { APMConfig } from '../../..'; -import { APMEventClient } from '../create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; +import type { APMEventClient } from '../create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../../common/document_type'; export { getBackwardCompatibleDocumentTypeFilter } from '@kbn/apm-data-access-plugin/server/utils'; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query.ts b/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query.ts index fdefd174c4350..560b442e1eb90 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { kqlQuery } from '@kbn/observability-plugin/server'; -import { ServiceGroup } from '../../common/service_groups'; +import type { ServiceGroup } from '../../common/service_groups'; export function serviceGroupQuery(serviceGroup?: ServiceGroup | null): QueryDslQueryContainer[] { return serviceGroup ? kqlQuery(serviceGroup?.kuery) : []; diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query_with_overflow.ts b/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query_with_overflow.ts index f0f1009b7d036..12f9a2d9978fc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query_with_overflow.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/service_group_query_with_overflow.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; import { SERVICE_NAME } from '../../common/es_fields/apm'; -import { ServiceGroup } from '../../common/service_groups'; +import type { ServiceGroup } from '../../common/service_groups'; export function serviceGroupWithOverflowQuery( serviceGroup?: ServiceGroup | null diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_coldstart_rate.ts b/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_coldstart_rate.ts index 57a6bebc8af78..e61b30341c805 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_coldstart_rate.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_coldstart_rate.ts @@ -15,7 +15,7 @@ import { } from '../../../common/es_fields/apm'; import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { Coordinate } from '../../../typings/timeseries'; +import type { Coordinate } from '../../../typings/timeseries'; import { getBackwardCompatibleDocumentTypeFilter, getProcessorEventForTransactions, @@ -27,7 +27,7 @@ import { getTransactionColdstartRateTimeSeries, } from '../helpers/transaction_coldstart_rate'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../helpers/create_es_client/create_apm_event_client'; export async function getColdstartRate({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_failed_transaction_rate.ts b/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_failed_transaction_rate.ts index 4b1ee98c48cd3..6acfc4e548730 100644 --- a/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_failed_transaction_rate.ts +++ b/x-pack/solutions/observability/plugins/apm/server/lib/transaction_groups/get_failed_transaction_rate.ts @@ -4,15 +4,15 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { ApmServiceTransactionDocumentType } from '../../../common/document_type'; +import type { ApmServiceTransactionDocumentType } from '../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; -import { RollupInterval } from '../../../common/rollup'; +import type { RollupInterval } from '../../../common/rollup'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { Coordinate } from '../../../typings/timeseries'; -import { APMEventClient } from '../helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { APMEventClient } from '../helpers/create_es_client/create_apm_event_client'; import { calculateFailedTransactionRate, getFailedTransactionRateTimeSeries, diff --git a/x-pack/solutions/observability/plugins/apm/server/plugin.ts b/x-pack/solutions/observability/plugins/apm/server/plugin.ts index 90a0cb175d6cb..e8e844b799849 100644 --- a/x-pack/solutions/observability/plugins/apm/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/apm/server/plugin.ts @@ -6,11 +6,18 @@ */ import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; -import { CoreSetup, CoreStart, Logger, Plugin, PluginInitializerContext } from '@kbn/core/server'; +import type { + CoreSetup, + CoreStart, + Logger, + Plugin, + PluginInitializerContext, +} from '@kbn/core/server'; import { alertsLocatorID } from '@kbn/observability-plugin/common'; import { Dataset } from '@kbn/rule-registry-plugin/server'; import { isEmpty, mapValues } from 'lodash'; -import { APMConfig, APM_SERVER_FEATURE_ID } from '.'; +import type { APMConfig } from '.'; +import { APM_SERVER_FEATURE_ID } from '.'; import { apmTutorialCustomIntegration } from '../common/tutorial/tutorials'; import { registerAssistantFunctions } from './assistant_functions'; import { registerDeprecations } from './deprecations'; @@ -23,10 +30,8 @@ import { registerApmRuleTypes, } from './routes/alerts/register_apm_rule_types'; import { getGlobalApmServerRouteRepository } from './routes/apm_routes/get_global_apm_server_route_repository'; -import { - APMRouteHandlerResources, - registerRoutes, -} from './routes/apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from './routes/apm_routes/register_apm_server_routes'; +import { registerRoutes } from './routes/apm_routes/register_apm_server_routes'; import { getAlertDetailsContextHandler } from './routes/assistant_functions/get_observability_alert_details_context'; import { addApiKeysToEveryPackagePolicyIfMissing } from './routes/fleet/api_keys/add_api_keys_to_policies_if_missing'; import { registerFleetPolicyCallbacks } from './routes/fleet/register_fleet_policy_callbacks'; @@ -41,7 +46,11 @@ import { apmTelemetry, } from './saved_objects'; import { tutorialProvider } from './tutorial'; -import { APMPluginSetup, APMPluginSetupDependencies, APMPluginStartDependencies } from './types'; +import type { + APMPluginSetup, + APMPluginSetupDependencies, + APMPluginStartDependencies, +} from './types'; export class APMPlugin implements Plugin diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/fetch_agents_latest_version.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/fetch_agents_latest_version.ts index e6c92d7af0d7e..c521a86550d98 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/fetch_agents_latest_version.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/fetch_agents_latest_version.ts @@ -5,15 +5,15 @@ * 2.0. */ import Boom from '@hapi/boom'; -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import fetch from 'node-fetch'; -import { +import type { ElasticApmAgentLatestVersion, OtelAgentLatestVersion, } from '../../../common/agent_explorer'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; import { ErrorWithStatusCode } from './error_with_status_code'; const MISSING_CONFIGURATION = i18n.translate( diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_instances.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_instances.ts index f0ccdd43fabb0..ffd1035d01739 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_instances.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_instances.ts @@ -16,7 +16,7 @@ import { SERVICE_NODE_NAME, } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; const MAX_NUMBER_OF_SERVICE_NODES = 500; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_url_repository.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_url_repository.ts index 64b18eff090c4..6f8b8e34840fc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_url_repository.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agent_url_repository.ts @@ -6,7 +6,7 @@ */ import { isOpenTelemetryAgentName } from '../../../common/agent_name'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; const agentsDocPageName: Partial> = { go: 'go', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents.ts index b52febfe1a9a1..c4c50b0e81563 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents.ts @@ -6,9 +6,9 @@ */ import { isOpenTelemetryAgentName } from '../../../common/agent_name'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; import { getAgentDocsPageUrl } from './get_agent_url_repository'; import { getAgentsItems } from './get_agents_items'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents_items.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents_items.ts index 21ec876a20282..364251978dec5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents_items.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/get_agents_items.ts @@ -17,9 +17,9 @@ import { SERVICE_NODE_NAME, } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; import { MAX_NUMBER_OF_SERVICES } from '../services/get_services/get_services_items'; interface AggregationParams { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/route.ts index 870d6a3de11f2..31d454efc6626 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_explorer/route.ts @@ -10,12 +10,12 @@ import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getRandomSampler } from '../../lib/helpers/get_random_sampler'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, probabilityRt, rangeRt } from '../default_api_types'; -import { AgentExplorerAgentsResponse, getAgents } from './get_agents'; -import { AgentExplorerAgentInstancesResponse, getAgentInstances } from './get_agent_instances'; -import { - AgentLatestVersionsResponse, - fetchAgentsLatestVersion, -} from './fetch_agents_latest_version'; +import type { AgentExplorerAgentsResponse } from './get_agents'; +import { getAgents } from './get_agents'; +import type { AgentExplorerAgentInstancesResponse } from './get_agent_instances'; +import { getAgentInstances } from './get_agent_instances'; +import type { AgentLatestVersionsResponse } from './fetch_agents_latest_version'; +import { fetchAgentsLatestVersion } from './fetch_agents_latest_version'; const agentExplorerRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/get_agents_per_service', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/create_agent_key.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/create_agent_key.ts index 7e26020bc26b9..c0597ebf59593 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/create_agent_key.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/create_agent_key.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SecurityCreateApiKeyResponse } from '@elastic/elasticsearch/lib/api/types'; +import type { SecurityCreateApiKeyResponse } from '@elastic/elasticsearch/lib/api/types'; import Boom from '@hapi/boom'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApmPluginRequestHandlerContext } from '../typings'; import { ClusterPrivilegeType } from '../../../common/privilege_type'; const resource = '*'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys.ts index 120b520a73edc..8340e28f2d54e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ApiKey } from '@kbn/security-plugin-types-common'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApiKey } from '@kbn/security-plugin-types-common'; +import type { ApmPluginRequestHandlerContext } from '../typings'; export interface AgentKeysResponse { agentKeys: ApiKey[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts index 5c9a9b833b3d6..4543705ef43fc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/server'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { CoreStart } from '@kbn/core/server'; +import type { ApmPluginRequestHandlerContext } from '../typings'; export interface AgentKeysPrivilegesResponse { areApiKeysEnabled: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts index 0f54ab1ea05a8..17317e7e26e31 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApmPluginRequestHandlerContext } from '../typings'; export interface InvalidateAgentKeyResponse { invalidatedAgentKeys: string[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/route.ts index 77fe8d6f50182..6d9a22d1c22fe 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/agent_keys/route.ts @@ -7,10 +7,14 @@ import * as t from 'io-ts'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; -import { AgentKeysResponse, getAgentKeys } from './get_agent_keys'; -import { AgentKeysPrivilegesResponse, getAgentKeysPrivileges } from './get_agent_keys_privileges'; -import { invalidateAgentKey, InvalidateAgentKeyResponse } from './invalidate_agent_key'; -import { createAgentKey, CreateAgentKeyResponse } from './create_agent_key'; +import type { AgentKeysResponse } from './get_agent_keys'; +import { getAgentKeys } from './get_agent_keys'; +import type { AgentKeysPrivilegesResponse } from './get_agent_keys_privileges'; +import { getAgentKeysPrivileges } from './get_agent_keys_privileges'; +import type { InvalidateAgentKeyResponse } from './invalidate_agent_key'; +import { invalidateAgentKey } from './invalidate_agent_key'; +import type { CreateAgentKeyResponse } from './create_agent_key'; +import { createAgentKey } from './create_agent_key'; import { privilegesTypeRt } from '../../../common/privilege_type'; const agentKeysRoute = createApmServerRoute({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/alerting_es_client.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/alerting_es_client.ts index 5638acd293538..4c27879a8985e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/alerting_es_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/alerting_es_client.ts @@ -6,8 +6,8 @@ */ import type { ESSearchRequest, ESSearchResponse } from '@kbn/es-types'; -import { RuleExecutorServices } from '@kbn/alerting-plugin/server'; -import { IUiSettingsClient } from '@kbn/core/server'; +import type { RuleExecutorServices } from '@kbn/alerting-plugin/server'; +import type { IUiSettingsClient } from '@kbn/core/server'; import type { DataTier } from '@kbn/observability-shared-plugin/common'; import { getDataTierFilterCombined } from '@kbn/apm-data-access-plugin/server/utils'; import { searchExcludedDataTiers } from '@kbn/observability-plugin/common/ui_settings_keys'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/register_apm_rule_types.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/register_apm_rule_types.ts index ea653b47145a2..8c3876bfaca93 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/register_apm_rule_types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/register_apm_rule_types.ts @@ -6,13 +6,14 @@ */ import type { AlertsLocatorParams } from '@kbn/observability-plugin/common'; -import { LocatorPublic } from '@kbn/share-plugin/common'; -import { IBasePath, Logger, SavedObjectsClientContract } from '@kbn/core/server'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; +import type { IBasePath, Logger, SavedObjectsClientContract } from '@kbn/core/server'; import type { AlertingServerSetup, IRuleTypeAlerts } from '@kbn/alerting-plugin/server'; -import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; -import { MlPluginSetup } from '@kbn/ml-plugin/server'; -import { legacyExperimentalFieldMap, ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; +import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; +import type { MlPluginSetup } from '@kbn/ml-plugin/server'; +import type { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import { legacyExperimentalFieldMap } from '@kbn/alerts-as-data-utils'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { AGENT_NAME, @@ -30,7 +31,7 @@ import { import { registerTransactionDurationRuleType } from './rule_types/transaction_duration/register_transaction_duration_rule_type'; import { registerAnomalyRuleType } from './rule_types/anomaly/register_anomaly_rule_type'; import { registerErrorCountRuleType } from './rule_types/error_count/register_error_count_rule_type'; -import { APMConfig } from '../..'; +import type { APMConfig } from '../..'; import { registerTransactionErrorRateRuleType } from './rule_types/transaction_error_rate/register_transaction_error_rate_rule_type'; export const APM_RULE_TYPE_ALERT_CONTEXT = 'observability.apm'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/route.ts index ca74e8c27e38f..7ef06add1cb19 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/route.ts @@ -7,7 +7,7 @@ import * as t from 'io-ts'; import { jsonRt } from '@kbn/io-ts-utils'; -import { Coordinate } from '../../../typings/timeseries'; +import type { Coordinate } from '../../../typings/timeseries'; import { getTransactionDurationChartPreview } from './rule_types/transaction_duration/get_transaction_duration_chart_preview'; import { getTransactionErrorCountChartPreview } from './rule_types/error_count/get_error_count_chart_preview'; import { getTransactionErrorRateChartPreview } from './rule_types/transaction_error_rate/get_transaction_error_rate_chart_preview'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.test.ts index e5fc1a41abdfd..214392c73ef60 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.test.ts @@ -6,10 +6,10 @@ */ import { registerAnomalyRuleType } from './register_anomaly_rule_type'; import { ML_ANOMALY_SEVERITY } from '@kbn/ml-anomaly-utils/anomaly_severity'; -import { MlPluginSetup } from '@kbn/ml-plugin/server'; +import type { MlPluginSetup } from '@kbn/ml-plugin/server'; import * as GetServiceAnomalies from '../../../service_map/get_service_anomalies'; import { createRuleTypeMocks } from '../../test_utils'; -import { ApmMlJob } from '../../../../../common/anomaly_detection/apm_ml_job'; +import type { ApmMlJob } from '../../../../../common/anomaly_detection/apm_ml_job'; import { AnomalyDetectorType, getAnomalyDetectorIndex, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts index 531b5c9558a56..4c3baac28c6a0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts @@ -5,17 +5,18 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { GetViewInAppRelativeUrlFnOpts, ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, RuleTypeState, RuleExecutorOptions, - AlertsClientError, } from '@kbn/alerting-plugin/server'; -import { KibanaRequest, DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; +import type { KibanaRequest } from '@kbn/core/server'; +import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; import datemath from '@kbn/datemath'; import type { ESSearchResponse } from '@kbn/es-types'; import { @@ -31,10 +32,11 @@ import { ALERT_SEVERITY, ApmRuleType, } from '@kbn/rule-data-utils'; -import { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; import { asyncForEach } from '@kbn/std'; import { compact } from 'lodash'; +import { anomalyParamsSchema } from '@kbn/response-ops-rule-params/apm_anomaly'; import { getSeverity } from '../../../../../common/anomaly_detection'; import { PROCESSOR_EVENT, @@ -46,23 +48,23 @@ import { getEnvironmentEsField, getEnvironmentLabel, } from '../../../../../common/environment_filter_values'; +import type { + THRESHOLD_MET_GROUP, + ApmRuleParamsType, +} from '../../../../../common/rules/apm_rule_types'; import { ANOMALY_ALERT_SEVERITY_TYPES, APM_SERVER_FEATURE_ID, formatAnomalyReason, RULE_TYPES_CONFIG, - THRESHOLD_MET_GROUP, } from '../../../../../common/rules/apm_rule_types'; import { asMutableArray } from '../../../../../common/utils/as_mutable_array'; import { getAlertUrlTransaction } from '../../../../../common/utils/formatters'; import { getMLJobs } from '../../../service_map/get_service_anomalies'; import { apmActionVariables } from '../../action_variables'; -import { - ApmRuleTypeAlertDefinition, - RegisterRuleDependencies, -} from '../../register_apm_rule_types'; +import type { RegisterRuleDependencies } from '../../register_apm_rule_types'; +import { ApmRuleTypeAlertDefinition } from '../../register_apm_rule_types'; import { getServiceGroupFieldsForAnomaly } from './get_service_group_fields_for_anomaly'; -import { anomalyParamsSchema, ApmRuleParamsType } from '../../../../../common/rules/schema'; import { getAnomalyDetectorIndex, getAnomalyDetectorType, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/get_error_count_chart_preview.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/get_error_count_chart_preview.ts index 9366e3f04abbb..38ba2c052aca9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/get_error_count_chart_preview.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/get_error_count_chart_preview.ts @@ -9,15 +9,13 @@ import { getParsedFilterQuery, rangeQuery, termQuery } from '@kbn/observability- import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { ApmRuleType } from '@kbn/rule-data-utils'; import { ERROR_GROUP_ID, PROCESSOR_EVENT, SERVICE_NAME } from '../../../../../common/es_fields/apm'; -import { AlertParams, PreviewChartResponse } from '../../route'; +import type { AlertParams, PreviewChartResponse } from '../../route'; import { environmentQuery } from '../../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; import { getGroupByTerms } from '../utils/get_groupby_terms'; import { getAllGroupByFields } from '../../../../../common/rules/get_all_groupby_fields'; -import { - BarSeriesDataMap, - getFilteredBarSeries, -} from '../utils/get_filtered_series_for_preview_chart'; +import type { BarSeriesDataMap } from '../utils/get_filtered_series_for_preview_chart'; +import { getFilteredBarSeries } from '../utils/get_filtered_series_for_preview_chart'; export async function getTransactionErrorCountChartPreview({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts index 8fb4000645a2e..e0670fc7c1667 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/error_count/register_error_count_rule_type.ts @@ -6,21 +6,21 @@ */ import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { +import type { GetViewInAppRelativeUrlFnOpts, ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, RuleTypeState, RuleExecutorOptions, - AlertsClientError, } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; import { formatDurationFromTimeUnitChar, getAlertDetailsUrl, observabilityPaths, ProcessorEvent, - TimeUnitChar, } from '@kbn/observability-plugin/common'; import { ALERT_EVALUATION_THRESHOLD, @@ -28,10 +28,11 @@ import { ALERT_REASON, ApmRuleType, } from '@kbn/rule-data-utils'; -import { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import { getParsedFilterQuery, termQuery } from '@kbn/observability-plugin/server'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; import { asyncForEach } from '@kbn/std'; +import { errorCountParamsSchema } from '@kbn/response-ops-rule-params/error_count'; import { getEnvironmentEsField } from '../../../../../common/environment_filter_values'; import { ERROR_GROUP_ID, @@ -39,21 +40,21 @@ import { SERVICE_ENVIRONMENT, SERVICE_NAME, } from '../../../../../common/es_fields/apm'; +import type { + THRESHOLD_MET_GROUP, + ApmRuleParamsType, +} from '../../../../../common/rules/apm_rule_types'; import { APM_SERVER_FEATURE_ID, formatErrorCountReason, RULE_TYPES_CONFIG, - THRESHOLD_MET_GROUP, } from '../../../../../common/rules/apm_rule_types'; -import { errorCountParamsSchema, ApmRuleParamsType } from '../../../../../common/rules/schema'; import { environmentQuery } from '../../../../../common/utils/environment_query'; import { getAlertUrlErrorCount } from '../../../../../common/utils/formatters'; import { apmActionVariables } from '../../action_variables'; import { alertingEsClient } from '../../alerting_es_client'; -import { - ApmRuleTypeAlertDefinition, - RegisterRuleDependencies, -} from '../../register_apm_rule_types'; +import type { RegisterRuleDependencies } from '../../register_apm_rule_types'; +import { ApmRuleTypeAlertDefinition } from '../../register_apm_rule_types'; import { getApmAlertSourceFields, getApmAlertSourceFieldsAgg, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/get_apm_alert_source_fields.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/get_apm_alert_source_fields.ts index 16c33d5942cc2..b0bb9f295d443 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/get_apm_alert_source_fields.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/get_apm_alert_source_fields.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AggregationsTopHitsAggregation } from '@elastic/elasticsearch/lib/api/types'; +import type { AggregationsTopHitsAggregation } from '@elastic/elasticsearch/lib/api/types'; import { LABELS, SERVICE_GROUP_SUPPORTED_FIELDS } from '../../../../common/service_groups'; export interface SourceDoc { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/average_or_percentile_agg.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/average_or_percentile_agg.ts index 97d8248e4071a..40878fe079772 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/average_or_percentile_agg.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/average_or_percentile_agg.ts @@ -5,7 +5,7 @@ * 2.0. */ import { AggregationType } from '../../../../../common/rules/apm_rule_types'; -import { getDurationFieldForTransactions } from '../../../../lib/helpers/transactions'; +import type { getDurationFieldForTransactions } from '../../../../lib/helpers/transactions'; type TransactionDurationField = ReturnType; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/get_transaction_duration_chart_preview.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/get_transaction_duration_chart_preview.ts index 0dcf1e3255bd7..797df1945619c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/get_transaction_duration_chart_preview.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/get_transaction_duration_chart_preview.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { getParsedFilterQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ApmRuleType } from '@kbn/rule-data-utils'; import { AggregationType } from '../../../../../common/rules/apm_rule_types'; @@ -15,7 +15,7 @@ import { TRANSACTION_NAME, } from '../../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../../common/utils/environment_query'; -import { AlertParams, PreviewChartResponse } from '../../route'; +import type { AlertParams, PreviewChartResponse } from '../../route'; import { getSearchTransactionsEvents, getBackwardCompatibleDocumentTypeFilter, @@ -23,14 +23,12 @@ import { getProcessorEventForTransactions, } from '../../../../lib/helpers/transactions'; import { averageOrPercentileAgg, getMultiTermsSortOrder } from './average_or_percentile_agg'; -import { APMConfig } from '../../../..'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../..'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; import { getGroupByTerms } from '../utils/get_groupby_terms'; import { getAllGroupByFields } from '../../../../../common/rules/get_all_groupby_fields'; -import { - BarSeriesDataMap, - getFilteredBarSeries, -} from '../utils/get_filtered_series_for_preview_chart'; +import type { BarSeriesDataMap } from '../utils/get_filtered_series_for_preview_chart'; +import { getFilteredBarSeries } from '../utils/get_filtered_series_for_preview_chart'; export async function getTransactionDurationChartPreview({ alertParams, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts index dfc32ec9eb54e..7d1af451d54ce 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts @@ -6,9 +6,8 @@ */ import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { - AlertsClientError, +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { GetViewInAppRelativeUrlFnOpts, ActionGroupIdsOf, AlertInstanceContext as AlertContext, @@ -16,13 +15,14 @@ import { RuleTypeState, RuleExecutorOptions, } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; import { asDuration, formatDurationFromTimeUnitChar, getAlertDetailsUrl, observabilityPaths, ProcessorEvent, - TimeUnitChar, } from '@kbn/observability-plugin/common'; import { getParsedFilterQuery, termQuery } from '@kbn/observability-plugin/server'; import { @@ -31,8 +31,9 @@ import { ALERT_REASON, ApmRuleType, } from '@kbn/rule-data-utils'; -import { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; +import { transactionDurationParamsSchema } from '@kbn/response-ops-rule-params/transaction_duration'; import { getGroupByTerms } from '../utils/get_groupby_terms'; import { SearchAggregatedTransactionSetting } from '../../../../../common/aggregated_transactions'; import { getEnvironmentEsField } from '../../../../../common/environment_filter_values'; @@ -43,16 +44,15 @@ import { TRANSACTION_NAME, TRANSACTION_TYPE, } from '../../../../../common/es_fields/apm'; +import type { + THRESHOLD_MET_GROUP, + ApmRuleParamsType, +} from '../../../../../common/rules/apm_rule_types'; import { APM_SERVER_FEATURE_ID, formatTransactionDurationReason, RULE_TYPES_CONFIG, - THRESHOLD_MET_GROUP, } from '../../../../../common/rules/apm_rule_types'; -import { - transactionDurationParamsSchema, - ApmRuleParamsType, -} from '../../../../../common/rules/schema'; import { environmentQuery } from '../../../../../common/utils/environment_query'; import { getAlertUrlTransaction, @@ -64,10 +64,8 @@ import { } from '../../../../lib/helpers/transactions'; import { apmActionVariables } from '../../action_variables'; import { alertingEsClient } from '../../alerting_es_client'; -import { - ApmRuleTypeAlertDefinition, - RegisterRuleDependencies, -} from '../../register_apm_rule_types'; +import type { RegisterRuleDependencies } from '../../register_apm_rule_types'; +import { ApmRuleTypeAlertDefinition } from '../../register_apm_rule_types'; import { getApmAlertSourceFields, getApmAlertSourceFieldsAgg, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/get_transaction_error_rate_chart_preview.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/get_transaction_error_rate_chart_preview.ts index e6fdf321af8d9..7f7a6ffdf4186 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/get_transaction_error_rate_chart_preview.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/get_transaction_error_rate_chart_preview.ts @@ -14,21 +14,19 @@ import { EVENT_OUTCOME, } from '../../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../../common/utils/environment_query'; -import { AlertParams, PreviewChartResponse } from '../../route'; +import type { AlertParams, PreviewChartResponse } from '../../route'; import { getSearchTransactionsEvents, getBackwardCompatibleDocumentTypeFilter, getProcessorEventForTransactions, } from '../../../../lib/helpers/transactions'; -import { APMConfig } from '../../../..'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../..'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; import { EventOutcome } from '../../../../../common/event_outcome'; import { getGroupByTerms } from '../utils/get_groupby_terms'; import { getAllGroupByFields } from '../../../../../common/rules/get_all_groupby_fields'; -import { - BarSeriesDataMap, - getFilteredBarSeries, -} from '../utils/get_filtered_series_for_preview_chart'; +import type { BarSeriesDataMap } from '../utils/get_filtered_series_for_preview_chart'; +import { getFilteredBarSeries } from '../utils/get_filtered_series_for_preview_chart'; export async function getTransactionErrorRateChartPreview({ config, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts index 1090a1c91d54b..f2a1c633dc4dd 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/transaction_error_rate/register_transaction_error_rate_rule_type.ts @@ -6,21 +6,21 @@ */ import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { +import type { GetViewInAppRelativeUrlFnOpts, ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, RuleTypeState, RuleExecutorOptions, - AlertsClientError, } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; import { formatDurationFromTimeUnitChar, getAlertDetailsUrl, observabilityPaths, ProcessorEvent, - TimeUnitChar, } from '@kbn/observability-plugin/common'; import { asPercent } from '@kbn/observability-plugin/common/utils/formatters'; import { getParsedFilterQuery, termQuery } from '@kbn/observability-plugin/server'; @@ -30,9 +30,10 @@ import { ALERT_REASON, ApmRuleType, } from '@kbn/rule-data-utils'; -import { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; import { asyncForEach } from '@kbn/std'; +import { transactionErrorRateParamsSchema } from '@kbn/response-ops-rule-params/transaction_error_rate'; import { SearchAggregatedTransactionSetting } from '../../../../../common/aggregated_transactions'; import { getEnvironmentEsField } from '../../../../../common/environment_filter_values'; import { @@ -44,25 +45,22 @@ import { TRANSACTION_NAME, } from '../../../../../common/es_fields/apm'; import { EventOutcome } from '../../../../../common/event_outcome'; +import type { + THRESHOLD_MET_GROUP, + ApmRuleParamsType, +} from '../../../../../common/rules/apm_rule_types'; import { APM_SERVER_FEATURE_ID, formatTransactionErrorRateReason, RULE_TYPES_CONFIG, - THRESHOLD_MET_GROUP, } from '../../../../../common/rules/apm_rule_types'; -import { - transactionErrorRateParamsSchema, - ApmRuleParamsType, -} from '../../../../../common/rules/schema'; import { environmentQuery } from '../../../../../common/utils/environment_query'; import { asDecimalOrInteger, getAlertUrlTransaction } from '../../../../../common/utils/formatters'; import { getBackwardCompatibleDocumentTypeFilter } from '../../../../lib/helpers/transactions'; import { apmActionVariables } from '../../action_variables'; import { alertingEsClient } from '../../alerting_es_client'; -import { - ApmRuleTypeAlertDefinition, - RegisterRuleDependencies, -} from '../../register_apm_rule_types'; +import type { RegisterRuleDependencies } from '../../register_apm_rule_types'; +import { ApmRuleTypeAlertDefinition } from '../../register_apm_rule_types'; import { getApmAlertSourceFields, getApmAlertSourceFieldsAgg, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/utils/get_filtered_series_for_preview_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/utils/get_filtered_series_for_preview_chart.ts index 243935adad9fd..5d0aa297124e6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/utils/get_filtered_series_for_preview_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/rule_types/utils/get_filtered_series_for_preview_chart.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Coordinate } from '../../../../../typings/timeseries'; +import type { Coordinate } from '../../../../../typings/timeseries'; export type BarSeriesDataMap = Record; type BarSeriesData = Array<{ name: string; data: Coordinate[] }>; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/test_utils/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/test_utils/index.ts index 9230ca4983698..b3f66f1198ed8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/alerts/test_utils/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/alerts/test_utils/index.ts @@ -5,15 +5,16 @@ * 2.0. */ -import { IBasePath, Logger } from '@kbn/core/server'; +import type { IBasePath, Logger } from '@kbn/core/server'; import { elasticsearchServiceMock } from '@kbn/core/server/mocks'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; +import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import { ruleRegistryMocks } from '@kbn/rule-registry-plugin/server/mocks'; -import { AlertingServerSetup } from '@kbn/alerting-plugin/server'; -import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; +import type { AlertingServerSetup } from '@kbn/alerting-plugin/server'; +import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; import { DEFAULT_FLAPPING_SETTINGS } from '@kbn/alerting-plugin/common'; -import { APMConfig, APM_SERVER_FEATURE_ID } from '../../..'; -import { RegisterRuleDependencies } from '../register_apm_rule_types'; +import type { APMConfig } from '../../..'; +import { APM_SERVER_FEATURE_ID } from '../../..'; +import type { RegisterRuleDependencies } from '../register_apm_rule_types'; export const createRuleTypeMocks = () => { let alertExecutor: (...args: any[]) => Promise; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/create_apm_server_route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/create_apm_server_route.ts index e2f0251a6343c..835be6d10eedb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/create_apm_server_route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/create_apm_server_route.ts @@ -5,8 +5,8 @@ * 2.0. */ import { createServerRouteFactory } from '@kbn/server-route-repository'; -import { APMRouteCreateOptions } from '../typings'; -import { APMRouteHandlerResources } from './register_apm_server_routes'; +import type { APMRouteCreateOptions } from '../typings'; +import type { APMRouteHandlerResources } from './register_apm_server_routes'; export const createApmServerRoute = createServerRouteFactory< APMRouteHandlerResources, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/get_global_apm_server_route_repository.ts b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/get_global_apm_server_route_repository.ts index 8b1fe99b6d272..381443159d0d6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/get_global_apm_server_route_repository.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/get_global_apm_server_route_repository.ts @@ -5,7 +5,7 @@ * 2.0. */ import type { EndpointOf, ReturnOf, ServerRouteRepository } from '@kbn/server-route-repository'; -import { PickByValue } from 'utility-types'; +import type { PickByValue } from 'utility-types'; import { agentExplorerRouteRepository } from '../agent_explorer/route'; import { agentKeysRouteRepository } from '../agent_keys/route'; import { alertsChartPreviewRouteRepository } from '../alerts/route'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.test.ts index aae197e5ade5d..1535995389809 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.test.ts @@ -6,12 +6,13 @@ */ import { jsonRt } from '@kbn/io-ts-utils'; -import { ServerRoute, ServerRouteRepository } from '@kbn/server-route-repository'; +import type { ServerRoute, ServerRouteRepository } from '@kbn/server-route-repository'; import * as t from 'io-ts'; -import { CoreSetup, Logger } from '@kbn/core/server'; -import { APMConfig } from '../..'; -import { APMRouteCreateOptions } from '../typings'; -import { APMRouteHandlerResources, registerRoutes } from './register_apm_server_routes'; +import type { CoreSetup, Logger } from '@kbn/core/server'; +import type { APMConfig } from '../..'; +import type { APMRouteCreateOptions } from '../typings'; +import type { APMRouteHandlerResources } from './register_apm_server_routes'; +import { registerRoutes } from './register_apm_server_routes'; import { NEVER } from 'rxjs'; type RegisterRouteDependencies = Parameters[0]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.ts b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.ts index 197b4259d3f09..875d5813181f5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/apm_routes/register_apm_server_routes.ts @@ -7,15 +7,20 @@ import Boom from '@hapi/boom'; import * as t from 'io-ts'; -import { Logger, KibanaRequest, KibanaResponseFactory, RouteRegistrar } from '@kbn/core/server'; +import type { + Logger, + KibanaRequest, + KibanaResponseFactory, + RouteRegistrar, +} from '@kbn/core/server'; import { errors } from '@elastic/elasticsearch'; import agent from 'elastic-apm-node'; -import { +import type { DefaultRouteCreateOptions, IoTsParamsObject, ServerRouteRepository, - stripNullishRequestParameters, } from '@kbn/server-route-repository'; +import { stripNullishRequestParameters } from '@kbn/server-route-repository'; import { merge } from 'lodash'; import { decodeRequestParams, @@ -23,12 +28,12 @@ import { passThroughValidationObject, } from '@kbn/server-route-repository'; import { jsonRt, mergeRt } from '@kbn/io-ts-utils'; -import { InspectResponse } from '@kbn/observability-plugin/typings/common'; +import type { InspectResponse } from '@kbn/observability-plugin/typings/common'; import apm from 'elastic-apm-node'; -import { VersionedRouteRegistrar } from '@kbn/core-http-server'; -import { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; +import type { VersionedRouteRegistrar } from '@kbn/core-http-server'; +import type { IRuleDataClient } from '@kbn/rule-registry-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { ApmFeatureFlags } from '../../../common/apm_feature_flags'; +import type { ApmFeatureFlags } from '../../../common/apm_feature_flags'; import type { APMCore, APMRouteCreateOptions, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_downstream_dependencies/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_downstream_dependencies/index.ts index 6d8fae8afafe2..f8bd4547b00e7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_downstream_dependencies/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_downstream_dependencies/index.ts @@ -7,12 +7,12 @@ import datemath from '@elastic/datemath'; import * as t from 'io-ts'; import { termQuery } from '@kbn/observability-plugin/server'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getDestinationMap } from '../../../lib/connections/get_connection_stats/get_destination_map'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { NodeType } from '../../../../common/connections'; export const downstreamDependenciesRouteRt = t.intersection([ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_list/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_list/index.ts index 39f2a77ad9c92..cba856411cdf6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_list/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_list/index.ts @@ -6,16 +6,16 @@ */ import datemath from '@elastic/datemath'; -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { RollupInterval } from '../../../../common/rollup'; import { ApmDocumentType } from '../../../../common/document_type'; -import { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; +import type { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; import { ServiceHealthStatus } from '../../../../common/service_health_status'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; import { getServicesItems } from '../../services/get_services/get_services_items'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; export interface ApmServicesListItem { 'service.name': string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/get_anomalies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/get_anomalies.ts index 2b06fbaf26e36..e7b3542572087 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/get_anomalies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/get_anomalies.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { compact, keyBy } from 'lodash'; import { @@ -22,7 +22,7 @@ import { anomalySearch } from '../../../lib/anomaly_detection/anomaly_search'; import { apmMlAnomalyQuery } from '../../../lib/anomaly_detection/apm_ml_anomaly_query'; import { apmMlJobsQuery } from '../../../lib/anomaly_detection/apm_ml_jobs_query'; import { getMlJobsWithAPMGroup } from '../../../lib/anomaly_detection/get_ml_jobs_with_apm_group'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; export type ApmAnomalies = Awaited>; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/index.ts index 5c9d40cc22772..05cb7e20e61f2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_service_summary/index.ts @@ -5,8 +5,9 @@ * 2.0. */ import datemath from '@elastic/datemath'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { rangeQuery, ScopedAnnotationsClient, termsQuery } from '@kbn/observability-plugin/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; +import { rangeQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ALERT_RULE_PRODUCER, ALERT_STATUS, @@ -15,13 +16,13 @@ import { import * as t from 'io-ts'; import { observabilityFeatureId } from '@kbn/observability-shared-plugin/common'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { termQuery } from '../../../../common/utils/term_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; import { getEnvironments } from '../../environments/get_environments'; import { getServiceAnnotations } from '../../services/annotations'; import { getServiceMetadataDetails } from '../../services/get_service_metadata_details'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/fetch_timeseries.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/fetch_timeseries.ts index 45342d7a86a74..5f0577ac163de 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/fetch_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/fetch_timeseries.ts @@ -9,11 +9,11 @@ import type { AggregationsAggregationContainer, QueryDslQueryContainer, } from '@elastic/elasticsearch/lib/api/types'; -import { AggregationResultOf, AggregationResultOfMap } from '@kbn/es-types'; -import { Unionize } from 'utility-types'; -import { ApmDocumentType } from '../../../../common/document_type'; -import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { AggregationResultOf, AggregationResultOfMap } from '@kbn/es-types'; +import type { Unionize } from 'utility-types'; +import type { ApmDocumentType } from '../../../../common/document_type'; +import type { RollupInterval } from '../../../../common/rollup'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; type ChangePointResult = AggregationResultOf<{ change_point: any }, unknown>; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_exit_span_latency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_exit_span_latency.ts index d94219aac443e..781d0720edeb2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_exit_span_latency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_exit_span_latency.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { termQuery } from '@kbn/observability-plugin/server'; import { ApmDocumentType } from '../../../../common/document_type'; import { @@ -14,7 +14,7 @@ import { SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, } from '../../../../common/es_fields/apm'; import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { fetchSeries } from './fetch_timeseries'; export async function getExitSpanLatency({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_transaction_latency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_transaction_latency.ts index 11984067b9af1..58f47aaea85a7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_transaction_latency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/get_transaction_latency.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { termQuery } from '@kbn/observability-plugin/server'; import { TRANSACTION_NAME } from '@kbn/observability-shared-plugin/common'; import { ApmDocumentType } from '../../../../common/document_type'; import { TRANSACTION_DURATION_HISTOGRAM, TRANSACTION_TYPE } from '../../../../common/es_fields/apm'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyAggregation } from '../../../lib/helpers/latency_aggregation_type'; import { fetchSeries } from './fetch_timeseries'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/index.ts index 56afefbafb9d3..aa046af81d7f2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_apm_timeseries/index.ts @@ -14,7 +14,7 @@ import { LatencyAggregationType } from '../../../../common/latency_aggregation_t import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { termQuery } from '../../../../common/utils/term_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getErrorEventRate } from './get_error_event_rate'; import { getExitSpanFailureRate } from './get_exit_span_failure_rate'; import { getExitSpanLatency } from './get_exit_span_latency'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_changepoints/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_changepoints/index.ts index 99ea7ec691dab..ba2c9ad987312 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_changepoints/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_changepoints/index.ts @@ -6,8 +6,9 @@ */ import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { ApmTimeseriesType, getApmTimeseries, TimeseriesChangePoint } from '../get_apm_timeseries'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { TimeseriesChangePoint } from '../get_apm_timeseries'; +import { ApmTimeseriesType, getApmTimeseries } from '../get_apm_timeseries'; export interface ChangePointGrouping { title: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_categories/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_categories/index.ts index 7072639f8526e..88d4f74abaf66 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_categories/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_categories/index.ts @@ -6,13 +6,14 @@ */ import datemath from '@elastic/datemath'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; import { maybe } from '../../../../common/utils/maybe'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { flattenObject, KeyValuePair } from '../../../../common/utils/flatten_object'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { KeyValuePair } from '../../../../common/utils/flatten_object'; +import { flattenObject } from '../../../../common/utils/flatten_object'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { PROCESSOR_EVENT, TRACE_ID } from '../../../../common/es_fields/apm'; import { getTypedSearch } from '../../../utils/create_typed_es_client'; import { getDownstreamServiceResource } from '../get_observability_alert_details_context/get_downstream_dependency_name'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_rate_analysis_for_alert/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_rate_analysis_for_alert/index.ts index 2d367780fc9dd..b7a7401eab3d5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_rate_analysis_for_alert/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_log_rate_analysis_for_alert/index.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchLogRateAnalysisForAlert } from '@kbn/aiops-log-rate-analysis/queries/fetch_log_rate_analysis_for_alert'; -import { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; +import type { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; import { PROCESSOR_EVENT } from '../../../../common/es_fields/apm'; import { getShouldMatchOrNotExistFilter } from '../utils/get_should_match_or_not_exist_filter'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_apm_errors.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_apm_errors.ts index 90c76bba181cb..d117a7ccaeb79 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_apm_errors.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_apm_errors.ts @@ -6,7 +6,7 @@ */ import datemath from '@elastic/datemath'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getErrorGroupMainStatistics } from '../../errors/get_error_groups/get_error_group_main_statistics'; import { getDownstreamServiceResource } from './get_downstream_dependency_name'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_container_id_from_signals.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_container_id_from_signals.ts index 93c55cf1a9a30..24af8e677a01a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_container_id_from_signals.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_container_id_from_signals.ts @@ -6,19 +6,19 @@ */ import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { CoreRequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; +import type { CoreRequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; import { rangeQuery, typedSearch } from '@kbn/observability-plugin/server/utils/queries'; -import * as t from 'io-ts'; +import type * as t from 'io-ts'; import moment from 'moment'; -import { ESSearchRequest } from '@kbn/es-types'; -import { alertDetailsContextRt } from '@kbn/observability-plugin/server/services'; -import { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; +import type { ESSearchRequest } from '@kbn/es-types'; +import type { alertDetailsContextRt } from '@kbn/observability-plugin/server/services'; +import type { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; import { CONTAINER_ID } from '@kbn/apm-types'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; import { maybe } from '../../../../common/utils/maybe'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; import { ApmDocumentType } from '../../../../common/document_type'; -import { +import type { APMEventClient, APMEventESSearchRequest, } from '../../../lib/helpers/create_es_client/create_apm_event_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_downstream_dependency_name.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_downstream_dependency_name.ts index d957372285b02..f48667214a29d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_downstream_dependency_name.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_downstream_dependency_name.ts @@ -16,7 +16,7 @@ import { SPAN_DESTINATION_SERVICE_RESOURCE, TRACE_ID, } from '../../../../common/es_fields/apm'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { RollupInterval } from '../../../../common/rollup'; export async function getDownstreamServiceResource({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_service_name_from_signals.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_service_name_from_signals.ts index bd966c500d1bc..220394df3b142 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_service_name_from_signals.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/get_service_name_from_signals.ts @@ -7,17 +7,17 @@ import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { rangeQuery, termQuery, typedSearch } from '@kbn/observability-plugin/server/utils/queries'; -import * as t from 'io-ts'; +import type * as t from 'io-ts'; import moment from 'moment'; -import { ESSearchRequest } from '@kbn/es-types'; -import { alertDetailsContextRt } from '@kbn/observability-plugin/server/services'; +import type { ESSearchRequest } from '@kbn/es-types'; +import type { alertDetailsContextRt } from '@kbn/observability-plugin/server/services'; import type { LogSourcesService } from '@kbn/logs-data-access-plugin/common/types'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; import { SERVICE_NAME } from '@kbn/apm-types'; import { maybe } from '../../../../common/utils/maybe'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; import { ApmDocumentType } from '../../../../common/document_type'; -import { +import type { APMEventClient, APMEventESSearchRequest, } from '../../../lib/helpers/create_es_client/create_apm_event_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/index.ts index 16a292d5478bc..56f77b7c3826c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/assistant_functions/get_observability_alert_details_context/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart, Logger } from '@kbn/core/server'; +import type { CoreStart, Logger } from '@kbn/core/server'; import type { AlertDetailsContextualInsight, AlertDetailsContextualInsightsHandler, @@ -18,17 +18,16 @@ import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; import { getMlClient } from '../../../lib/helpers/get_ml_client'; import { getRandomSampler } from '../../../lib/helpers/get_random_sampler'; import { getApmServiceSummary } from '../get_apm_service_summary'; -import { - APMDownstreamDependency, - getAssistantDownstreamDependencies, -} from '../get_apm_downstream_dependencies'; +import type { APMDownstreamDependency } from '../get_apm_downstream_dependencies'; +import { getAssistantDownstreamDependencies } from '../get_apm_downstream_dependencies'; import { getLogRateAnalysisForAlert } from '../get_log_rate_analysis_for_alert'; -import { getLogCategories, LogCategory } from '../get_log_categories'; +import type { LogCategory } from '../get_log_categories'; +import { getLogCategories } from '../get_log_categories'; import { getAnomalies } from '../get_apm_service_summary/get_anomalies'; import { getServiceNameFromSignals } from './get_service_name_from_signals'; import { getContainerIdFromSignals } from './get_container_id_from_signals'; import { getExitSpanChangePoints, getServiceChangePoints } from '../get_changepoints'; -import { APMRouteHandlerResources } from '../../apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from '../../apm_routes/register_apm_server_routes'; import { getApmErrors } from './get_apm_errors'; export const getAlertDetailsContextHandler = ( diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation.ts index 931b83f4bd392..a6c76d882182c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation.ts @@ -10,7 +10,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SPAN_DURATION, TRANSACTION_DURATION } from '../../../../common/es_fields/apm'; import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export const fetchDurationCorrelation = async ({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation_with_histogram.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation_with_histogram.ts index 561bbddf5f5f7..7e26550d1f5e1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation_with_histogram.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_correlation_with_histogram.ts @@ -18,11 +18,11 @@ import { KS_TEST_THRESHOLD, } from '../../../../common/correlations/constants'; -import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; +import type { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; import { fetchDurationCorrelation } from './fetch_duration_correlation'; import { fetchDurationRanges } from './fetch_duration_ranges'; import { getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export async function fetchDurationCorrelationWithHistogram({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_field_candidates.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_field_candidates.ts index 9f7e35ec56f16..fcd7e445ff780 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_field_candidates.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_field_candidates.ts @@ -7,14 +7,14 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ES_FIELD_TYPES } from '@kbn/field-types'; -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; import { rangeQuery } from '@kbn/observability-plugin/server'; import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { FIELD_PREFIX_TO_EXCLUDE_AS_CANDIDATE, FIELDS_TO_EXCLUDE_AS_CANDIDATE, } from '../../../../common/correlations/constants'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; const SUPPORTED_ES_FIELD_TYPES = [ ES_FIELD_TYPES.KEYWORD, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_fractions.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_fractions.ts index e9a7430adfc8e..311f00e82e7ca 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_fractions.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_fractions.ts @@ -8,9 +8,9 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { SPAN_DURATION, TRANSACTION_DURATION } from '../../../../common/es_fields/apm'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; /** diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_histogram_range_steps.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_histogram_range_steps.ts index fa513ea9edcfd..0105ba4faaf37 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_histogram_range_steps.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_histogram_range_steps.ts @@ -8,11 +8,11 @@ import { scaleLog } from 'd3-scale'; import { isFiniteNumber } from '@kbn/observability-plugin/common/utils/is_finite_number'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; -import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; import { getDurationField, getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getBackwardCompatibleDocumentTypeFilter } from '../../../lib/helpers/transactions'; const getHistogramRangeSteps = (min: number, max: number, steps: number) => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_percentiles.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_percentiles.ts index 20a88573a152d..92cd5abe541fe 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_percentiles.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_percentiles.ts @@ -6,11 +6,11 @@ */ import { SIGNIFICANT_VALUE_DIGITS } from '../../../../common/correlations/constants'; -import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; +import type { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { getDurationField, getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getBackwardCompatibleDocumentTypeFilter } from '../../../lib/helpers/transactions'; export const fetchDurationPercentiles = async ({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_ranges.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_ranges.ts index 0fa2fad981eb6..1078235ce8ec3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_ranges.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_duration_ranges.ts @@ -7,11 +7,11 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { sumBy } from 'lodash'; -import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; +import type { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; import { getDurationField, getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getBackwardCompatibleDocumentTypeFilter } from '../../../lib/helpers/transactions'; export const fetchDurationRanges = async ({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_failed_events_correlation_p_values.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_failed_events_correlation_p_values.ts index f6a4b3074b200..7df5fc9e73c88 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_failed_events_correlation_p_values.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_failed_events_correlation_p_values.ts @@ -5,15 +5,15 @@ * 2.0. */ import { termQuery } from '@kbn/observability-plugin/server'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; -import { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; import { EVENT_OUTCOME, PROCESSOR_EVENT } from '../../../../common/es_fields/apm'; import { EventOutcome } from '../../../../common/event_outcome'; import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; import { fetchDurationRanges } from './fetch_duration_ranges'; import { getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export const fetchFailedEventsCorrelationPValues = async ({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_field_value_pairs.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_field_value_pairs.ts index 4347d51150e95..ee0d9ec875626 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_field_value_pairs.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_field_value_pairs.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; import type { FieldValuePair, CommonCorrelationsQueryParams, @@ -14,7 +14,7 @@ import { TERMS_SIZE } from '../../../../common/correlations/constants'; import { splitAllSettledPromises } from '../utils'; import { getCommonCorrelationsQuery } from './get_common_correlations_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export interface FieldValuePairsResponse { fieldValuePairs: FieldValuePair[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_p_values.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_p_values.ts index eadce95575146..f7e8c46748fa1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_p_values.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_p_values.ts @@ -9,9 +9,9 @@ import { isCCSRemoteIndexName } from '@kbn/es-query'; import { ERROR_CORRELATION_THRESHOLD } from '../../../../common/correlations/constants'; import type { FailedTransactionsCorrelation } from '../../../../common/correlations/failed_transactions_correlations/types'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { splitAllSettledPromises, getEventType } from '../utils'; import { fetchDurationHistogramRangeSteps } from './fetch_duration_histogram_range_steps'; import { fetchFailedEventsCorrelationPValues } from './fetch_failed_events_correlation_p_values'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_significant_correlations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_significant_correlations.ts index 51d0fc73313ac..78cbf118bdd09 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_significant_correlations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/fetch_significant_correlations.ts @@ -23,7 +23,7 @@ import { fetchDurationFractions } from './fetch_duration_fractions'; import { fetchDurationHistogramRangeSteps } from './fetch_duration_histogram_range_steps'; import { fetchDurationRanges } from './fetch_duration_ranges'; import { getEventType } from '../utils'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export interface SignificantCorrelationsResponse { latencyCorrelations: LatencyCorrelation[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/field_stats/fetch_field_value_field_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/field_stats/fetch_field_value_field_stats.ts index e3277307eb129..b848e9fcbd61c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/field_stats/fetch_field_value_field_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/field_stats/fetch_field_value_field_stats.ts @@ -5,22 +5,22 @@ * 2.0. */ -import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { AggregationsAggregationContainer, AggregationsSamplerAggregate, AggregationsSingleBucketAggregateBase, } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { +import type { CommonCorrelationsQueryParams, FieldValuePair, } from '../../../../../common/correlations/types'; -import { +import type { FieldValueFieldStats, TopValueBucket, } from '../../../../../common/correlations/field_stats_types'; import { getCommonCorrelationsQuery } from '../get_common_correlations_query'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; export const fetchFieldValueFieldStats = async ({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/get_common_correlations_query.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/get_common_correlations_query.ts index 3e70d0ef5765a..e82870d6d4057 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/get_common_correlations_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/queries/get_common_correlations_query.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; -import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; +import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types'; import { environmentQuery } from '../../../../common/utils/environment_query'; export function getCommonCorrelationsQuery({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/route.ts index 658ad91bca835..2914dea8c57ad 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/correlations/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/correlations/route.ts @@ -17,20 +17,18 @@ import { isActivePlatinumLicense } from '../../../common/license_check'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../default_api_types'; -import { - DurationFieldCandidatesResponse, - fetchDurationFieldCandidates, -} from './queries/fetch_duration_field_candidates'; +import type { DurationFieldCandidatesResponse } from './queries/fetch_duration_field_candidates'; +import { fetchDurationFieldCandidates } from './queries/fetch_duration_field_candidates'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; import { fetchFieldValueFieldStats } from './queries/field_stats/fetch_field_value_field_stats'; -import { fetchFieldValuePairs, FieldValuePairsResponse } from './queries/fetch_field_value_pairs'; -import { - fetchSignificantCorrelations, - SignificantCorrelationsResponse, -} from './queries/fetch_significant_correlations'; -import { fetchPValues, PValuesResponse } from './queries/fetch_p_values'; +import type { FieldValuePairsResponse } from './queries/fetch_field_value_pairs'; +import { fetchFieldValuePairs } from './queries/fetch_field_value_pairs'; +import type { SignificantCorrelationsResponse } from './queries/fetch_significant_correlations'; +import { fetchSignificantCorrelations } from './queries/fetch_significant_correlations'; +import type { PValuesResponse } from './queries/fetch_p_values'; +import { fetchPValues } from './queries/fetch_p_values'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; -import { TopValuesStats } from '../../../common/correlations/field_stats_types'; +import type { TopValuesStats } from '../../../common/correlations/field_stats_types'; const INVALID_LICENSE = i18n.translate('xpack.apm.correlations.license.text', { defaultMessage: diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_custom_dashboards.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_custom_dashboards.ts index eb0e539483f56..4dcd2fdfebf73 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_custom_dashboards.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_custom_dashboards.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { - APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE, +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedApmCustomDashboard, ApmCustomDashboard, } from '../../../common/custom_dashboards'; +import { APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../../common/custom_dashboards'; interface Props { savedObjectsClient: SavedObjectsClientContract; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_entities_with_dashboards.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_entities_with_dashboards.ts index df1f785216367..1f156ed297b9a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_entities_with_dashboards.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_entities_with_dashboards.ts @@ -6,10 +6,10 @@ */ import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; -import { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; -import { EntitiesESClient } from '../../lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client'; +import type { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; +import type { EntitiesESClient } from '../../lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client'; function getSearchRequest(filters: estypes.QueryDslQueryContainer[]) { return { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_services_with_dashboards.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_services_with_dashboards.ts index c8b78b9052da5..30b3e44cf9584 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_services_with_dashboards.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/get_services_with_dashboards.ts @@ -7,13 +7,13 @@ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; -import { +import type { APMEventClient, APMEventESSearchRequest, } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; +import type { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; function getSearchRequest(filters: estypes.QueryDslQueryContainer[]): APMEventESSearchRequest { return { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/remove_service_dashboard.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/remove_service_dashboard.ts index 353afcd74bb0b..ff8adc0558603 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/remove_service_dashboard.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/remove_service_dashboard.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../../common/custom_dashboards'; interface Options { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/route.ts index 7d062d58f0b1a..61d8667ce82b9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/route.ts @@ -8,7 +8,7 @@ import * as t from 'io-ts'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { saveServiceDashbord } from './save_service_dashboard'; -import { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; +import type { SavedApmCustomDashboard } from '../../../common/custom_dashboards'; import { deleteServiceDashboard } from './remove_service_dashboard'; import { getCustomDashboards } from './get_custom_dashboards'; import { getServicesWithDashboards } from './get_services_with_dashboards'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/save_service_dashboard.ts b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/save_service_dashboard.ts index 600c8e5722633..659a20bbbc3ce 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/save_service_dashboard.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/custom_dashboards/save_service_dashboard.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { - APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE, +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedApmCustomDashboard, ApmCustomDashboard, } from '../../../common/custom_dashboards'; +import { APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../../common/custom_dashboards'; interface Options { savedObjectsClient: SavedObjectsClientContract; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.test.ts index b51ae2f5c271e..7b067a2d486b9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.test.ts @@ -6,12 +6,12 @@ */ import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { Logger } from '@kbn/core/server'; -import { DataViewsService } from '@kbn/data-views-plugin/common'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; +import type { Logger } from '@kbn/core/server'; +import type { DataViewsService } from '@kbn/data-views-plugin/common'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; import * as HistoricalAgentData from '../historical_data/has_historical_agent_data'; -import { APMCore } from '../typings'; +import type { APMCore } from '../typings'; import { createOrUpdateStaticDataView } from './create_static_data_view'; function getMockedDataViewService(existingDataViewTitle: string) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.ts b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.ts index c3de37e152c0a..571a1b041bf44 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/create_static_data_view.ts @@ -5,16 +5,17 @@ * 2.0. */ -import { Logger, SavedObjectsErrorHelpers } from '@kbn/core/server'; -import { DataView, DataViewsService } from '@kbn/data-views-plugin/common'; +import type { Logger } from '@kbn/core/server'; +import { SavedObjectsErrorHelpers } from '@kbn/core/server'; +import type { DataView, DataViewsService } from '@kbn/data-views-plugin/common'; import { i18n } from '@kbn/i18n'; import { getStaticDataViewId } from '@kbn/apm-data-view'; import { TRACE_ID, TRANSACTION_ID, TRANSACTION_DURATION } from '../../../common/es_fields/apm'; import { hasHistoricalAgentData } from '../historical_data/has_historical_agent_data'; import { withApmSpan } from '../../utils/with_apm_span'; import { getApmDataViewIndexPattern } from './get_apm_data_view_index_pattern'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; export type CreateDataViewResponse = Promise< { created: boolean; dataView: DataView } | { created: boolean; reason?: string } diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/route.ts index 23318949b0811..98bce470cd086 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/data_view/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/data_view/route.ts @@ -6,7 +6,8 @@ */ import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common'; -import { CreateDataViewResponse, createOrUpdateStaticDataView } from './create_static_data_view'; +import type { CreateDataViewResponse } from './create_static_data_view'; +import { createOrUpdateStaticDataView } from './create_static_data_view'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { getApmDataViewIndexPattern } from './get_apm_data_view_index_pattern'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/debug_telemetry/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/debug_telemetry/route.ts index 3e4e1889321ba..d773853c9078d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/debug_telemetry/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/debug_telemetry/route.ts @@ -7,7 +7,7 @@ import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { APM_TELEMETRY_TASK_NAME } from '../../lib/apm_telemetry'; -import { APMTelemetry } from '../../lib/apm_telemetry/types'; +import type { APMTelemetry } from '../../lib/apm_telemetry/types'; import { APM_TELEMETRY_SAVED_OBJECT_ID, APM_TELEMETRY_SAVED_OBJECT_TYPE, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/default_api_types.ts b/x-pack/solutions/observability/plugins/apm/server/routes/default_api_types.ts index 42ab1b63d431e..4314ffdd99ae0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/default_api_types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/default_api_types.ts @@ -8,7 +8,7 @@ import * as t from 'io-ts'; import { isoToEpochRt, toNumberRt } from '@kbn/io-ts-utils'; import { either } from 'fp-ts/lib/Either'; -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { ApmDocumentType } from '../../common/document_type'; import { RollupInterval } from '../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_dependency_latency_distribution.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_dependency_latency_distribution.ts index 4b1e02d6a5e1a..e850eaa0fd267 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_dependency_latency_distribution.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_dependency_latency_distribution.ts @@ -11,12 +11,12 @@ import { SPAN_DESTINATION_SERVICE_RESOURCE, SPAN_NAME, } from '../../../common/es_fields/apm'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { EventOutcome } from '../../../common/event_outcome'; import { LatencyDistributionChartType } from '../../../common/latency_distribution_chart_types'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOverallLatencyDistribution } from '../latency_distribution/get_overall_latency_distribution'; -import { OverallLatencyDistributionResponse } from '../latency_distribution/types'; +import type { OverallLatencyDistributionResponse } from '../latency_distribution/types'; export interface DependencyLatencyDistributionResponse { allSpansDistribution: OverallLatencyDistributionResponse; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_error_rate_charts_for_dependency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_error_rate_charts_for_dependency.ts index 14723665e5692..2938e604fbf1a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_error_rate_charts_for_dependency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_error_rate_charts_for_dependency.ts @@ -20,7 +20,7 @@ import { getDocumentTypeFilterForServiceDestinationStatistics, getProcessorEventForServiceDestinationStatistics, } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; interface Options { dependencyName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_latency_charts_for_dependency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_latency_charts_for_dependency.ts index df695bf87f406..7aafa9729675d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_latency_charts_for_dependency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_latency_charts_for_dependency.ts @@ -16,7 +16,7 @@ import { getLatencyFieldForServiceDestinationStatistics, getProcessorEventForServiceDestinationStatistics, } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; interface Options { dependencyName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_metadata_for_dependency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_metadata_for_dependency.ts index 5b84743064142..aaf12cb0b2fea 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_metadata_for_dependency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_metadata_for_dependency.ts @@ -15,7 +15,7 @@ import { SPAN_SUBTYPE, SPAN_TYPE, } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export interface MetadataForDependencyResponse { spanType: string | undefined; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_throughput_charts_for_dependency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_throughput_charts_for_dependency.ts index 8f16498ebff98..dc763a33ab31a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_throughput_charts_for_dependency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_throughput_charts_for_dependency.ts @@ -15,7 +15,7 @@ import { getDocumentTypeFilterForServiceDestinationStatistics, getProcessorEventForServiceDestinationStatistics, } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; interface Options { dependencyName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependencies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependencies.ts index eb7bcab85296e..6d23b9c871755 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependencies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependencies.ts @@ -6,17 +6,17 @@ */ import { kqlQuery } from '@kbn/observability-plugin/server'; -import { +import type { ConnectionStats, ConnectionStatsItemWithImpact, Node, - NodeType, } from '../../../common/connections'; +import { NodeType } from '../../../common/connections'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getConnectionStats } from '../../lib/connections/get_connection_stats'; import { getConnectionStatsItemsWithRelativeImpact } from '../../lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; interface Options { apmEventClient: APMEventClient; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_operations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_operations.ts index f082e94524e83..c03c8ed2ce2a0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_operations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_operations.ts @@ -14,7 +14,7 @@ import { SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, SPAN_NAME, } from '../../../common/es_fields/apm'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { EventOutcome } from '../../../common/event_outcome'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; @@ -26,7 +26,7 @@ import { getProcessorEventForServiceDestinationStatistics, } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; import { calculateImpactBuilder } from '../traces/calculate_impact_builder'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; const MAX_NUM_OPERATIONS = 500; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_spans.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_spans.ts index 6066ebda155d5..142bdfb0076bc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_spans.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_top_dependency_spans.ts @@ -25,12 +25,12 @@ import { TRANSACTION_NAME, TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { EventOutcome } from '../../../common/event_outcome'; import { environmentQuery } from '../../../common/utils/environment_query'; import { maybe } from '../../../common/utils/maybe'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; const MAX_NUM_SPANS = 1000; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_upstream_services_for_dependency.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_upstream_services_for_dependency.ts index 797b4c6c88295..680ce679e36d8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_upstream_services_for_dependency.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/get_upstream_services_for_dependency.ts @@ -6,13 +6,13 @@ */ import { kqlQuery } from '@kbn/observability-plugin/server'; -import { ConnectionStats, Node } from '../../../common/connections'; +import type { ConnectionStats, Node } from '../../../common/connections'; import { SPAN_DESTINATION_SERVICE_RESOURCE } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getConnectionStats } from '../../lib/connections/get_connection_stats'; import { getConnectionStatsItemsWithRelativeImpact } from '../../lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; interface Options { apmEventClient: APMEventClient; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/route.ts index 5a744759a865e..36780980cc0bd 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/dependencies/route.ts @@ -12,30 +12,23 @@ import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getRandomSampler } from '../../lib/helpers/get_random_sampler'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../default_api_types'; -import { - DependencyLatencyDistributionResponse, - getDependencyLatencyDistribution, -} from './get_dependency_latency_distribution'; +import type { DependencyLatencyDistributionResponse } from './get_dependency_latency_distribution'; +import { getDependencyLatencyDistribution } from './get_dependency_latency_distribution'; import { getErrorRateChartsForDependency } from './get_error_rate_charts_for_dependency'; -import { - getLatencyChartsForDependency, - LatencyChartsDependencyResponse, -} from './get_latency_charts_for_dependency'; -import { - getMetadataForDependency, - MetadataForDependencyResponse, -} from './get_metadata_for_dependency'; -import { - getThroughputChartsForDependency, - ThroughputChartsForDependencyResponse, -} from './get_throughput_charts_for_dependency'; -import { getTopDependencies, TopDependenciesResponse } from './get_top_dependencies'; -import { DependencyOperation, getTopDependencyOperations } from './get_top_dependency_operations'; -import { DependencySpan, getTopDependencySpans } from './get_top_dependency_spans'; -import { - getUpstreamServicesForDependency, - UpstreamServicesForDependencyResponse, -} from './get_upstream_services_for_dependency'; +import type { LatencyChartsDependencyResponse } from './get_latency_charts_for_dependency'; +import { getLatencyChartsForDependency } from './get_latency_charts_for_dependency'; +import type { MetadataForDependencyResponse } from './get_metadata_for_dependency'; +import { getMetadataForDependency } from './get_metadata_for_dependency'; +import type { ThroughputChartsForDependencyResponse } from './get_throughput_charts_for_dependency'; +import { getThroughputChartsForDependency } from './get_throughput_charts_for_dependency'; +import type { TopDependenciesResponse } from './get_top_dependencies'; +import { getTopDependencies } from './get_top_dependencies'; +import type { DependencyOperation } from './get_top_dependency_operations'; +import { getTopDependencyOperations } from './get_top_dependency_operations'; +import type { DependencySpan } from './get_top_dependency_spans'; +import { getTopDependencySpans } from './get_top_dependency_spans'; +import type { UpstreamServicesForDependencyResponse } from './get_upstream_services_for_dependency'; +import { getUpstreamServicesForDependency } from './get_upstream_services_for_dependency'; const topDependenciesRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/dependencies/top_dependencies', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_apm_events.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_apm_events.ts index dc6a6575e23f2..6437808eeadd0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_apm_events.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_apm_events.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { merge } from 'lodash'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; @@ -17,7 +17,8 @@ import { INDEX, } from '../../../../common/es_fields/apm'; import { getApmIndexPatterns } from './get_indices'; -import { getTypedSearch, TypedSearch } from '../../../utils/create_typed_es_client'; +import type { TypedSearch } from '../../../utils/create_typed_es_client'; +import { getTypedSearch } from '../../../utils/create_typed_es_client'; export interface ApmEvent { legacy?: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_data_streams.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_data_streams.ts index 6444739e6c4b5..1f312fa2f5007 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_data_streams.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_data_streams.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { getApmIndexPatterns } from './get_indices'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_existing_index_templates.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_existing_index_templates.ts index 228be70286595..959d8f7b41890 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_existing_index_templates.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_existing_index_templates.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { getApmIndexTemplateNames } from '../helpers/get_apm_index_template_names'; import { getIndexTemplate } from './get_index_template'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_field_caps.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_field_caps.ts index c734207fa7ece..dd489dff63753 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_field_caps.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_field_caps.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { getApmIndexPatterns } from './get_indices'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_template.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_template.ts index b1ff9ae3ab8ff..70a9ffcd579e7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_template.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_template.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { +import type { IndicesGetIndexTemplateRequest, IndicesGetIndexTemplateResponse, } from '@elastic/elasticsearch/lib/api/types'; import { errors } from '@elastic/elasticsearch'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; export async function getIndexTemplate( esClient: ElasticsearchClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_templates_by_index_pattern.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_templates_by_index_pattern.ts index 6d87c98ea5e22..bec9441bd1be4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_templates_by_index_pattern.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_index_templates_by_index_pattern.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { IndicesSimulateTemplateResponse } from '@elastic/elasticsearch/lib/api/types'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { IndicesSimulateTemplateResponse } from '@elastic/elasticsearch/lib/api/types'; import { orderBy } from 'lodash'; import { errors } from '@elastic/elasticsearch'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices.ts index fa4b01634893c..245d249edba9d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices.ts @@ -6,7 +6,7 @@ */ import { compact, uniq } from 'lodash'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; export function getApmIndexPatterns(indices: string[]) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices_states.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices_states.ts index aa8e2ef94d805..5e236be5760b5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices_states.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_indices_states.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { getApmIndexTemplateNames } from '../helpers/get_apm_index_template_names'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_non_data_stream_indices.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_non_data_stream_indices.ts index f2507657229a1..74755a650dac2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_non_data_stream_indices.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/bundle/get_non_data_stream_indices.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { getApmIndexPatterns } from './get_indices'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_diagnostics_bundle.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_diagnostics_bundle.ts index ca92b48fe4fda..917b84b6aeb93 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_diagnostics_bundle.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_diagnostics_bundle.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { NOT_AVAILABLE_LABEL } from '../../../common/i18n'; import { getDataStreams } from './bundle/get_data_streams'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_elasticsearch_version.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_elasticsearch_version.ts index 5f15275fc1f39..be1090e82354e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_elasticsearch_version.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_elasticsearch_version.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; export async function getElasticsearchVersion(esClient: ElasticsearchClient) { const { version } = await esClient.info(); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_fleet_package_info.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_fleet_package_info.ts index bbfc30c76ad7a..c2a2d507a8018 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_fleet_package_info.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/get_fleet_package_info.ts @@ -6,7 +6,7 @@ */ import { FleetUnauthorizedError } from '@kbn/fleet-plugin/server/errors'; -import { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; export async function getFleetPackageInfo(resources: APMRouteHandlerResources) { const fleetPluginStart = await resources.plugins.fleet?.start(); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_apm_index_template_names.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_apm_index_template_names.ts index 2a5f421ce67d9..c74b7ff89b635 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_apm_index_template_names.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_apm_index_template_names.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IndicesGetIndexTemplateIndexTemplateItem } from '@elastic/elasticsearch/lib/api/types'; +import type { IndicesGetIndexTemplateIndexTemplateItem } from '@elastic/elasticsearch/lib/api/types'; const suffix = 'template'; export function getApmIndexTemplateNames() { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_diagnostic_privileges.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_diagnostic_privileges.ts index 27f6d988e7154..18d98bddd0f7a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_diagnostic_privileges.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/helpers/get_diagnostic_privileges.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { getApmIndexPatterns } from '../bundle/get_indices'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/route.ts index fdeba801f8a6d..f8a1430a27ed8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/diagnostics/route.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { FieldCapsResponse, IndicesDataStream, IndicesGetIndexTemplateIndexTemplateItem, @@ -17,7 +17,7 @@ import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import * as t from 'io-ts'; import { isoToEpochRt } from '@kbn/io-ts-utils'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; -import { ApmEvent } from './bundle/get_apm_events'; +import type { ApmEvent } from './bundle/get_apm_events'; import { getDiagnosticsBundle } from './get_diagnostics_bundle'; import { getFleetPackageInfo } from './get_fleet_package_info'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.test.ts index 91f1eff244def..867c8b10a8739 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.test.ts @@ -6,8 +6,8 @@ */ import { mergeEntities } from './merge_entities'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; -import { EntityLatestServiceRaw } from '../types'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { EntityLatestServiceRaw } from '../types'; describe('mergeEntities', () => { it('modifies one service', () => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.ts b/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.ts index 1e95656cb1f8e..383b07606de0a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/entities/utils/merge_entities.ts @@ -6,7 +6,7 @@ */ import { compact, uniq } from 'lodash'; -import { EntityDataStreamType } from '@kbn/observability-shared-plugin/common'; +import type { EntityDataStreamType } from '@kbn/observability-shared-plugin/common'; import type { EntityLatestServiceRaw } from '../types'; import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.test.ts index 82a694e31c186..e6100cbc9a55a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.test.ts @@ -6,7 +6,8 @@ */ import { getAllEnvironments } from './get_all_environments'; -import { SearchParamsMock, inspectSearchParams } from '../../utils/test_helpers'; +import type { SearchParamsMock } from '../../utils/test_helpers'; +import { inspectSearchParams } from '../../utils/test_helpers'; describe('getAllEnvironments', () => { let mock: SearchParamsMock; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.ts b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.ts index 7842069217cfa..acbbb76f1c2cb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_all_environments.ts @@ -10,7 +10,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME, SERVICE_ENVIRONMENT } from '../../../common/es_fields/apm'; import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; /** * This is used for getting *all* environments, and does not filter by range. diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_environments.ts b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_environments.ts index 90ae73a214f4a..1eeb03087396a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_environments.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/environments/get_environments.ts @@ -10,8 +10,8 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_ENVIRONMENT, SERVICE_NAME } from '../../../common/es_fields/apm'; import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { Environment } from '../../../common/environment_rt'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Environment } from '../../../common/environment_rt'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; /** * This is used for getting the list of environments for the environment selector, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/environments/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/environments/route.ts index 23d9b03e9c48e..181b4688b65f8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/environments/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/environments/route.ts @@ -7,7 +7,7 @@ import * as t from 'io-ts'; import { maxSuggestions } from '@kbn/observability-plugin/common'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; import { getEnvironments } from './get_environments'; import { rangeRt } from '../default_api_types'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_buckets.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_buckets.ts index 8b1a87e47ae93..58a0b97ee25d6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_buckets.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_buckets.ts @@ -10,7 +10,7 @@ import { ApmDocumentType } from '../../../../common/document_type'; import { ERROR_GROUP_ID, SERVICE_NAME } from '../../../../common/es_fields/apm'; import { RollupInterval } from '../../../../common/rollup'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export async function getBuckets({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_distribution.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_distribution.ts index 1e048caafe9dd..f7e69e3c7b9b2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_distribution.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/get_distribution.ts @@ -9,8 +9,8 @@ import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset import { BUCKET_TARGET_COUNT } from '../../transactions/constants'; import { getBuckets } from './get_buckets'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { Maybe } from '../../../../typings/common'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Maybe } from '../../../../typings/common'; function getBucketSize({ start, end }: { start: number; end: number }) { return Math.floor((end - start) / BUCKET_TARGET_COUNT); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/queries.test.ts index c626f47742602..2be5cab229dab 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/distribution/queries.test.ts @@ -6,7 +6,8 @@ */ import { getErrorDistribution } from './get_distribution'; -import { SearchParamsMock, inspectSearchParams } from '../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../utils/test_helpers'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; describe('error distribution queries', () => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/erroneous_transactions/get_top_erroneous_transactions.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/erroneous_transactions/get_top_erroneous_transactions.ts index c5387ea5e7593..dd542cc6a9126 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/erroneous_transactions/get_top_erroneous_transactions.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/erroneous_transactions/get_top_erroneous_transactions.ts @@ -25,7 +25,7 @@ import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; async function getTopErroneousTransactions({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_detailed_statistics.ts index d586c9d7e4777..be48580a7ddec 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_detailed_statistics.ts @@ -8,12 +8,12 @@ import { keyBy } from 'lodash'; import { rangeQuery, kqlQuery, termQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { ERROR_GROUP_ID, SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface ErrorGroupDetailedStat { groupId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_main_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_main_statistics.ts index 8f201efbe6549..aa7fcd8868f17 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_main_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_main_statistics.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; +import type { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; import { kqlQuery, rangeQuery, termQuery, wildcardQuery } from '@kbn/observability-plugin/server'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; @@ -26,7 +26,7 @@ import { } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getErrorName } from '../../../lib/helpers/get_error_name'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_sample_ids.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_sample_ids.ts index fc80c3f411651..508e2353e7777 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_sample_ids.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_group_sample_ids.ts @@ -15,7 +15,7 @@ import { TRANSACTION_SAMPLED, } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts index 074a4115d875b..4217ec526c564 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts @@ -33,10 +33,10 @@ import { import { environmentQuery } from '../../../../common/utils/environment_query'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getTransaction } from '../../transactions/get_transaction'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; -import { APMError } from '../../../../typings/es_schemas/ui/apm_error'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { APMError } from '../../../../typings/es_schemas/ui/apm_error'; export interface ErrorSampleDetailsResponse { transaction: Transaction | undefined; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/route.ts index 95a5f68f9cce6..9f8a94a858649 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/route.ts @@ -9,29 +9,20 @@ import { jsonRt, toNumberRt } from '@kbn/io-ts-utils'; import * as t from 'io-ts'; import { notFound } from '@hapi/boom'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; -import { ErrorDistributionResponse, getErrorDistribution } from './distribution/get_distribution'; +import type { ErrorDistributionResponse } from './distribution/get_distribution'; +import { getErrorDistribution } from './distribution/get_distribution'; import { environmentRt, kueryRt, rangeRt } from '../default_api_types'; -import { - ErrorGroupMainStatisticsResponse, - getErrorGroupMainStatistics, -} from './get_error_groups/get_error_group_main_statistics'; -import { - ErrorGroupPeriodsResponse, - getErrorGroupPeriods, -} from './get_error_groups/get_error_group_detailed_statistics'; -import { - ErrorGroupSampleIdsResponse, - getErrorGroupSampleIds, -} from './get_error_groups/get_error_group_sample_ids'; -import { - ErrorSampleDetailsResponse, - getErrorSampleDetails, -} from './get_error_groups/get_error_sample_details'; +import type { ErrorGroupMainStatisticsResponse } from './get_error_groups/get_error_group_main_statistics'; +import { getErrorGroupMainStatistics } from './get_error_groups/get_error_group_main_statistics'; +import type { ErrorGroupPeriodsResponse } from './get_error_groups/get_error_group_detailed_statistics'; +import { getErrorGroupPeriods } from './get_error_groups/get_error_group_detailed_statistics'; +import type { ErrorGroupSampleIdsResponse } from './get_error_groups/get_error_group_sample_ids'; +import { getErrorGroupSampleIds } from './get_error_groups/get_error_group_sample_ids'; +import type { ErrorSampleDetailsResponse } from './get_error_groups/get_error_sample_details'; +import { getErrorSampleDetails } from './get_error_groups/get_error_sample_details'; import { offsetRt } from '../../../common/comparison_rt'; -import { - getTopErroneousTransactionsPeriods, - TopErroneousTransactionsResponse, -} from './erroneous_transactions/get_top_erroneous_transactions'; +import type { TopErroneousTransactionsResponse } from './erroneous_transactions/get_top_erroneous_transactions'; +import { getTopErroneousTransactionsPeriods } from './erroneous_transactions/get_top_erroneous_transactions'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; const errorsMainStatisticsRoute = createApmServerRoute({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/add_api_keys_to_policies_if_missing.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/add_api_keys_to_policies_if_missing.ts index a59795b3e1cfd..a5b16d6d44da6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/add_api_keys_to_policies_if_missing.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/add_api_keys_to_policies_if_missing.ts @@ -6,11 +6,11 @@ */ import { omit } from 'lodash'; -import { PackagePolicy } from '@kbn/fleet-plugin/common'; -import { CoreStart, Logger } from '@kbn/core/server'; -import { FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { CoreStart, Logger } from '@kbn/core/server'; +import type { FleetStartContract } from '@kbn/fleet-plugin/server'; import { getInternalSavedObjectsClient } from '../../../lib/helpers/get_internal_saved_objects_client'; -import { APMPluginStartDependencies } from '../../../types'; +import type { APMPluginStartDependencies } from '../../../types'; import { getApmPackagePolicies } from '../get_apm_package_policies'; import { createApmAgentConfigApiKey, createApmSourceMapApiKey } from './create_apm_api_keys'; import { getPackagePolicyWithApiKeys, policyHasApiKey } from '../get_package_policy_decorators'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/create_apm_api_keys.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/create_apm_api_keys.ts index 88488d6c04f8a..7b64a477d7b2e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/create_apm_api_keys.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/api_keys/create_apm_api_keys.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart, Logger } from '@kbn/core/server'; +import type { CoreStart, Logger } from '@kbn/core/server'; import { APM_AGENT_CONFIGURATION_INDEX, APM_SOURCE_MAP_INDEX, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/create_cloud_apm_package_policy.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/create_cloud_apm_package_policy.ts index 2faf26022de33..1dc1d4ae98e60 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/create_cloud_apm_package_policy.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/create_cloud_apm_package_policy.ts @@ -5,23 +5,23 @@ * 2.0. */ -import { +import type { ElasticsearchClient, SavedObjectsClientContract, Logger, KibanaRequest, } from '@kbn/core/server'; -import { PackagePolicy } from '@kbn/fleet-plugin/common'; -import { APMIndices } from '@kbn/apm-data-access-plugin/server'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { APM_SERVER_SCHEMA_SAVED_OBJECT_TYPE, APM_SERVER_SCHEMA_SAVED_OBJECT_ID, } from '../../../common/apm_saved_object_constants'; -import { APMPluginSetupDependencies, APMPluginStartDependencies } from '../../types'; +import type { APMPluginSetupDependencies, APMPluginStartDependencies } from '../../types'; import { getApmPackagePolicyDefinition } from './get_apm_package_policy_definition'; import { decoratePackagePolicyWithAgentConfigAndSourceMap } from './merge_package_policy_with_apm'; import { ELASTIC_CLOUD_APM_AGENT_POLICY_ID } from '../../../common/fleet'; -import { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; export async function createCloudApmPackgePolicy({ cloudPluginSetup, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_agents.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_agents.ts index e989e0da42321..6fff163f628e9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_agents.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_agents.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; -import { FleetStartContract } from '@kbn/fleet-plugin/server'; -import { CloudSetup } from '@kbn/cloud-plugin/server'; +import type { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; +import type { FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { CloudSetup } from '@kbn/cloud-plugin/server'; import { keyBy } from 'lodash'; -import { APMPluginStartDependencies } from '../../types'; +import type { APMPluginStartDependencies } from '../../types'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; import { getApmPackagePolicies } from './get_apm_package_policies'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policies.ts index bbc49ced78dc1..22422155903ec 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policies.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; -import { APMPluginStartDependencies } from '../../types'; +import type { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; +import type { APMPluginStartDependencies } from '../../types'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; export async function getApmPackagePolicies({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policy_definition.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policy_definition.ts index 06037bf53fdc6..224192b95ce94 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policy_definition.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_apm_package_policy_definition.ts @@ -6,13 +6,13 @@ */ import yaml from 'js-yaml'; -import { KibanaRequest } from '@kbn/core/server'; -import { RegistryVarsEntry } from '@kbn/fleet-plugin/common'; +import type { KibanaRequest } from '@kbn/core/server'; +import type { RegistryVarsEntry } from '@kbn/fleet-plugin/common'; import { POLICY_ELASTIC_AGENT_ON_CLOUD, INPUT_VAR_NAME_TO_SCHEMA_PATH, } from '../../../common/fleet'; -import { APMPluginSetupDependencies, APMPluginStartDependencies } from '../../types'; +import type { APMPluginSetupDependencies, APMPluginStartDependencies } from '../../types'; import { getLatestApmPackage } from './get_latest_apm_package'; import { translateLegacySchemaPaths } from './translate_legacy_schema_paths'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_cloud_apm_package_policy.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_cloud_apm_package_policy.ts index 21b8fe3929930..328944d06bbd6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_cloud_apm_package_policy.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_cloud_apm_package_policy.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { AgentPolicy, PackagePolicy } from '@kbn/fleet-plugin/common'; -import { Maybe } from '../../../typings/common'; -import { APMPluginStartDependencies } from '../../types'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { AgentPolicy, PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { Maybe } from '../../../typings/common'; +import type { APMPluginStartDependencies } from '../../types'; import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; export const APM_PACKAGE_NAME = 'apm'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_latest_apm_package.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_latest_apm_package.ts index e63a0f9b468b1..673674fd1dc2d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_latest_apm_package.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_latest_apm_package.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core/server'; -import { APMPluginStartDependencies } from '../../types'; +import type { KibanaRequest } from '@kbn/core/server'; +import type { APMPluginStartDependencies } from '../../types'; import { APM_PACKAGE_NAME } from './get_cloud_apm_package_policy'; export async function getLatestApmPackage({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_package_policy_decorators.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_package_policy_decorators.ts index 39d02e95b6109..a1a37ca1687a8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_package_policy_decorators.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_package_policy_decorators.ts @@ -7,10 +7,10 @@ import { set } from '@kbn/safer-lodash-set'; import { cloneDeep, get } from 'lodash'; -import { NewPackagePolicy } from '@kbn/fleet-plugin/common'; -import { AgentConfiguration } from '../../../common/agent_configuration/configuration_types'; +import type { NewPackagePolicy } from '@kbn/fleet-plugin/common'; +import type { AgentConfiguration } from '../../../common/agent_configuration/configuration_types'; import { AGENT_NAME } from '../../../common/es_fields/apm'; -import { ArtifactSourceMap } from './source_maps'; +import type { ArtifactSourceMap } from './source_maps'; // agent config export const AGENT_CONFIG_PATH = `inputs[0].config['apm-server'].value.agent_config`; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.test.ts index 2e2473e425a27..cdfce93eb70b4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { getUnsupportedApmServerSchema } from './get_unsupported_apm_server_schema'; const apmServerSchema = { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.ts index 99cddebcf0d91..9c7718fda20b3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/get_unsupported_apm_server_schema.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { INPUT_VAR_NAME_TO_SCHEMA_PATH } from '../../../common/fleet'; import { APM_SERVER_SCHEMA_SAVED_OBJECT_TYPE, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/is_superuser.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/is_superuser.ts index 97a6bd92a88de..2fee1b29c4435 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/is_superuser.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/is_superuser.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart, KibanaRequest } from '@kbn/core/server'; +import type { CoreStart, KibanaRequest } from '@kbn/core/server'; export function isSuperuser({ coreStart, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/merge_package_policy_with_apm.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/merge_package_policy_with_apm.ts index e7a01142a052b..b4dc631f0efba 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/merge_package_policy_with_apm.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/merge_package_policy_with_apm.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { NewPackagePolicy } from '@kbn/fleet-plugin/common'; -import { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; -import { APMPluginStartDependencies } from '../../types'; +import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; +import type { NewPackagePolicy } from '@kbn/fleet-plugin/common'; +import type { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMPluginStartDependencies } from '../../types'; import { listConfigurations } from '../settings/agent_configuration/list_configurations'; import { getPackagePolicyWithAgentConfigurations, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/register_fleet_policy_callbacks.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/register_fleet_policy_callbacks.ts index 2237548f2d325..65d099e9aea3d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/register_fleet_policy_callbacks.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/register_fleet_policy_callbacks.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Logger, CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; -import { +import type { Logger, CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; +import type { FleetStartContract, PostPackagePolicyCreateCallback, PostPackagePolicyDeleteCallback, @@ -23,7 +23,7 @@ import { } from './get_package_policy_decorators'; import { createInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; -import { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; export async function registerFleetPolicyCallbacks({ logger, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts index ab74a48887f6a..c4b8789543649 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts @@ -8,25 +8,25 @@ import Boom from '@hapi/boom'; import { i18n } from '@kbn/i18n'; import * as t from 'io-ts'; -import { PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common'; import { APM_SERVER_SCHEMA_SAVED_OBJECT_ID, APM_SERVER_SCHEMA_SAVED_OBJECT_TYPE, } from '../../../common/apm_saved_object_constants'; -import { ApmFeatureFlags } from '../../../common/apm_feature_flags'; +import type { ApmFeatureFlags } from '../../../common/apm_feature_flags'; import { createInternalESClientWithResources } from '../../lib/helpers/create_es_client/create_internal_es_client'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { createCloudApmPackgePolicy } from './create_cloud_apm_package_policy'; -import { FleetAgentResponse, getFleetAgents } from './get_agents'; +import type { FleetAgentResponse } from './get_agents'; +import { getFleetAgents } from './get_agents'; import { getApmPackagePolicies } from './get_apm_package_policies'; import { getJavaAgentVersionsFromRegistry } from './get_java_agent_versions'; -import { - getUnsupportedApmServerSchema, - UnsupportedApmServerSchema, -} from './get_unsupported_apm_server_schema'; +import type { UnsupportedApmServerSchema } from './get_unsupported_apm_server_schema'; +import { getUnsupportedApmServerSchema } from './get_unsupported_apm_server_schema'; import { isSuperuser } from './is_superuser'; -import { runMigrationCheck, RunMigrationCheckResponse } from './run_migration_check'; +import type { RunMigrationCheckResponse } from './run_migration_check'; +import { runMigrationCheck } from './run_migration_check'; function throwNotFoundIfFleetMigrationNotAvailable(featureFlags: ApmFeatureFlags): void { if (!featureFlags.migrationToFleetAvailable) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/run_migration_check.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/run_migration_check.ts index ff4487c0684d9..7b050071c8fa2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/run_migration_check.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/run_migration_check.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { PackagePolicy } from '@kbn/fleet-plugin/common'; -import { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { APMRouteHandlerResources } from '../apm_routes/register_apm_server_routes'; import { getApmPackagePolicies } from './get_apm_package_policies'; import { getApmPackagePolicy, getCloudAgentPolicy } from './get_cloud_apm_package_policy'; import { getLatestApmPackage } from './get_latest_apm_package'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.test.ts index b11cf58f8be01..3883f68d2494d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.test.ts @@ -6,7 +6,8 @@ */ import { getPackagePolicyWithSourceMap } from './get_package_policy_decorators'; -import { ArtifactSourceMap, getCleanedBundleFilePath } from './source_maps'; +import type { ArtifactSourceMap } from './source_maps'; +import { getCleanedBundleFilePath } from './source_maps'; const packagePolicy = { id: '123', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.ts index 0ec305058affb..be9fc9e771499 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/source_maps.ts @@ -4,12 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart, ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server'; +import type { CoreStart, ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server'; import { promisify } from 'util'; import { unzip } from 'zlib'; -import { Artifact } from '@kbn/fleet-plugin/server'; -import { SourceMap } from '../source_maps/route'; -import { APMPluginStartDependencies } from '../../types'; +import type { Artifact } from '@kbn/fleet-plugin/server'; +import type { SourceMap } from '../source_maps/route'; +import type { APMPluginStartDependencies } from '../../types'; import { getApmPackagePolicies } from './get_apm_package_policies'; import { getPackagePolicyWithSourceMap } from './get_package_policy_decorators'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/sync_agent_configs_to_apm_package_policies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/sync_agent_configs_to_apm_package_policies.ts index b7881d478825e..f368a91211caa 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/sync_agent_configs_to_apm_package_policies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/sync_agent_configs_to_apm_package_policies.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; -import { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { TelemetryUsageCounter } from '../typings'; -import { APMPluginStartDependencies } from '../../types'; +import type { CoreStart, SavedObjectsClientContract } from '@kbn/core/server'; +import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; +import type { TelemetryUsageCounter } from '../typings'; +import type { APMPluginStartDependencies } from '../../types'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; import { listConfigurations } from '../settings/agent_configuration/list_configurations'; import { getApmPackagePolicies } from './get_apm_package_policies'; import { getPackagePolicyWithAgentConfigurations } from './get_package_policy_decorators'; -import { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../lib/helpers/create_es_client/create_internal_es_client'; export async function syncAgentConfigsToApmPackagePolicies({ coreStartPromise, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_agent_data.ts b/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_agent_data.ts index 5489d893f86f1..ab7fe11a38c8b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_agent_data.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_agent_data.ts @@ -7,7 +7,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import type { DataTier } from '@kbn/observability-shared-plugin/common'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function hasHistoricalAgentData(apmEventClient: APMEventClient) { const hasDataInWarmOrHotDataTiers = await hasDataRequest(apmEventClient, [ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_entities_data.ts b/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_entities_data.ts index f245c27a99036..747dc930ed1ed 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_entities_data.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/historical_data/has_historical_entities_data.ts @@ -5,9 +5,9 @@ * 2.0. */ import { WrappedElasticsearchClientError } from '@kbn/observability-plugin/server'; -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; import { errors } from '@elastic/elasticsearch'; -import { EntitiesESClient } from '../../lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client'; +import type { EntitiesESClient } from '../../lib/helpers/create_es_client/create_entities_es_client/create_entities_es_client'; export async function hasEntitiesData(entitiesESClient: EntitiesESClient, logger: Logger) { const params = { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_host_names.ts b/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_host_names.ts index b79b0e5b4358a..f776f5248b75b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_host_names.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_host_names.ts @@ -7,7 +7,7 @@ import { rangeQuery } from '@kbn/observability-plugin/server'; import { CONTAINER_ID, HOST_NAME } from '../../../common/es_fields/apm'; -import { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; +import type { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; export async function getContainerHostNames({ containerIds, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_infrastructure_data.ts b/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_infrastructure_data.ts index a8013a2433f2d..14dabb21098c6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_infrastructure_data.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/infrastructure/get_infrastructure_data.ts @@ -14,7 +14,7 @@ import { HOST_HOSTNAME, KUBERNETES_POD_NAME, } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export const getInfrastructureData = async ({ kuery, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_overall_latency_distribution.ts b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_overall_latency_distribution.ts index f1ffe5b3ddfbf..fa59e5bc81651 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_overall_latency_distribution.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_overall_latency_distribution.ts @@ -6,14 +6,14 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { withApmSpan } from '../../utils/with_apm_span'; import { fetchDurationRanges } from '../correlations/queries/fetch_duration_ranges'; import { fetchDurationHistogramRangeSteps } from '../correlations/queries/fetch_duration_histogram_range_steps'; import { getPercentileThresholdValue } from './get_percentile_threshold_value'; import type { OverallLatencyDistributionResponse } from './types'; -import { LatencyDistributionChartType } from '../../../common/latency_distribution_chart_types'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { LatencyDistributionChartType } from '../../../common/latency_distribution_chart_types'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getOverallLatencyDistribution({ chartType, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_percentile_threshold_value.ts b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_percentile_threshold_value.ts index bb6b65c4a1735..4933a33177842 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_percentile_threshold_value.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/get_percentile_threshold_value.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CommonCorrelationsQueryParams } from '../../../common/correlations/types'; -import { LatencyDistributionChartType } from '../../../common/latency_distribution_chart_types'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { CommonCorrelationsQueryParams } from '../../../common/correlations/types'; +import type { LatencyDistributionChartType } from '../../../common/latency_distribution_chart_types'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { fetchDurationPercentiles } from '../correlations/queries/fetch_duration_percentiles'; export async function getPercentileThresholdValue({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/route.ts index 704eaf393702e..413a80ae40bd9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/latency_distribution/route.ts @@ -8,7 +8,7 @@ import * as t from 'io-ts'; import { toNumberRt } from '@kbn/io-ts-utils'; import { termQuery } from '@kbn/observability-plugin/server'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { getOverallLatencyDistribution } from './get_overall_latency_distribution'; import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; @@ -19,7 +19,7 @@ import { LatencyDistributionChartType, } from '../../../common/latency_distribution_chart_types'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; -import { OverallLatencyDistributionResponse } from './types'; +import type { OverallLatencyDistributionResponse } from './types'; const latencyOverallTransactionDistributionRoute = createApmServerRoute({ endpoint: 'POST /internal/apm/latency/overall_distribution/transactions', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/default.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/default.ts index 1d465160eb707..49c15807208d0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/default.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/default.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { APMConfig } from '../../..'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getCPUChartData } from './shared/cpu'; import { getMemoryChartData } from './shared/memory'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.test.ts index 0f5e639c295ac..2b43a79567433 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; -import { ChartBase } from '../../../types'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ChartBase } from '../../../types'; import { fetchAndTransformGcMetrics, TIME, RATE } from './fetch_and_transform_gc_metrics'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.ts index 5bc31262b0d95..4e3e45e00722c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.ts @@ -11,7 +11,7 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { isFiniteNumber } from '../../../../../../common/utils/is_finite_number'; import { getMetricsDateHistogramParams } from '../../../../../lib/helpers/metrics'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { AGENT_NAME, @@ -29,8 +29,8 @@ import { environmentQuery, serviceNodeNameQuery, } from '../../../../../../common/utils/environment_query'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; export const RATE = 'rate'; export const TIME = 'time'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_rate_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_rate_chart.ts index 40810accdf1c2..9cbc4c49c5d37 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_rate_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_rate_chart.ts @@ -9,9 +9,9 @@ import { euiLightVars as theme } from '@kbn/ui-theme'; import { i18n } from '@kbn/i18n'; import { METRIC_JAVA_GC_COUNT } from '../../../../../../common/es_fields/apm'; import { fetchAndTransformGcMetrics, RATE } from './fetch_and_transform_gc_metrics'; -import { ChartBase } from '../../../types'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ChartBase } from '../../../types'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { [METRIC_JAVA_GC_COUNT]: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_time_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_time_chart.ts index 8b1b08e5c5d20..4f957ec9c3d99 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_time_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/gc/get_gc_time_chart.ts @@ -9,9 +9,9 @@ import { euiLightVars as theme } from '@kbn/ui-theme'; import { i18n } from '@kbn/i18n'; import { METRIC_JAVA_GC_TIME } from '../../../../../../common/es_fields/apm'; import { fetchAndTransformGcMetrics, TIME } from './fetch_and_transform_gc_metrics'; -import { ChartBase } from '../../../types'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMConfig } from '../../../../..'; +import type { ChartBase } from '../../../types'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; const series = { [METRIC_JAVA_GC_TIME]: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/heap_memory/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/heap_memory/index.ts index 49b6146ca5db9..e47e1f199d353 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/heap_memory/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/heap_memory/index.ts @@ -19,10 +19,10 @@ import { AGENT_NAME, } from '../../../../../../common/es_fields/apm'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { JAVA_AGENT_NAMES } from '../../../../../../common/agent_name'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { heapMemoryUsed: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/index.ts index 8fe91f796fc4c..23ddd3564cfbe 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/index.ts @@ -14,8 +14,8 @@ import { getMemoryChartData } from '../shared/memory'; import { getOTelSystemCPUChartDataForJava } from './otel_cpu'; import { getGcRateChart } from './gc/get_gc_rate_chart'; import { getGcTimeChart } from './gc/get_gc_time_chart'; -import { APMConfig } from '../../../..'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../..'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; export function getJavaMetricsCharts({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/non_heap_memory/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/non_heap_memory/index.ts index 54e47b8487fa7..e3080de983e73 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/non_heap_memory/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/non_heap_memory/index.ts @@ -18,11 +18,11 @@ import { LABEL_TYPE, AGENT_NAME, } from '../../../../../../common/es_fields/apm'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; import { JAVA_AGENT_NAMES } from '../../../../../../common/agent_name'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { nonHeapMemoryUsed: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/otel_cpu/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/otel_cpu/index.ts index 49d08a148e096..975286f7a94a0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/otel_cpu/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/otel_cpu/index.ts @@ -11,10 +11,10 @@ import { METRIC_OTEL_JVM_SYSTEM_CPU_PERCENT, METRIC_OTEL_JVM_PROCESS_CPU_PERCENT, } from '../../../../../../common/es_fields/apm'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { systemCPUMax: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/thread_count/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/thread_count/index.ts index 92ed1a45ffd10..8278770eebe0b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/thread_count/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/java/thread_count/index.ts @@ -12,11 +12,11 @@ import { METRIC_OTEL_JVM_PROCESS_THREADS_COUNT, AGENT_NAME, } from '../../../../../../common/es_fields/apm'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; import { JAVA_AGENT_NAMES } from '../../../../../../common/agent_name'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { threadCount: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/cpu/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/cpu/index.ts index e39587a0a94dc..01cc59ba858df 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/cpu/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/cpu/index.ts @@ -12,10 +12,10 @@ import { METRIC_PROCESS_CPU_PERCENT, METRIC_OTEL_SYSTEM_CPU_UTILIZATION, } from '../../../../../../common/es_fields/apm'; -import { ChartBase } from '../../../types'; +import type { ChartBase } from '../../../types'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { systemCPUMax: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/memory/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/memory/index.ts index af3e7301f8e61..960f153bb6f45 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/memory/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/by_agent/shared/memory/index.ts @@ -17,9 +17,9 @@ import { METRIC_OTEL_SYSTEM_MEMORY_UTILIZATION, } from '../../../../../../common/es_fields/apm'; import { fetchAndTransformMetrics } from '../../../fetch_and_transform_metrics'; -import { ChartBase } from '../../../types'; -import { APMConfig } from '../../../../..'; -import { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ChartBase } from '../../../types'; +import type { APMConfig } from '../../../../..'; +import type { APMEventClient } from '../../../../../lib/helpers/create_es_client/create_apm_event_client'; const series = { memoryUsedMax: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/fetch_and_transform_metrics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/fetch_and_transform_metrics.ts index ad60dc67356ec..b177bb7cde384 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/fetch_and_transform_metrics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/fetch_and_transform_metrics.ts @@ -5,23 +5,23 @@ * 2.0. */ -import { Unionize } from 'utility-types'; +import type { Unionize } from 'utility-types'; import { euiLightVars as theme } from '@kbn/ui-theme'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import type { AggregationOptionsByType } from '@kbn/es-types'; import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getVizColorForIndex } from '../../../common/viz_colors'; -import { +import type { APMEventClient, APMEventESSearchRequest, } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getMetricsDateHistogramParams } from '../../lib/helpers/metrics'; -import { ChartBase } from './types'; +import type { ChartBase } from './types'; import { environmentQuery, serviceNodeNameQuery } from '../../../common/utils/environment_query'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; -import { ChartType, Coordinate, YUnit } from '../../../typings/timeseries'; -import { APMConfig } from '../..'; +import type { ChartType, Coordinate, YUnit } from '../../../typings/timeseries'; +import type { APMConfig } from '../..'; type MetricsAggregationMap = Unionize<{ min: AggregationOptionsByType['min']; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_metrics_chart_data_by_agent.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_metrics_chart_data_by_agent.ts index c16a63dbe4d23..3d71d1b35625f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_metrics_chart_data_by_agent.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_metrics_chart_data_by_agent.ts @@ -8,9 +8,9 @@ import { getJavaMetricsCharts } from './by_agent/java'; import { getDefaultMetricsCharts } from './by_agent/default'; import { isJavaAgentName } from '../../../common/agent_name'; -import { GenericMetricsChart } from './fetch_and_transform_metrics'; -import { APMConfig } from '../..'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { GenericMetricsChart } from './fetch_and_transform_metrics'; +import type { APMConfig } from '../..'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { hasOTelMetrics } from './has_otel_metrics'; export async function getMetricsChartDataByAgent({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_service_nodes.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_service_nodes.ts index ab6dbdb5d9b9d..2f3cdb58fcc02 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_service_nodes.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/get_service_nodes.ts @@ -24,7 +24,7 @@ import { SERVICE_NODE_NAME_MISSING } from '../../../common/service_nodes'; import { asMutableArray } from '../../../common/utils/as_mutable_array'; import { SERVICE_NAME, SERVICE_NODE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { hasOTelMetrics } from './has_otel_metrics'; export type ServiceNodesResponse = Array<{ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/has_otel_metrics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/has_otel_metrics.ts index 1a9b2ab6e3581..52198fc874e01 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/has_otel_metrics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/has_otel_metrics.ts @@ -16,7 +16,7 @@ import { } from '../../../common/es_fields/apm'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; const hasOTelMetrics = async ({ kuery, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/queries.test.ts index eb94bc8bdf762..06f8e5fa4c3e9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/queries.test.ts @@ -10,7 +10,8 @@ import { getMemoryChartData } from './by_agent/shared/memory'; import { getHeapMemoryChart } from './by_agent/java/heap_memory'; import { getNonHeapMemoryChart } from './by_agent/java/non_heap_memory'; import { getThreadCountChart } from './by_agent/java/thread_count'; -import { SearchParamsMock, inspectSearchParams } from '../../utils/test_helpers'; +import type { SearchParamsMock } from '../../utils/test_helpers'; +import { inspectSearchParams } from '../../utils/test_helpers'; import { SERVICE_NODE_NAME_MISSING } from '../../../common/service_nodes'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/route.ts index 63fcd8ad87e67..5238cb50642b0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/route.ts @@ -9,9 +9,10 @@ import * as t from 'io-ts'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../default_api_types'; -import { FetchAndTransformMetrics } from './fetch_and_transform_metrics'; +import type { FetchAndTransformMetrics } from './fetch_and_transform_metrics'; import { getMetricsChartDataByAgent } from './get_metrics_chart_data_by_agent'; -import { getServiceNodes, ServiceNodesResponse } from './get_service_nodes'; +import type { ServiceNodesResponse } from './get_service_nodes'; +import { getServiceNodes } from './get_service_nodes'; import { metricsServerlessRouteRepository } from './serverless/route'; const metricsChartsRoute = createApmServerRoute({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_overview.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_overview.ts index 294f25e4788ed..17aff6da9d8d0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_overview.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_overview.ts @@ -18,10 +18,10 @@ import { } from '../../../../common/es_fields/apm'; import { getServerlessFunctionNameFromId } from '../../../../common/serverless'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { calcMemoryUsed } from './helper'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface ActiveInstanceTimeseries { serverlessDuration: Coordinate[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_timeseries.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_timeseries.ts index 2f22232a8f19a..4efe74df7771c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_active_instances_timeseries.ts @@ -14,10 +14,10 @@ import { SERVICE_NODE_NAME, } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { getMetricsDateHistogramParams } from '../../../lib/helpers/metrics'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMConfig } from '../../..'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; export async function getActiveInstancesTimeseries({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_count_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_count_chart.ts index 343b4a928238e..1fda5f73bc76c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_count_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_count_chart.ts @@ -8,11 +8,11 @@ import { i18n } from '@kbn/i18n'; import { termQuery } from '@kbn/observability-plugin/server'; import { euiLightVars as theme } from '@kbn/ui-theme'; -import { APMConfig } from '../../..'; +import type { APMConfig } from '../../..'; import { FAAS_COLDSTART, FAAS_ID, METRICSET_NAME } from '../../../../common/es_fields/apm'; import { fetchAndTransformMetrics } from '../fetch_and_transform_metrics'; -import { ChartBase } from '../types'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ChartBase } from '../types'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; const chartBase: ChartBase = { title: i18n.translate('xpack.apm.agentMetrics.serverless.coldStart.title', { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_duration_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_duration_chart.ts index dac1f94908824..a40a4a4a4a131 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_duration_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_cold_start_duration_chart.ts @@ -10,10 +10,10 @@ import { euiLightVars as theme } from '@kbn/ui-theme'; import { termQuery } from '@kbn/observability-plugin/server'; import { FAAS_COLDSTART_DURATION, FAAS_ID, METRICSET_NAME } from '../../../../common/es_fields/apm'; import { fetchAndTransformMetrics } from '../fetch_and_transform_metrics'; -import { ChartBase } from '../types'; +import type { ChartBase } from '../types'; import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; -import { APMConfig } from '../../..'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; const chartBase: ChartBase = { title: i18n.translate('xpack.apm.agentMetrics.serverless.coldStartDuration', { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_compute_usage_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_compute_usage_chart.ts index 3cdb1469295a9..b8e92dc7ac2a5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_compute_usage_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_compute_usage_chart.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { euiLightVars as theme } from '@kbn/ui-theme'; -import { APMConfig } from '../../..'; +import type { APMConfig } from '../../..'; import { FAAS_BILLED_DURATION, FAAS_ID, @@ -19,8 +19,8 @@ import { } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getMetricsDateHistogramParams } from '../../../lib/helpers/metrics'; -import { GenericMetricsChart } from '../fetch_and_transform_metrics'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { GenericMetricsChart } from '../fetch_and_transform_metrics'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { convertComputeUsageToGbSec } from './helper'; export const computeUsageAvgScript = { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_agent_metrics_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_agent_metrics_chart.ts index 6fae8dcd0fd9b..71e45257f0cae 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_agent_metrics_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_agent_metrics_chart.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { APMConfig } from '../../..'; -import { ApmTransactionDocumentType } from '../../../../common/document_type'; -import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; +import type { ApmTransactionDocumentType } from '../../../../common/document_type'; +import type { RollupInterval } from '../../../../common/rollup'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { withApmSpan } from '../../../utils/with_apm_span'; import { getMemoryChartData } from '../by_agent/shared/memory'; import { getColdStartCountChart } from './get_cold_start_count_chart'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_function_latency_chart.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_function_latency_chart.ts index 57f7d4d30c674..4735855188e9d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_function_latency_chart.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_function_latency_chart.ts @@ -9,17 +9,18 @@ import { i18n } from '@kbn/i18n'; import { termQuery } from '@kbn/observability-plugin/server'; import { euiLightVars as theme } from '@kbn/ui-theme'; import { isEmpty } from 'lodash'; -import { APMConfig } from '../../..'; -import { ApmTransactionDocumentType } from '../../../../common/document_type'; +import type { APMConfig } from '../../..'; +import type { ApmTransactionDocumentType } from '../../../../common/document_type'; import { FAAS_BILLED_DURATION, FAAS_ID, METRICSET_NAME } from '../../../../common/es_fields/apm'; import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; -import { RollupInterval } from '../../../../common/rollup'; +import type { RollupInterval } from '../../../../common/rollup'; import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; import { getVizColorForIndex } from '../../../../common/viz_colors'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyTimeseries } from '../../transactions/get_latency_charts'; -import { fetchAndTransformMetrics, GenericMetricsChart } from '../fetch_and_transform_metrics'; -import { ChartBase } from '../types'; +import type { GenericMetricsChart } from '../fetch_and_transform_metrics'; +import { fetchAndTransformMetrics } from '../fetch_and_transform_metrics'; +import type { ChartBase } from '../types'; const billedDurationAvg = { title: i18n.translate('xpack.apm.agentMetrics.serverless.billedDurationAvg', { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_functions_overview.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_functions_overview.ts index b4dcd82c3bc15..6de5977960ef6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_functions_overview.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_functions_overview.ts @@ -19,7 +19,7 @@ import { import { getServerlessFunctionNameFromId } from '../../../../common/serverless'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { calcMemoryUsed } from './helper'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export type ServerlessFunctionsOverviewResponse = Array<{ serverlessId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_summary.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_summary.ts index 094120044e306..e9e3fe64fcd54 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_summary.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/get_serverless_summary.ts @@ -19,7 +19,7 @@ import { } from '../../../../common/es_fields/apm'; import { RollupInterval } from '../../../../common/rollup'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { computeUsageAvgScript } from './get_compute_usage_chart'; import { calcEstimatedCost, calcMemoryUsedRate, convertComputeUsageToGbSec } from './helper'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/helper.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/helper.ts index 8f5859a748937..f67fa82d0c294 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/helper.ts @@ -5,7 +5,7 @@ * 2.0. */ import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; -import { AwsLambdaArchitecture, AWSLambdaPriceFactor } from './get_serverless_summary'; +import type { AwsLambdaArchitecture, AWSLambdaPriceFactor } from './get_serverless_summary'; export function calcMemoryUsedRate({ memoryFree, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/route.ts index 0432409344fe4..4dc220503a16a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/serverless/route.ts @@ -14,23 +14,16 @@ import { toNumberRt } from '@kbn/io-ts-utils'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt, transactionDataSourceRt } from '../../default_api_types'; import { getServerlessAgentMetricsCharts } from './get_serverless_agent_metrics_chart'; -import { - ActiveInstanceOverview, - getServerlessActiveInstancesOverview, -} from './get_active_instances_overview'; -import { - getServerlessFunctionsOverview, - ServerlessFunctionsOverviewResponse, -} from './get_serverless_functions_overview'; -import { - AWSLambdaPriceFactor, - getServerlessSummary, - ServerlessSummaryResponse, -} from './get_serverless_summary'; +import type { ActiveInstanceOverview } from './get_active_instances_overview'; +import { getServerlessActiveInstancesOverview } from './get_active_instances_overview'; +import type { ServerlessFunctionsOverviewResponse } from './get_serverless_functions_overview'; +import { getServerlessFunctionsOverview } from './get_serverless_functions_overview'; +import type { AWSLambdaPriceFactor, ServerlessSummaryResponse } from './get_serverless_summary'; +import { getServerlessSummary } from './get_serverless_summary'; import { getActiveInstancesTimeseries } from './get_active_instances_timeseries'; import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; -import { FetchAndTransformMetrics } from '../fetch_and_transform_metrics'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { FetchAndTransformMetrics } from '../fetch_and_transform_metrics'; +import type { Coordinate } from '../../../../typings/timeseries'; const serverlessMetricsChartsRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/services/{serviceName}/metrics/serverless/charts', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/types.ts b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/types.ts index 0cbf1cfce0916..9c9b85a117657 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/metrics/types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/metrics/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ChartType, YUnit } from '../../../typings/timeseries'; +import type { ChartType, YUnit } from '../../../typings/timeseries'; export interface ChartBase { title: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_buckets.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_buckets.ts index 295995236224c..32116ebb5b3ff 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_buckets.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_buckets.ts @@ -9,7 +9,7 @@ import { rangeQuery, kqlQuery, termQuery } from '@kbn/observability-plugin/serve import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { ERROR_GROUP_ID, SERVICE_NAME, ERROR_TYPE } from '../../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; export async function getBuckets({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_distribution.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_distribution.ts index 1599ea3c8e87c..da01e7cd2ab09 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_distribution.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/get_distribution.ts @@ -9,8 +9,8 @@ import { offsetPreviousPeriodCoordinates } from '../../../../../common/utils/off import { BUCKET_TARGET_COUNT } from '../../../transactions/constants'; import { getBuckets } from './get_buckets'; import { getOffsetInMs } from '../../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; -import { Maybe } from '../../../../../typings/common'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Maybe } from '../../../../../typings/common'; function getBucketSize({ start, end }: { start: number; end: number }) { return Math.floor((end - start) / BUCKET_TARGET_COUNT); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/queries.test.ts index 2b41b4fb37d95..330ac18eb3a1d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/distribution/queries.test.ts @@ -6,7 +6,8 @@ */ import { getCrashDistribution } from './get_distribution'; -import { SearchParamsMock, inspectSearchParams } from '../../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../../utils/test_helpers'; import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; describe('error distribution queries', () => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_crash_groups/get_crash_group_main_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_crash_groups/get_crash_group_main_statistics.ts index c606a6b045a93..51cecac6a6989 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_crash_groups/get_crash_group_main_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_crash_groups/get_crash_group_main_statistics.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; +import type { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; @@ -25,7 +25,7 @@ import { } from '../../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../../common/utils/environment_query'; import { getErrorName } from '../../../../lib/helpers/get_error_name'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; export type MobileCrashGroupMainStatisticsResponse = Array<{ groupId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_mobile_crash_group_detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_mobile_crash_group_detailed_statistics.ts index 20194b7b419ad..93d1f91c5c7e0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_mobile_crash_group_detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/get_mobile_crash_group_detailed_statistics.ts @@ -8,12 +8,12 @@ import { keyBy } from 'lodash'; import { rangeQuery, kqlQuery, termQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { ERROR_GROUP_ID, ERROR_TYPE, SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface CrashGroupDetailedStat { groupId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/route.ts index a8dbc788836c6..bf5483605fce0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/crashes/route.ts @@ -10,15 +10,12 @@ import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../../default_api_types'; import { offsetRt } from '../../../../common/comparison_rt'; -import { - getMobileCrashGroupMainStatistics, - MobileCrashGroupMainStatisticsResponse, -} from './get_crash_groups/get_crash_group_main_statistics'; -import { - MobileCrashesGroupPeriodsResponse, - getMobileCrashesGroupPeriods, -} from './get_mobile_crash_group_detailed_statistics'; -import { CrashDistributionResponse, getCrashDistribution } from './distribution/get_distribution'; +import type { MobileCrashGroupMainStatisticsResponse } from './get_crash_groups/get_crash_group_main_statistics'; +import { getMobileCrashGroupMainStatistics } from './get_crash_groups/get_crash_group_main_statistics'; +import type { MobileCrashesGroupPeriodsResponse } from './get_mobile_crash_group_detailed_statistics'; +import { getMobileCrashesGroupPeriods } from './get_mobile_crash_group_detailed_statistics'; +import type { CrashDistributionResponse } from './distribution/get_distribution'; +import { getCrashDistribution } from './distribution/get_distribution'; const mobileCrashDistributionRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/mobile-services/{serviceName}/crashes/distribution', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_detailed_statistics.ts index bcf60a51c200a..9498363b17025 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_detailed_statistics.ts @@ -8,12 +8,12 @@ import { keyBy } from 'lodash'; import { rangeQuery, kqlQuery, termQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { ERROR_GROUP_ID, SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface ErrorGroupDetailedStat { groupId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_main_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_main_statistics.ts index 1181aa5b02870..f27a487c8b8bc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_main_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_error_group_main_statistics.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; +import type { AggregationsAggregateOrder } from '@elastic/elasticsearch/lib/api/types'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; @@ -24,7 +24,7 @@ import { } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getErrorName } from '../../../lib/helpers/get_error_name'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export type MobileErrorGroupMainStatisticsResponse = Array<{ groupId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_errors_terms_by_field.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_errors_terms_by_field.ts index e2aa04531fc14..b645d9150af5f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_errors_terms_by_field.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_errors_terms_by_field.ts @@ -9,7 +9,7 @@ import { termQuery, kqlQuery, rangeQuery } from '@kbn/observability-plugin/serve import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export type MobileErrorTermsByFieldResponse = Array<{ label: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_http_errors.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_http_errors.ts index 8672ab9313e87..2fcfd586d1683 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_http_errors.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/get_mobile_http_errors.ts @@ -7,12 +7,12 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { SERVICE_NAME, HTTP_RESPONSE_STATUS_CODE } from '../../../../common/es_fields/apm'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { BUCKET_TARGET_COUNT } from '../../transactions/constants'; interface Props { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/route.ts index e6d5628a0c0ed..61f53c065acf8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/errors/route.ts @@ -17,19 +17,14 @@ import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../../default_api_types'; import { offsetRt } from '../../../../common/comparison_rt'; -import { - getMobileErrorGroupPeriods, - MobileErrorGroupPeriodsResponse, -} from './get_mobile_error_group_detailed_statistics'; -import { - MobileErrorGroupMainStatisticsResponse, - getMobileErrorGroupMainStatistics, -} from './get_mobile_error_group_main_statistics'; -import { - getMobileErrorsTermsByField, - MobileErrorTermsByFieldResponse, -} from './get_mobile_errors_terms_by_field'; -import { MobileHttpErrorsTimeseries, getMobileHttpErrors } from './get_mobile_http_errors'; +import type { MobileErrorGroupPeriodsResponse } from './get_mobile_error_group_detailed_statistics'; +import { getMobileErrorGroupPeriods } from './get_mobile_error_group_detailed_statistics'; +import type { MobileErrorGroupMainStatisticsResponse } from './get_mobile_error_group_main_statistics'; +import { getMobileErrorGroupMainStatistics } from './get_mobile_error_group_main_statistics'; +import type { MobileErrorTermsByFieldResponse } from './get_mobile_errors_terms_by_field'; +import { getMobileErrorsTermsByField } from './get_mobile_errors_terms_by_field'; +import type { MobileHttpErrorsTimeseries } from './get_mobile_http_errors'; +import { getMobileHttpErrors } from './get_mobile_http_errors'; const mobileMobileHttpRatesRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/mobile-services/{serviceName}/error/http_error_rate', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_device_os_app.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_device_os_app.ts index 1d7d9936f6531..277abc77dab83 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_device_os_app.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_device_os_app.ts @@ -16,7 +16,7 @@ import { import { environmentQuery } from '../../../common/utils/environment_query'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getDeviceOSApp({ kuery, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_average_launch_time.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_average_launch_time.ts index cfd1e9f19e88d..339119c544701 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_average_launch_time.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_average_launch_time.ts @@ -11,10 +11,10 @@ import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_pr import { APP_LAUNCH_TIME, SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; -import { Coordinate } from '../../../typings/timeseries'; -import { Maybe } from '../../../typings/common'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { Maybe } from '../../../typings/common'; export interface AvgLaunchTimeTimeseries { currentPeriod: { timeseries: Coordinate[]; value: Maybe }; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crash_rate.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crash_rate.ts index b95e6a1615dc2..6f3282d6fef1d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crash_rate.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crash_rate.ts @@ -6,9 +6,9 @@ */ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { Coordinate } from '../../../typings/timeseries'; -import { Maybe } from '../../../typings/common'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { Maybe } from '../../../typings/common'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { ERROR_TYPE, ERROR_ID, SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crashes_by_location.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crashes_by_location.ts index f14e6891f255a..59257049b67a9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crashes_by_location.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_crashes_by_location.ts @@ -7,7 +7,7 @@ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ERROR_TYPE, SERVICE_NAME } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { environmentQuery } from '../../../common/utils/environment_query'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_detailed_statistics_by_field.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_detailed_statistics_by_field.ts index 09bed5a4d974d..7a4d5bbc6ed0f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_detailed_statistics_by_field.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_detailed_statistics_by_field.ts @@ -9,13 +9,13 @@ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/serve import { keyBy } from 'lodash'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { environmentQuery } from '../../../common/utils/environment_query'; import { SERVICE_NAME, TRANSACTION_DURATION } from '../../../common/es_fields/apm'; import { getLatencyValue } from '../../lib/helpers/latency_aggregation_type'; import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../typings/timeseries'; +import type { Coordinate } from '../../../typings/timeseries'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_filters.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_filters.ts index 35b48ba06c1d3..3472ea6582a12 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_filters.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_filters.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { MobileProperty, MobilePropertyType } from '../../../common/mobile_types'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { MobilePropertyType } from '../../../common/mobile_types'; +import { MobileProperty } from '../../../common/mobile_types'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getDeviceOSApp } from './get_device_os_app'; import { getNCT } from './get_nct'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests.ts index d9f64fe9dc818..ff27e6ffe3c83 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests.ts @@ -18,10 +18,10 @@ import { environmentQuery } from '../../../common/utils/environment_query'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate'; -import { Maybe } from '../../../typings/common'; +import type { Maybe } from '../../../typings/common'; -import { Coordinate } from '../../../typings/timeseries'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export interface HttpRequestsTimeseries { currentPeriod: { timeseries: Coordinate[]; value: Maybe }; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests_by_location.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests_by_location.ts index 078206433a26e..e49fd8c5b3d82 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests_by_location.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_http_requests_by_location.ts @@ -9,7 +9,7 @@ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/serve import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME, SPAN_SUBTYPE, SPAN_TYPE } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_launches_by_location.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_launches_by_location.ts index ed70a4bbcca59..009d3447620f3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_launches_by_location.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_launches_by_location.ts @@ -7,7 +7,7 @@ import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { LABEL_LIFECYCLE_STATE, SERVICE_NAME } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { environmentQuery } from '../../../common/utils/environment_query'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_location_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_location_stats.ts index 8cf5914d2b964..b389fedc4c8b1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_location_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_location_stats.ts @@ -6,12 +6,12 @@ */ import { CLIENT_GEO_COUNTRY_NAME } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getSessionsByLocation } from './get_mobile_sessions_by_location'; import { getHttpRequestsByLocation } from './get_mobile_http_requests_by_location'; import { getCrashesByLocation } from './get_mobile_crashes_by_location'; import { getLaunchesByLocation } from './get_mobile_launches_by_location'; -import { Maybe } from '../../../typings/common'; +import type { Maybe } from '../../../typings/common'; export type Timeseries = Array<{ x: number; y: number }>; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_main_statistics_by_field.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_main_statistics_by_field.ts index 2a305e045efc3..2ad2f72cc879d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_main_statistics_by_field.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_main_statistics_by_field.ts @@ -14,7 +14,7 @@ import { ERROR_TYPE, } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyValue } from '../../lib/helpers/latency_aggregation_type'; import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_most_used_charts/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_most_used_charts/index.ts index e15b2fc7cd7f0..24c533a2d6c16 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_most_used_charts/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_most_used_charts/index.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { mergeCountWithOther } from './merge_other_count'; -import { MobileProperty, MobilePropertyType } from '../../../../common/mobile_types'; +import type { MobilePropertyType } from '../../../../common/mobile_types'; +import { MobileProperty } from '../../../../common/mobile_types'; import { getDeviceOSApp } from '../get_device_os_app'; import { getNCT } from '../get_nct'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions.ts index 7b4dee930508b..d2800585b2ad5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions.ts @@ -10,10 +10,10 @@ import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_pr import { SERVICE_NAME, SESSION_ID, TRANSACTION_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; -import { Coordinate } from '../../../typings/timeseries'; -import { Maybe } from '../../../typings/common'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { Maybe } from '../../../typings/common'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions_by_location.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions_by_location.ts index ad65b0f84a885..33bd868070ca5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions_by_location.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_sessions_by_location.ts @@ -8,7 +8,7 @@ import { termQuery, kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { SERVICE_NAME, SESSION_ID } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { ApmDocumentType } from '../../../common/document_type'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_stats.ts index 116117426405c..4bfd7eac5b0e1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_stats.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { getMobileSessions } from './get_mobile_sessions'; import { getMobileHttpRequests } from './get_mobile_http_requests'; import { getMobileCrashRate } from './get_mobile_crash_rate'; import { getMobileAvgLaunchTime } from './get_mobile_average_launch_time'; -import { Maybe } from '../../../typings/common'; +import type { Maybe } from '../../../typings/common'; export interface Timeseries { x: number; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_terms_by_field.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_terms_by_field.ts index 2ded4691b4211..abb3b32fc9377 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_terms_by_field.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_mobile_terms_by_field.ts @@ -9,7 +9,7 @@ import { termQuery, kqlQuery, rangeQuery } from '@kbn/observability-plugin/serve import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export type MobileTermsByFieldResponse = Array<{ label: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_nct.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_nct.ts index cfd3b6ca75819..b8b89cea7f50d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_nct.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/get_nct.ts @@ -10,7 +10,7 @@ import { NETWORK_CONNECTION_TYPE, SERVICE_NAME } from '../../../common/es_fields import { environmentQuery } from '../../../common/utils/environment_query'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getNCT({ kuery, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/route.ts index d1c964e8a2f6d..8e393542fcdb4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/mobile/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/mobile/route.ts @@ -11,25 +11,25 @@ import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, rangeRt } from '../default_api_types'; import { offsetRt } from '../../../common/comparison_rt'; -import { getMobileHttpRequests, HttpRequestsTimeseries } from './get_mobile_http_requests'; -import { getMobileFilters, MobileFiltersResponse } from './get_mobile_filters'; -import { getMobileSessions, SessionsTimeseries } from './get_mobile_sessions'; -import { getMobileStatsPeriods, MobilePeriodStats } from './get_mobile_stats'; -import { getMobileLocationStatsPeriods, MobileLocationStats } from './get_mobile_location_stats'; -import { getMobileTermsByField, MobileTermsByFieldResponse } from './get_mobile_terms_by_field'; -import { - getMobileMainStatisticsByField, - MobileMainStatisticsResponse, -} from './get_mobile_main_statistics_by_field'; -import { - getMobileDetailedStatisticsByFieldPeriods, - MobileDetailedStatisticsResponse, -} from './get_mobile_detailed_statistics_by_field'; -import { MobilePropertyType } from '../../../common/mobile_types'; -import { - getMobileMostUsedCharts, - MobileMostUsedChartResponse, -} from './get_mobile_most_used_charts'; +import type { HttpRequestsTimeseries } from './get_mobile_http_requests'; +import { getMobileHttpRequests } from './get_mobile_http_requests'; +import type { MobileFiltersResponse } from './get_mobile_filters'; +import { getMobileFilters } from './get_mobile_filters'; +import type { SessionsTimeseries } from './get_mobile_sessions'; +import { getMobileSessions } from './get_mobile_sessions'; +import type { MobilePeriodStats } from './get_mobile_stats'; +import { getMobileStatsPeriods } from './get_mobile_stats'; +import type { MobileLocationStats } from './get_mobile_location_stats'; +import { getMobileLocationStatsPeriods } from './get_mobile_location_stats'; +import type { MobileTermsByFieldResponse } from './get_mobile_terms_by_field'; +import { getMobileTermsByField } from './get_mobile_terms_by_field'; +import type { MobileMainStatisticsResponse } from './get_mobile_main_statistics_by_field'; +import { getMobileMainStatisticsByField } from './get_mobile_main_statistics_by_field'; +import type { MobileDetailedStatisticsResponse } from './get_mobile_detailed_statistics_by_field'; +import { getMobileDetailedStatisticsByFieldPeriods } from './get_mobile_detailed_statistics_by_field'; +import type { MobilePropertyType } from '../../../common/mobile_types'; +import type { MobileMostUsedChartResponse } from './get_mobile_most_used_charts'; +import { getMobileMostUsedCharts } from './get_mobile_most_used_charts'; import { mobileErrorRoutes } from './errors/route'; import { mobileCrashRoutes } from './crashes/route'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_observability_overview_data.ts b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_observability_overview_data.ts index 4af9253b2fe1d..d1869eeb0d2a4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_observability_overview_data.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_observability_overview_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { withApmSpan } from '../../utils/with_apm_span'; import { getServiceCount } from './get_service_count'; import { getTransactionsPerMinute } from './get_transactions_per_minute'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_service_count.ts b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_service_count.ts index 73ada87ff7d45..1793b357f7980 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_service_count.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_service_count.ts @@ -9,7 +9,7 @@ import { rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getServiceCount({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_transactions_per_minute.ts b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_transactions_per_minute.ts index d63aff1e99ea2..159dfa3576da3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_transactions_per_minute.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/get_transactions_per_minute.ts @@ -13,7 +13,7 @@ import { getProcessorEventForTransactions, } from '../../lib/helpers/transactions'; import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getTransactionsPerMinute({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/has_data.ts b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/has_data.ts index 1fc2ec5474b31..30406a9100872 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/has_data.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/has_data.ts @@ -7,7 +7,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export interface HasDataResponse { hasData: boolean; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/route.ts index 9d61c885a6361..cc9a0e550c140 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/observability_overview/route.ts @@ -11,11 +11,10 @@ import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { rangeRt } from '../default_api_types'; -import { - getObservabilityOverviewData, - ObservabilityOverviewResponse, -} from './get_observability_overview_data'; -import { getHasData, HasDataResponse } from './has_data'; +import type { ObservabilityOverviewResponse } from './get_observability_overview_data'; +import { getObservabilityOverviewData } from './get_observability_overview_data'; +import type { HasDataResponse } from './has_data'; +import { getHasData } from './has_data'; const observabilityOverviewHasDataRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/observability_overview/has_data', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_flamegraph.ts b/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_flamegraph.ts index 7139c2481aaa5..b148b2abdbbf5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_flamegraph.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_flamegraph.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ProfilingDataAccessPluginStart } from '@kbn/profiling-data-access-plugin/server'; -import { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; +import type { ProfilingDataAccessPluginStart } from '@kbn/profiling-data-access-plugin/server'; +import type { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_functions.ts b/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_functions.ts index 5f381bcd766e9..83273961e92fb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_functions.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/profiling/fetch_functions.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ProfilingDataAccessPluginStart } from '@kbn/profiling-data-access-plugin/server'; -import { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; +import type { ProfilingDataAccessPluginStart } from '@kbn/profiling-data-access-plugin/server'; +import type { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/delete_service_group.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/delete_service_group.ts index d43f0dbcb0aa6..30ec1406114b4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/delete_service_group.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/delete_service_group.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { APM_SERVICE_GROUP_SAVED_OBJECT_TYPE } from '../../../common/service_groups'; interface Options { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group.ts index 9ae682812de05..70aba4f29ad84 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group.ts @@ -5,12 +5,9 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { - ServiceGroup, - SavedServiceGroup, - APM_SERVICE_GROUP_SAVED_OBJECT_TYPE, -} from '../../../common/service_groups'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { ServiceGroup, SavedServiceGroup } from '../../../common/service_groups'; +import { APM_SERVICE_GROUP_SAVED_OBJECT_TYPE } from '../../../common/service_groups'; export async function getServiceGroup({ savedObjectsClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group_alerts.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group_alerts.ts index d934863f37e9c..34d52473611bd 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group_alerts.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_group_alerts.ts @@ -7,12 +7,12 @@ import { kqlQuery, termQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ALERT_RULE_PRODUCER, ALERT_STATUS, ALERT_STATUS_ACTIVE } from '@kbn/rule-data-utils'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; -import { Logger } from '@kbn/core/server'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { Logger } from '@kbn/core/server'; import { observabilityFeatureId } from '@kbn/observability-shared-plugin/common'; -import { ApmPluginRequestHandlerContext } from '../typings'; -import { SavedServiceGroup } from '../../../common/service_groups'; -import { ApmAlertsClient } from '../../lib/helpers/get_apm_alerts_client'; +import type { ApmPluginRequestHandlerContext } from '../typings'; +import type { SavedServiceGroup } from '../../../common/service_groups'; +import type { ApmAlertsClient } from '../../lib/helpers/get_apm_alerts_client'; export async function getServiceGroupAlerts({ serviceGroups, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_groups.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_groups.ts index de71dfb5c6246..e8b317871445e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_groups.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_service_groups.ts @@ -5,10 +5,9 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { ServiceGroup, SavedServiceGroup } from '../../../common/service_groups'; import { - ServiceGroup, - SavedServiceGroup, APM_SERVICE_GROUP_SAVED_OBJECT_TYPE, MAX_NUMBER_OF_SERVICE_GROUPS, } from '../../../common/service_groups'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_services_counts.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_services_counts.ts index a22c1486ca1d0..41de4a75c0036 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_services_counts.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/get_services_counts.ts @@ -7,10 +7,10 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; -import { SavedServiceGroup } from '../../../common/service_groups'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { SavedServiceGroup } from '../../../common/service_groups'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getServicesCounts({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/lookup_services.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/lookup_services.ts index f6e09f19f6ef8..49fa60f6b120a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/lookup_services.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/lookup_services.ts @@ -7,9 +7,9 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; import { AGENT_NAME, SERVICE_ENVIRONMENT, SERVICE_NAME } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export type LookupServicesResponse = Array<{ serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/route.ts index 9ffc365bb4d86..dfa96c1e4b9cf 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/route.ts @@ -16,8 +16,10 @@ import { getServiceGroups } from './get_service_groups'; import { getServiceGroup } from './get_service_group'; import { saveServiceGroup } from './save_service_group'; import { deleteServiceGroup } from './delete_service_group'; -import { lookupServices, LookupServicesResponse } from './lookup_services'; -import { validateServiceGroupKuery, SavedServiceGroup } from '../../../common/service_groups'; +import type { LookupServicesResponse } from './lookup_services'; +import { lookupServices } from './lookup_services'; +import type { SavedServiceGroup } from '../../../common/service_groups'; +import { validateServiceGroupKuery } from '../../../common/service_groups'; import { getServicesCounts } from './get_services_counts'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getServiceGroupAlerts } from './get_service_group_alerts'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/save_service_group.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/save_service_group.ts index a604103fb9a75..56144c325d9d6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/save_service_group.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_groups/save_service_group.ts @@ -5,12 +5,9 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { - APM_SERVICE_GROUP_SAVED_OBJECT_TYPE, - SavedServiceGroup, - ServiceGroup, -} from '../../../common/service_groups'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedServiceGroup, ServiceGroup } from '../../../common/service_groups'; +import { APM_SERVICE_GROUP_SAVED_OBJECT_TYPE } from '../../../common/service_groups'; interface Options { savedObjectsClient: SavedObjectsClientContract; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/fetch_service_paths_from_trace_ids.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/fetch_service_paths_from_trace_ids.ts index 5224ed833ff24..75e451b7a2f57 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/fetch_service_paths_from_trace_ids.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/fetch_service_paths_from_trace_ids.ts @@ -18,12 +18,12 @@ import { SPAN_TYPE, TRACE_ID, } from '../../../common/es_fields/apm'; -import { +import type { ConnectionNode, ExternalConnectionNode, ServiceConnectionNode, } from '../../../common/service_map'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { calculateDocsPerShard } from './calculate_docs_per_shard'; const SCRIPTED_METRICS_FIELDS_TO_COPY = [ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_anomalies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_anomalies.ts index 32a4bf02227e7..4e9cbe1a2712f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_anomalies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_anomalies.ts @@ -16,7 +16,7 @@ import { getServiceHealthStatus } from '../../../common/service_health_status'; import { defaultTransactionTypes } from '../../../common/transaction_types'; import { withApmSpan } from '../../utils/with_apm_span'; import { getMlJobsWithAPMGroup } from '../../lib/anomaly_detection/get_ml_jobs_with_apm_group'; -import { MlClient } from '../../lib/helpers/get_ml_client'; +import type { MlClient } from '../../lib/helpers/get_ml_client'; import { apmMlAnomalyQuery } from '../../lib/anomaly_detection/apm_ml_anomaly_query'; import { AnomalyDetectorType } from '../../../common/anomaly_detection/apm_ml_detectors'; import { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map.ts index 69a000f4c2a8f..debc88d3ddefd 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map.ts @@ -5,20 +5,18 @@ * 2.0. */ -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; import { chunk } from 'lodash'; -import { APMConfig } from '../..'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { MlClient } from '../../lib/helpers/get_ml_client'; +import type { APMConfig } from '../..'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { MlClient } from '../../lib/helpers/get_ml_client'; import { withApmSpan } from '../../utils/with_apm_span'; import { DEFAULT_ANOMALIES, getServiceAnomalies } from './get_service_anomalies'; import { getServiceMapFromTraceIds } from './get_service_map_from_trace_ids'; import { getServiceStats } from './get_service_stats'; import { getTraceSampleIds } from './get_trace_sample_ids'; -import { - TransformServiceMapResponse, - transformServiceMapResponses, -} from './transform_service_map_responses'; +import type { TransformServiceMapResponse } from './transform_service_map_responses'; +import { transformServiceMapResponses } from './transform_service_map_responses'; export interface IEnvOptions { mlClient?: MlClient; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_dependency_node_info.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_dependency_node_info.ts index 0550083e385a7..1b09fe9d79fc2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_dependency_node_info.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_dependency_node_info.ts @@ -13,12 +13,12 @@ import { SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT, SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM, } from '../../../common/es_fields/apm'; -import { NodeStats } from '../../../common/service_map'; +import type { NodeStats } from '../../../common/service_map'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getBucketSize } from '../../../common/utils/get_bucket_size'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getDocumentTypeFilterForServiceDestinationStatistics } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; import { calculateFailedTransactionRate, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.test.ts index cdd655498da34..33a2d950ef25b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.test.ts @@ -6,7 +6,7 @@ */ import { getConnections } from './get_service_map_from_trace_ids'; -import { Connection, ConnectionNode } from '../../../common/service_map'; +import type { Connection, ConnectionNode } from '../../../common/service_map'; function getConnectionsPairs(connections: Connection[]) { return connections diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.ts index d1bec0076d8f2..06885660f188f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_from_trace_ids.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { Logger } from '@kbn/logging'; -import { Connection, ConnectionNode } from '../../../common/service_map'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Logger } from '@kbn/logging'; +import type { Connection, ConnectionNode } from '../../../common/service_map'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { fetchServicePathsFromTraceIds } from './fetch_service_paths_from_trace_ids'; import { getConnectionId } from './transform_service_map_responses'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_service_node_info.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_service_node_info.ts index abc3efa66ca74..3de35800000eb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_service_node_info.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_map_service_node_info.ts @@ -13,7 +13,7 @@ import { SERVICE_NAME, TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; -import { NodeStats } from '../../../common/service_map'; +import type { NodeStats } from '../../../common/service_map'; import { defaultTransactionTypes } from '../../../common/transaction_types'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; @@ -26,7 +26,7 @@ import { import { getFailedTransactionRate } from '../../lib/transaction_groups/get_failed_transaction_rate'; import { withApmSpan } from '../../utils/with_apm_span'; import { systemMemory, cgroupMemory } from '../metrics/by_agent/shared/memory'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_stats.ts index 7aa89f31f009b..d512f621bcf2a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_service_stats.ts @@ -11,7 +11,7 @@ import { AGENT_NAME, SERVICE_ENVIRONMENT, SERVICE_NAME } from '../../../common/e import { environmentQuery } from '../../../common/utils/environment_query'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { IEnvOptions } from './get_service_map'; +import type { IEnvOptions } from './get_service_map'; export async function getServiceStats({ environment, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_trace_sample_ids.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_trace_sample_ids.ts index 9a60fde737e66..d89c9a7a4ea48 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_trace_sample_ids.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/get_trace_sample_ids.ts @@ -19,8 +19,8 @@ import { import { SERVICE_MAP_TIMEOUT_ERROR } from '../../../common/service_map'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMConfig } from '../..'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../..'; export async function getTraceSampleIds({ serviceName, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.test.ts index 5784944c5b995..a539a7001fa2c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ConnectionElement } from '../../../common/service_map'; +import type { ConnectionElement } from '../../../common/service_map'; import { groupResourceNodes } from './group_resource_nodes'; import expectedGroupedData from './mock_responses/group_resource_nodes_grouped.json'; import preGroupedData from './mock_responses/group_resource_nodes_pregrouped.json'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.ts index 7f5666b4f889b..53deaba0864e1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/group_resource_nodes.ts @@ -7,14 +7,14 @@ import { i18n } from '@kbn/i18n'; import { compact, groupBy } from 'lodash'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { SPAN_TYPE, SPAN_SUBTYPE } from '../../../common/es_fields/apm'; -import { +import type { ConnectionEdge, ConnectionElement, ConnectionNode, - isSpanGroupingSupported, } from '../../../common/service_map'; +import { isSpanGroupingSupported } from '../../../common/service_map'; const MINIMUM_GROUP_SIZE = 4; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/route.ts index 3436874ac5bdc..100e65fb62d13 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/route.ts @@ -14,20 +14,16 @@ import { notifyFeatureUsage } from '../../feature'; import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; import { getMlClient } from '../../lib/helpers/get_ml_client'; import { getServiceMap } from './get_service_map'; -import { - getServiceMapDependencyNodeInfo, - ServiceMapServiceDependencyInfoResponse, -} from './get_service_map_dependency_node_info'; -import { - getServiceMapServiceNodeInfo, - ServiceMapServiceNodeInfoResponse, -} from './get_service_map_service_node_info'; +import type { ServiceMapServiceDependencyInfoResponse } from './get_service_map_dependency_node_info'; +import { getServiceMapDependencyNodeInfo } from './get_service_map_dependency_node_info'; +import type { ServiceMapServiceNodeInfoResponse } from './get_service_map_service_node_info'; +import { getServiceMapServiceNodeInfo } from './get_service_map_service_node_info'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, rangeRt, kueryRt } from '../default_api_types'; import { getServiceGroup } from '../service_groups/get_service_group'; import { offsetRt } from '../../../common/comparison_rt'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; -import { TransformServiceMapResponse } from './transform_service_map_responses'; +import type { TransformServiceMapResponse } from './transform_service_map_responses'; const serviceMapRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/service-map', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.test.ts index 297f6b8a123bd..26b203d945eed 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.test.ts @@ -15,10 +15,8 @@ import { SPAN_SUBTYPE, SPAN_TYPE, } from '../../../common/es_fields/apm'; -import { - transformServiceMapResponses, - ServiceMapResponse, -} from './transform_service_map_responses'; +import type { ServiceMapResponse } from './transform_service_map_responses'; +import { transformServiceMapResponses } from './transform_service_map_responses'; const nodejsService = { [SERVICE_NAME]: 'opbeans-node', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.ts b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.ts index c57a5bafb56d0..7ff4ef88021a5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/service_map/transform_service_map_responses.ts @@ -6,23 +6,24 @@ */ import { sortBy, pickBy, identity } from 'lodash'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import { SERVICE_NAME, SPAN_DESTINATION_SERVICE_RESOURCE, SPAN_TYPE, SPAN_SUBTYPE, } from '../../../common/es_fields/apm'; -import { +import type { Connection, ConnectionNode, ServiceConnectionNode, ExternalConnectionNode, ConnectionElement, } from '../../../common/service_map'; -import { ConnectionsResponse, ServicesResponse } from './get_service_map'; -import { ServiceAnomaliesResponse } from './get_service_anomalies'; -import { groupResourceNodes, GroupResourceNodesResponse } from './group_resource_nodes'; +import type { ConnectionsResponse, ServicesResponse } from './get_service_map'; +import type { ServiceAnomaliesResponse } from './get_service_anomalies'; +import type { GroupResourceNodesResponse } from './group_resource_nodes'; +import { groupResourceNodes } from './group_resource_nodes'; function getConnectionNodeId(node: ConnectionNode): string { if ('span.destination.service.resource' in node) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_derived_service_annotations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_derived_service_annotations.ts index c683e308b73b8..db1c5e028f449 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_derived_service_annotations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_derived_service_annotations.ts @@ -11,14 +11,15 @@ import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server import { maybe } from '../../../../common/utils/maybe'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; import { isFiniteNumber } from '../../../../common/utils/is_finite_number'; -import { Annotation, AnnotationType } from '../../../../common/annotations'; +import type { Annotation } from '../../../../common/annotations'; +import { AnnotationType } from '../../../../common/annotations'; import { AT_TIMESTAMP, SERVICE_NAME, SERVICE_VERSION } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBackwardCompatibleDocumentTypeFilter, getProcessorEventForTransactions, } from '../../../lib/helpers/transactions'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export async function getDerivedServiceAnnotations({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts index 8422373d5e8d9..32c3de156faec 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts @@ -6,17 +6,18 @@ */ import { errors } from '@elastic/elasticsearch'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { unwrapEsResponse, WrappedElasticsearchClientError, } from '@kbn/observability-plugin/server'; import type { ESSearchResponse } from '@kbn/es-types'; -import { Annotation as ESAnnotation } from '@kbn/observability-plugin/common/annotations'; -import { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; +import type { Annotation as ESAnnotation } from '@kbn/observability-plugin/common/annotations'; +import type { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { Annotation, AnnotationType } from '../../../../common/annotations'; +import type { Annotation } from '../../../../common/annotations'; +import { AnnotationType } from '../../../../common/annotations'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { withApmSpan } from '../../../utils/with_apm_span'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/index.ts index e50d2202ca979..8354267cd748c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/annotations/index.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; -import { Annotation } from '../../../../common/annotations'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; +import type { Annotation } from '../../../../common/annotations'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getDerivedServiceAnnotations } from './get_derived_service_annotations'; import { getStoredAnnotations } from './get_stored_annotations'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_agent.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_agent.ts index dd272eadf57d6..72c15d2ca66ae 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_agent.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_agent.ts @@ -16,8 +16,9 @@ import { CLOUD_PROVIDER, CLOUD_SERVICE_NAME, } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { getServerlessTypeFromCloudData, ServerlessType } from '../../../common/serverless'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ServerlessType } from '../../../common/serverless'; +import { getServerlessTypeFromCloudData } from '../../../common/serverless'; import { maybe } from '../../../common/utils/maybe'; export interface ServiceAgentResponse { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies.ts index 27dd10a63ee05..dbeca28f1d029 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { ConnectionStatsItemWithImpact } from '../../../common/connections'; +import type { ConnectionStatsItemWithImpact } from '../../../common/connections'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getConnectionStats } from '../../lib/connections/get_connection_stats'; import { getConnectionStatsItemsWithRelativeImpact } from '../../lib/connections/get_connection_stats/get_connection_stats_items_with_relative_impact'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; interface Options { apmEventClient: APMEventClient; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies_breakdown.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies_breakdown.ts index 270ffc6852918..d69b55a46a1ca 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies_breakdown.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_dependencies_breakdown.ts @@ -10,8 +10,8 @@ import { getNodeName } from '../../../common/connections'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getConnectionStats } from '../../lib/connections/get_connection_stats'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; export type ServiceDependenciesBreakdownResponse = Array<{ title: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_container_metadata.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_container_metadata.ts index d16910f5984fc..9fcbfa023815d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_container_metadata.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_container_metadata.ts @@ -20,9 +20,9 @@ import { KUBERNETES_CONTAINER_ID, KUBERNETES_NAMESPACE, } from '../../../common/es_fields/apm'; -import { Kubernetes } from '../../../typings/es_schemas/raw/fields/kubernetes'; +import type { Kubernetes } from '../../../typings/es_schemas/raw/fields/kubernetes'; import { maybe } from '../../../common/utils/maybe'; -import { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; +import type { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; export type ServiceInstanceContainerMetadataDetails = | { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_metadata_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_metadata_details.ts index 3c139f2aee0de..3b11e0e71562d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_metadata_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instance_metadata_details.ts @@ -8,7 +8,7 @@ import { merge } from 'lodash'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; -import { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; +import type { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; import { AGENT_NAME, AT_TIMESTAMP, @@ -22,13 +22,13 @@ import { getBackwardCompatibleDocumentTypeFilter, getProcessorEventForTransactions, } from '../../lib/helpers/transactions'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { Agent } from '../../../typings/es_schemas/ui/fields/agent'; -import { Service } from '../../../typings/es_schemas/raw/fields/service'; -import { Container } from '../../../typings/es_schemas/raw/fields/container'; -import { Kubernetes } from '../../../typings/es_schemas/raw/fields/kubernetes'; -import { Host } from '../../../typings/es_schemas/raw/fields/host'; -import { Cloud } from '../../../typings/es_schemas/raw/fields/cloud'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Agent } from '../../../typings/es_schemas/ui/fields/agent'; +import type { Service } from '../../../typings/es_schemas/raw/fields/service'; +import type { Container } from '../../../typings/es_schemas/raw/fields/container'; +import type { Kubernetes } from '../../../typings/es_schemas/raw/fields/kubernetes'; +import type { Host } from '../../../typings/es_schemas/raw/fields/host'; +import type { Cloud } from '../../../typings/es_schemas/raw/fields/cloud'; import { asMutableArray } from '../../../common/utils/as_mutable_array'; import { SERVICE_METADATA_CLOUD_KEYS, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/detailed_statistics.ts index bf19fead68535..06454e8c41438 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/detailed_statistics.ts @@ -7,13 +7,13 @@ import { keyBy } from 'lodash'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { Coordinate } from '../../../../typings/timeseries'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; import { joinByKey } from '../../../../common/utils/join_by_key'; import { withApmSpan } from '../../../utils/with_apm_span'; import { getServiceInstancesSystemMetricStatistics } from './get_service_instances_system_metric_statistics'; import { getServiceInstancesTransactionStatistics } from './get_service_instances_transaction_statistics'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface ServiceInstanceDetailedStatisticsParams { environment: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_system_metric_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_system_metric_statistics.ts index def01e7dcdfea..b3ad560b7520a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_system_metric_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_system_metric_statistics.ts @@ -14,10 +14,10 @@ import { SERVICE_NODE_NAME, } from '../../../../common/es_fields/apm'; import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBucketSize } from '../../../../common/utils/get_bucket_size'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { systemMemory, cgroupMemory } from '../../metrics/by_agent/shared/memory'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_transaction_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_transaction_statistics.ts index 98380112a7fdb..9622278d2d31f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_transaction_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/get_service_instances_transaction_statistics.ts @@ -12,9 +12,9 @@ import { TRANSACTION_TYPE, } from '../../../../common/es_fields/apm'; import { EventOutcome } from '../../../../common/event_outcome'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes'; -import { Coordinate } from '../../../../typings/timeseries'; +import type { Coordinate } from '../../../../typings/timeseries'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getBackwardCompatibleDocumentTypeFilter, @@ -28,7 +28,7 @@ import { getLatencyValue, } from '../../../lib/helpers/latency_aggregation_type'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; interface ServiceInstanceTransactionPrimaryStatistics { serviceNodeName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/main_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/main_statistics.ts index bf567aa98c84c..63767d586e79d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/main_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_instances/main_statistics.ts @@ -6,9 +6,9 @@ */ import { keyBy, orderBy } from 'lodash'; -import { InstancesSortField } from '../../../../common/instances'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { InstancesSortField } from '../../../../common/instances'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { withApmSpan } from '../../../utils/with_apm_span'; import { getServiceInstancesSystemMetricStatistics } from './get_service_instances_system_metric_statistics'; import { getServiceInstancesTransactionStatistics } from './get_service_instances_transaction_statistics'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_details.ts index 0c8c456064362..b276b4c52c521 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_details.ts @@ -8,7 +8,7 @@ import { rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; -import { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; +import type { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; import { getAgentName } from '@kbn/elastic-agent-utils'; import { environmentQuery } from '../../../common/utils/environment_query'; import { @@ -28,8 +28,8 @@ import { AGENT_VERSION, TELEMETRY_SDK_VERSION, } from '../../../common/es_fields/apm'; -import { ContainerType } from '../../../common/service_metadata'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ContainerType } from '../../../common/service_metadata'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { should } from './get_service_metadata_icons'; import { isOpenTelemetryAgentName, hasOpenTelemetryPrefix } from '../../../common/agent_name'; import { maybe } from '../../../common/utils/maybe'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_icons.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_icons.ts index e2a3ffd22f703..e3be281e15e0f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_icons.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_metadata_icons.ts @@ -26,10 +26,12 @@ import { TELEMETRY_SDK_NAME, TELEMETRY_SDK_LANGUAGE, } from '../../../common/es_fields/apm'; -import { ContainerType, SERVICE_METADATA_KUBERNETES_KEYS } from '../../../common/service_metadata'; +import type { ContainerType } from '../../../common/service_metadata'; +import { SERVICE_METADATA_KUBERNETES_KEYS } from '../../../common/service_metadata'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { ServerlessType, getServerlessTypeFromCloudData } from '../../../common/serverless'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ServerlessType } from '../../../common/serverless'; +import { getServerlessTypeFromCloudData } from '../../../common/serverless'; export interface ServiceMetadataIcons { agentName?: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_node_metadata.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_node_metadata.ts index e3d4a25172956..437bcd77f6569 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_node_metadata.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_node_metadata.ts @@ -10,9 +10,9 @@ import { HOST_NAME, CONTAINER_ID } from '../../../common/es_fields/apm'; import { NOT_AVAILABLE_LABEL } from '../../../common/i18n'; import { SERVICE_NAME, SERVICE_NODE_NAME } from '../../../common/es_fields/apm'; import { environmentQuery, serviceNodeNameQuery } from '../../../common/utils/environment_query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { ApmServiceTransactionDocumentType } from '../../../common/document_type'; -import { RollupInterval } from '../../../common/rollup'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ApmServiceTransactionDocumentType } from '../../../common/document_type'; +import type { RollupInterval } from '../../../common/rollup'; export interface ServiceNodeMetadataResponse { host: string | number; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_overview_container_metadata.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_overview_container_metadata.ts index b2862169bf49b..67c6fd2bead96 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_overview_container_metadata.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_overview_container_metadata.ts @@ -12,7 +12,7 @@ import { KUBERNETES_NAMESPACE, KUBERNETES_REPLICASET_NAME, } from '../../../common/es_fields/infra_metrics'; -import { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; +import type { InfraMetricsClient } from '../../lib/helpers/create_es_client/create_infra_metrics_client/create_infra_metrics_client'; export const getServiceOverviewContainerMetadata = async ({ infraMetricsClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_group_detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_group_detailed_statistics.ts index 46932dd6c62b5..ecc6aa203ec1f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_group_detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_group_detailed_statistics.ts @@ -7,21 +7,21 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { keyBy } from 'lodash'; -import { ApmTransactionDocumentType } from '../../../common/document_type'; +import type { ApmTransactionDocumentType } from '../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; -import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../common/latency_aggregation_types'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../typings/timeseries'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyAggregation, getLatencyValue } from '../../lib/helpers/latency_aggregation_type'; import { getDurationFieldForTransactions } from '../../lib/helpers/transactions'; import { calculateFailedTransactionRate, getOutcomeAggregation, } from '../../lib/helpers/transaction_error_rate'; -import { RollupInterval } from '../../../common/rollup'; +import type { RollupInterval } from '../../../common/rollup'; interface ServiceTransactionGroupDetailedStat { transactionName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups.ts index 31516e71783cd..88fc58f32f706 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups.ts @@ -6,18 +6,18 @@ */ import { kqlQuery, rangeQuery, wildcardQuery } from '@kbn/observability-plugin/server'; -import { ApmTransactionDocumentType } from '../../../common/document_type'; +import type { ApmTransactionDocumentType } from '../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_OVERFLOW_COUNT, TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; -import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; -import { RollupInterval } from '../../../common/rollup'; +import type { LatencyAggregationType } from '../../../common/latency_aggregation_types'; +import type { RollupInterval } from '../../../common/rollup'; import { environmentQuery } from '../../../common/utils/environment_query'; import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyAggregation, getLatencyValue } from '../../lib/helpers/latency_aggregation_type'; import { getDurationFieldForTransactions } from '../../lib/helpers/transactions'; import { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups_alerts.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups_alerts.ts index de9c73a30a186..468850073e0b6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups_alerts.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_groups_alerts.ts @@ -23,7 +23,7 @@ import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../commo import { LatencyAggregationType } from '../../../common/latency_aggregation_types'; import { AggregationType } from '../../../common/rules/apm_rule_types'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { ApmAlertsClient } from '../../lib/helpers/get_apm_alerts_client'; +import type { ApmAlertsClient } from '../../lib/helpers/get_apm_alerts_client'; import { MAX_NUMBER_OF_TX_GROUPS } from './get_service_transaction_groups'; export type ServiceTransactionGroupAlertsResponse = Array<{ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_types.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_types.ts index de3a2751c5e42..872abb15a6ad9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_transaction_types.ts @@ -6,10 +6,10 @@ */ import { rangeQuery } from '@kbn/observability-plugin/server'; -import { ApmServiceTransactionDocumentType } from '../../../common/document_type'; +import type { ApmServiceTransactionDocumentType } from '../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RollupInterval } from '../../../common/rollup'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RollupInterval } from '../../../common/rollup'; export interface ServiceTransactionTypesResponse { transactionTypes: string[]; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_health_statuses.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_health_statuses.ts index f2dbeb8410bbe..27972d8bd5e79 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_health_statuses.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_health_statuses.ts @@ -6,11 +6,9 @@ */ import { getSeverity } from '../../../../common/anomaly_detection'; -import { - getServiceHealthStatus, - ServiceHealthStatus, -} from '../../../../common/service_health_status'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { ServiceHealthStatus } from '../../../../common/service_health_status'; +import { getServiceHealthStatus } from '../../../../common/service_health_status'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; import { getServiceAnomalies } from '../../service_map/get_service_anomalies'; interface AggregationParams { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_alerts.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_alerts.ts index c47668bc1ee32..4ce22e64fcf05 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_alerts.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_alerts.ts @@ -20,8 +20,8 @@ import { } from '@kbn/rule-data-utils'; import { APM_ALERTING_CONSUMERS } from '../../../../common/alerting/config/apm_alerting_feature_ids'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; -import { ServiceGroup } from '../../../../common/service_groups'; -import { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; +import type { ServiceGroup } from '../../../../common/service_groups'; +import type { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { MAX_NUMBER_OF_SERVICES } from './get_services_items'; import { serviceGroupWithOverflowQuery } from '../../../lib/service_group_query_with_overflow'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_names_from_terms_enum.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_names_from_terms_enum.ts index ae3eff809f293..1a8e4179fbee4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_names_from_terms_enum.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_names_from_terms_enum.ts @@ -6,10 +6,10 @@ */ import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; -import { Environment } from '../../../../common/environment_rt'; +import type { Environment } from '../../../../common/environment_rt'; export async function getServiceNamesFromTermsEnum({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_transaction_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_transaction_stats.ts index 69f06ee74b535..19842a6624538 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_transaction_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_service_transaction_stats.ts @@ -7,7 +7,7 @@ import { kqlQuery, rangeQuery, wildcardQuery } from '@kbn/observability-plugin/server'; import { getAgentName } from '@kbn/elastic-agent-utils'; -import { ApmDocumentType } from '../../../../common/document_type'; +import type { ApmDocumentType } from '../../../../common/document_type'; import { AGENT_NAME, SERVICE_ENVIRONMENT, @@ -17,14 +17,14 @@ import { TELEMETRY_SDK_NAME, TELEMETRY_SDK_LANGUAGE, } from '../../../../common/es_fields/apm'; -import { RollupInterval } from '../../../../common/rollup'; -import { ServiceGroup } from '../../../../common/service_groups'; +import type { RollupInterval } from '../../../../common/rollup'; +import type { ServiceGroup } from '../../../../common/service_groups'; import { isDefaultTransactionType } from '../../../../common/transaction_types'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import { calculateThroughputWithRange } from '../../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; import { getDurationFieldForTransactions } from '../../../lib/helpers/transactions'; import { calculateFailedTransactionRate, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_items.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_items.ts index e57e8e9d20235..effb6259efc6c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_items.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_items.ts @@ -5,20 +5,21 @@ * 2.0. */ -import { Logger } from '@kbn/logging'; -import { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; -import { RollupInterval } from '../../../../common/rollup'; -import { ServiceGroup } from '../../../../common/service_groups'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { Logger } from '@kbn/logging'; +import type { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; +import type { RollupInterval } from '../../../../common/rollup'; +import type { ServiceGroup } from '../../../../common/service_groups'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ApmAlertsClient } from '../../../lib/helpers/get_apm_alerts_client'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; import { withApmSpan } from '../../../utils/with_apm_span'; import { getHealthStatuses } from './get_health_statuses'; import { getServicesWithoutTransactions } from './get_services_without_transactions'; import { getServicesAlerts } from './get_service_alerts'; import { getServiceTransactionStats } from './get_service_transaction_stats'; -import { MergedServiceStat, mergeServiceStats } from './merge_service_stats'; +import type { MergedServiceStat } from './merge_service_stats'; +import { mergeServiceStats } from './merge_service_stats'; export const MAX_NUMBER_OF_SERVICES = 1_000; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_without_transactions.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_without_transactions.ts index a966a37a64220..ba8592b4053cf 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_without_transactions.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/get_services_without_transactions.ts @@ -8,7 +8,7 @@ import { kqlQuery, rangeQuery, wildcardQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getAgentName } from '@kbn/elastic-agent-utils'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import { AGENT_NAME, SERVICE_ENVIRONMENT, @@ -17,11 +17,11 @@ import { TELEMETRY_SDK_NAME, } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { ServiceGroup } from '../../../../common/service_groups'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ServiceGroup } from '../../../../common/service_groups'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../../common/document_type'; -import { RollupInterval } from '../../../../common/rollup'; +import type { RollupInterval } from '../../../../common/rollup'; import { serviceGroupWithOverflowQuery } from '../../../lib/service_group_query_with_overflow'; export interface ServicesWithoutTransactionsResponse { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.test.ts index d06905d17bb18..c49743ef4df06 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.test.ts @@ -5,7 +5,7 @@ * 2.0. */ import { ServiceHealthStatus } from '../../../../common/service_health_status'; -import { getServiceTransactionStats } from './get_service_transaction_stats'; +import type { getServiceTransactionStats } from './get_service_transaction_stats'; import { mergeServiceStats } from './merge_service_stats'; type ServiceTransactionStat = Awaited< diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.ts index f77b8fda5b3b6..ddb2733f11dde 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services/merge_service_stats.ts @@ -7,12 +7,12 @@ import { uniq } from 'lodash'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; import { joinByKey } from '../../../../common/utils/join_by_key'; -import { ServiceHealthStatusesResponse } from './get_health_statuses'; -import { ServicesWithoutTransactionsResponse } from './get_services_without_transactions'; -import { ServiceAlertsResponse } from './get_service_alerts'; -import { ServiceTransactionStatsResponse } from './get_service_transaction_stats'; -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; -import { ServiceHealthStatus } from '../../../../common/service_health_status'; +import type { ServiceHealthStatusesResponse } from './get_health_statuses'; +import type { ServicesWithoutTransactionsResponse } from './get_services_without_transactions'; +import type { ServiceAlertsResponse } from './get_service_alerts'; +import type { ServiceTransactionStatsResponse } from './get_service_transaction_stats'; +import type { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; +import type { ServiceHealthStatus } from '../../../../common/service_health_status'; export interface MergedServiceStat { serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/get_service_transaction_detailed_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/get_service_transaction_detailed_statistics.ts index fd425d62fcb38..cda8505162041 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/get_service_transaction_detailed_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/get_service_transaction_detailed_statistics.ts @@ -7,15 +7,15 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { keyBy } from 'lodash'; -import { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; +import type { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_TYPE } from '../../../../common/es_fields/apm'; -import { RollupInterval } from '../../../../common/rollup'; +import type { RollupInterval } from '../../../../common/rollup'; import { isDefaultTransactionType } from '../../../../common/transaction_types'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { calculateThroughputWithInterval } from '../../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; import { getDurationFieldForTransactions } from '../../../lib/helpers/transactions'; import { calculateFailedTransactionRate, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/index.ts index 2820c80d72ba2..0f28ad0e1cd3d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_services_detailed_statistics/index.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; -import { RollupInterval } from '../../../../common/rollup'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../../lib/helpers/get_random_sampler'; +import type { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; +import type { RollupInterval } from '../../../../common/rollup'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../../lib/helpers/get_random_sampler'; import { getServiceTransactionDetailedStatsPeriods } from './get_service_transaction_detailed_statistics'; export async function getServicesDetailedStatistics({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_throughput.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_throughput.ts index b5c48484e1039..035cc1535e1e5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/get_throughput.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/get_throughput.ts @@ -4,15 +4,15 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { ApmServiceTransactionDocumentType } from '../../../common/document_type'; +import type { ApmServiceTransactionDocumentType } from '../../../common/document_type'; import { SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE } from '../../../common/es_fields/apm'; -import { RollupInterval } from '../../../common/rollup'; +import type { RollupInterval } from '../../../common/rollup'; import { environmentQuery } from '../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { Maybe } from '../../../typings/common'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Maybe } from '../../../typings/common'; interface Options { environment: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/services/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/services/route.ts index 664706b8489b1..42a3ff6a101f0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/services/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/services/route.ts @@ -12,12 +12,12 @@ import { MLPrivilegesUninitialized, UnknownMLCapabilitiesError, } from '@kbn/ml-plugin/server'; -import { Annotation } from '@kbn/observability-plugin/common/annotations'; -import { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; +import type { Annotation } from '@kbn/observability-plugin/common/annotations'; +import type { ScopedAnnotationsClient } from '@kbn/observability-plugin/server'; import * as t from 'io-ts'; import { isEmpty, mergeWith, uniq } from 'lodash'; import { ML_ERRORS } from '../../../common/anomaly_detection'; -import { ServiceAnomalyTimeseries } from '../../../common/anomaly_detection/service_anomaly_timeseries'; +import type { ServiceAnomalyTimeseries } from '../../../common/anomaly_detection/service_anomaly_timeseries'; import { offsetRt } from '../../../common/comparison_rt'; import { instancesSortFieldRt } from '../../../common/instances'; import { latencyAggregationTypeRt } from '../../../common/latency_aggregation_types'; @@ -40,44 +40,39 @@ import { serviceTransactionDataSourceRt, } from '../default_api_types'; import { getServiceGroup } from '../service_groups/get_service_group'; -import { getServiceAnnotations, ServiceAnnotationResponse } from './annotations'; -import { getServicesItems, ServicesItemsResponse } from './get_services/get_services_items'; -import { getServicesAlerts, ServiceAlertsResponse } from './get_services/get_service_alerts'; -import { - getServiceTransactionDetailedStatsPeriods, - ServiceTransactionDetailedStatPeriodsResponse, -} from './get_services_detailed_statistics/get_service_transaction_detailed_statistics'; -import { getServiceAgent, ServiceAgentResponse } from './get_service_agent'; -import { getServiceDependencies, ServiceDependenciesResponse } from './get_service_dependencies'; -import { - getServiceDependenciesBreakdown, - ServiceDependenciesBreakdownResponse, -} from './get_service_dependencies_breakdown'; -import { - getServiceInstancesDetailedStatisticsPeriods, - ServiceInstancesDetailedStatisticsResponse, -} from './get_service_instances/detailed_statistics'; -import { - getServiceInstancesMainStatistics, - ServiceInstanceMainStatisticsResponse, -} from './get_service_instances/main_statistics'; -import { - getServiceInstanceContainerMetadata, - ServiceInstanceContainerMetadataDetails, -} from './get_service_instance_container_metadata'; -import { - getServiceInstanceMetadataDetails, - ServiceInstanceMetadataDetailsResponse, -} from './get_service_instance_metadata_details'; -import { getServiceMetadataDetails, ServiceMetadataDetails } from './get_service_metadata_details'; -import { getServiceMetadataIcons, ServiceMetadataIcons } from './get_service_metadata_icons'; -import { getServiceNodeMetadata, ServiceNodeMetadataResponse } from './get_service_node_metadata'; +import type { ServiceAnnotationResponse } from './annotations'; +import { getServiceAnnotations } from './annotations'; +import type { ServicesItemsResponse } from './get_services/get_services_items'; +import { getServicesItems } from './get_services/get_services_items'; +import type { ServiceAlertsResponse } from './get_services/get_service_alerts'; +import { getServicesAlerts } from './get_services/get_service_alerts'; +import type { ServiceTransactionDetailedStatPeriodsResponse } from './get_services_detailed_statistics/get_service_transaction_detailed_statistics'; +import { getServiceTransactionDetailedStatsPeriods } from './get_services_detailed_statistics/get_service_transaction_detailed_statistics'; +import type { ServiceAgentResponse } from './get_service_agent'; +import { getServiceAgent } from './get_service_agent'; +import type { ServiceDependenciesResponse } from './get_service_dependencies'; +import { getServiceDependencies } from './get_service_dependencies'; +import type { ServiceDependenciesBreakdownResponse } from './get_service_dependencies_breakdown'; +import { getServiceDependenciesBreakdown } from './get_service_dependencies_breakdown'; +import type { ServiceInstancesDetailedStatisticsResponse } from './get_service_instances/detailed_statistics'; +import { getServiceInstancesDetailedStatisticsPeriods } from './get_service_instances/detailed_statistics'; +import type { ServiceInstanceMainStatisticsResponse } from './get_service_instances/main_statistics'; +import { getServiceInstancesMainStatistics } from './get_service_instances/main_statistics'; +import type { ServiceInstanceContainerMetadataDetails } from './get_service_instance_container_metadata'; +import { getServiceInstanceContainerMetadata } from './get_service_instance_container_metadata'; +import type { ServiceInstanceMetadataDetailsResponse } from './get_service_instance_metadata_details'; +import { getServiceInstanceMetadataDetails } from './get_service_instance_metadata_details'; +import type { ServiceMetadataDetails } from './get_service_metadata_details'; +import { getServiceMetadataDetails } from './get_service_metadata_details'; +import type { ServiceMetadataIcons } from './get_service_metadata_icons'; +import { getServiceMetadataIcons } from './get_service_metadata_icons'; +import type { ServiceNodeMetadataResponse } from './get_service_node_metadata'; +import { getServiceNodeMetadata } from './get_service_node_metadata'; import { getServiceOverviewContainerMetadata } from './get_service_overview_container_metadata'; -import { - getServiceTransactionTypes, - ServiceTransactionTypesResponse, -} from './get_service_transaction_types'; -import { getThroughput, ServiceThroughputResponse } from './get_throughput'; +import type { ServiceTransactionTypesResponse } from './get_service_transaction_types'; +import { getServiceTransactionTypes } from './get_service_transaction_types'; +import type { ServiceThroughputResponse } from './get_throughput'; +import { getThroughput } from './get_throughput'; import { getServiceEntitySummary } from '../entities/services/get_service_entity_summary'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/convert_settings_to_string.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/convert_settings_to_string.ts index 0da0bbcf4fdf3..9390e8ad6664e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/convert_settings_to_string.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/convert_settings_to_string.ts @@ -6,7 +6,7 @@ */ import type { SearchHit } from '@kbn/es-types'; -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; // needed for backwards compatability // All settings except `transaction_sample_rate` and `transaction_max_spans` are stored as strings (they are stored as float and integer respectively) diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_agent_config_index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_agent_config_index.ts index 9f224647ca875..8630f69400126 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_agent_config_index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_agent_config_index.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { createOrUpdateIndex, Mappings } from '@kbn/observability-plugin/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { Mappings } from '@kbn/observability-plugin/server'; +import { createOrUpdateIndex } from '@kbn/observability-plugin/server'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; export async function createApmAgentConfigurationIndex({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_or_update_configuration.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_or_update_configuration.ts index 3839949df6cc4..1852385664b22 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_or_update_configuration.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/create_or_update_configuration.ts @@ -6,11 +6,11 @@ */ import hash from 'object-hash'; -import { +import type { AgentConfiguration, AgentConfigurationIntake, } from '../../../../common/agent_configuration/configuration_types'; -import { +import type { APMIndexDocumentParams, APMInternalESClient, } from '../../../lib/helpers/create_es_client/create_internal_es_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/delete_configuration.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/delete_configuration.ts index fc49660cd53e1..a608cfc015ead 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/delete_configuration.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/delete_configuration.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; export async function deleteConfiguration({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/find_exact_configuration.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/find_exact_configuration.ts index e5e507dd1c6f1..f9a8f25392dd2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/find_exact_configuration.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/find_exact_configuration.ts @@ -6,10 +6,10 @@ */ import type { SearchHit } from '@kbn/es-types'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; import { SERVICE_ENVIRONMENT, SERVICE_NAME } from '../../../../common/es_fields/apm'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; import { convertConfigSettingsToString } from './convert_settings_to_string'; import { getAgentConfigEtagMetrics } from './get_agent_config_etag_metrics'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_config_etag_metrics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_config_etag_metrics.ts index 6d568532c9457..c5a9ec8b37cee 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_config_etag_metrics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_config_etag_metrics.ts @@ -8,7 +8,7 @@ import { termQuery, rangeQuery } from '@kbn/observability-plugin/server'; import datemath from '@kbn/datemath'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { METRICSET_NAME } from '../../../../common/es_fields/apm'; export async function getAgentConfigEtagMetrics(apmEventClient: APMEventClient, etag?: string) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_name_by_service.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_name_by_service.ts index 41c9491e9864c..40fb80f4c2a14 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_name_by_service.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_agent_name_by_service.ts @@ -8,7 +8,7 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { SERVICE_NAME } from '../../../../common/es_fields/apm'; import { AGENT_NAME } from '../../../../common/es_fields/apm'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export async function getAgentNameByService({ serviceName, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/get_existing_environments_for_service.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/get_existing_environments_for_service.ts index 6afde1a7532cc..a36fd32441005 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/get_existing_environments_for_service.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/get_existing_environments_for_service.ts @@ -7,7 +7,7 @@ import { SERVICE_NAME, SERVICE_ENVIRONMENT } from '../../../../../common/es_fields/apm'; import { ALL_OPTION_VALUE } from '../../../../../common/agent_configuration/all_option'; -import { APMInternalESClient } from '../../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../../apm_indices/apm_system_index_constants'; export async function getExistingEnvironmentsForService({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/index.ts index 98964d3b2927d..19551c5cc3268 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/get_environments/index.ts @@ -9,8 +9,8 @@ import { withApmSpan } from '../../../../utils/with_apm_span'; import { getAllEnvironments } from '../../../environments/get_all_environments'; import { getExistingEnvironmentsForService } from './get_existing_environments_for_service'; import { ALL_OPTION_VALUE } from '../../../../../common/agent_configuration/all_option'; -import { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; -import { APMInternalESClient } from '../../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMEventClient } from '../../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMInternalESClient } from '../../../../lib/helpers/create_es_client/create_internal_es_client'; export type EnvironmentsResponse = Array<{ name: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/list_configurations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/list_configurations.ts index 300ede3894c2b..6f9d9e9baf2d7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/list_configurations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/list_configurations.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; import { convertConfigSettingsToString } from './convert_settings_to_string'; import { getAgentConfigEtagMetrics } from './get_agent_config_etag_metrics'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; export async function listConfigurations({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/mark_applied_by_agent.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/mark_applied_by_agent.ts index 9833423e3bef6..9d01b57d97c3f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/mark_applied_by_agent.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/mark_applied_by_agent.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; // We're not wrapping this function with a span as it is not blocking the request diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/queries.test.ts index 0b0157e423d59..7e0e9cf293cc4 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/queries.test.ts @@ -8,7 +8,8 @@ import { getExistingEnvironmentsForService } from './get_environments/get_existing_environments_for_service'; import { listConfigurations } from './list_configurations'; import { searchConfigurations } from './search_configurations'; -import { SearchParamsMock, inspectSearchParams } from '../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../utils/test_helpers'; import { findExactConfiguration } from './find_exact_configuration'; import { getAllEnvironments } from '../../environments/get_all_environments'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/route.ts index bda0f5aba15a9..96f7889fb8733 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/route.ts @@ -9,12 +9,13 @@ import * as t from 'io-ts'; import Boom from '@hapi/boom'; import { toBooleanRt } from '@kbn/io-ts-utils'; import { maxSuggestions } from '@kbn/observability-plugin/common'; -import { SearchHit } from '@kbn/es-types'; +import type { SearchHit } from '@kbn/es-types'; import { createOrUpdateConfiguration } from './create_or_update_configuration'; import { searchConfigurations } from './search_configurations'; import { findExactConfiguration } from './find_exact_configuration'; import { listConfigurations } from './list_configurations'; -import { EnvironmentsResponse, getEnvironments } from './get_environments'; +import type { EnvironmentsResponse } from './get_environments'; +import { getEnvironments } from './get_environments'; import { deleteConfiguration } from './delete_configuration'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; import { getAgentNameByService } from './get_agent_name_by_service'; @@ -27,8 +28,8 @@ import { getSearchTransactionsEvents } from '../../../lib/helpers/transactions'; import { syncAgentConfigsToApmPackagePolicies } from '../../fleet/sync_agent_configs_to_apm_package_policies'; import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; import { createInternalESClientWithResources } from '../../../lib/helpers/create_es_client/create_internal_es_client'; -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; -import { ApmFeatureFlags } from '../../../../common/apm_feature_flags'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { ApmFeatureFlags } from '../../../../common/apm_feature_flags'; function throwNotFoundIfAgentConfigNotAvailable(featureFlags: ApmFeatureFlags): void { if (!featureFlags.agentConfigurationAvailable) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/search_configurations.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/search_configurations.ts index 1cc37221b9993..e7411146859be 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/search_configurations.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/agent_configuration/search_configurations.ts @@ -7,9 +7,9 @@ import type { SearchHit } from '@kbn/es-types'; import { SERVICE_NAME, SERVICE_ENVIRONMENT } from '../../../../common/es_fields/apm'; -import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; +import type { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types'; import { convertConfigSettingsToString } from './convert_settings_to_string'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_AGENT_CONFIGURATION_INDEX } from '../apm_indices/apm_system_index_constants'; export async function searchConfigurations({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/route.ts index 921b86bc57f16..e4e12701666b2 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/route.ts @@ -8,7 +8,7 @@ import * as t from 'io-ts'; import Boom from '@hapi/boom'; import { maxSuggestions } from '@kbn/observability-plugin/common'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { getESCapabilities } from '../../../lib/helpers/get_es_capabilities'; import { isActivePlatinumLicense } from '../../../../common/license_check'; import { ML_ERRORS } from '../../../../common/anomaly_detection'; @@ -22,7 +22,7 @@ import { updateToV3 } from './update_to_v3'; import { environmentStringRt } from '../../../../common/environment_rt'; import { getMlJobsWithAPMGroup } from '../../../lib/anomaly_detection/get_ml_jobs_with_apm_group'; import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; -import { ApmMlJob } from '../../../../common/anomaly_detection/apm_ml_job'; +import type { ApmMlJob } from '../../../../common/anomaly_detection/apm_ml_job'; // get ML anomaly detection jobs for each environment const anomalyDetectionJobsRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/settings/anomaly-detection/jobs', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/update_to_v3.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/update_to_v3.ts index 509029288e033..0d24a0fdc7a38 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/update_to_v3.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/anomaly_detection/update_to_v3.ts @@ -4,16 +4,16 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Logger } from '@kbn/logging'; +import type { Logger } from '@kbn/logging'; import { uniq } from 'lodash'; import pLimit from 'p-limit'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { JOB_STATE } from '@kbn/ml-plugin/common'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { ElasticsearchCapabilities } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchCapabilities } from '@kbn/core-elasticsearch-server'; import { createAnomalyDetectionJobs } from '../../../lib/anomaly_detection/create_anomaly_detection_jobs'; import { getAnomalyDetectionJobs } from '../../../lib/anomaly_detection/get_anomaly_detection_jobs'; -import { MlClient } from '../../../lib/helpers/get_ml_client'; +import type { MlClient } from '../../../lib/helpers/get_ml_client'; import { withApmSpan } from '../../../utils/with_apm_span'; export async function updateToV3({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/get_apm_indices.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/get_apm_indices.ts index e9f24f0201d63..c725ae5cc88bc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/get_apm_indices.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/get_apm_indices.ts @@ -6,7 +6,7 @@ */ import { getApmIndicesSavedObject } from '@kbn/apm-data-access-plugin/server/saved_objects/apm_indices'; -import { APMRouteHandlerResources } from '../../apm_routes/register_apm_server_routes'; +import type { APMRouteHandlerResources } from '../../apm_routes/register_apm_server_routes'; export type ApmIndexSettingsResponse = Array<{ configurationName: 'transaction' | 'span' | 'error' | 'metric' | 'onboarding' | 'sourcemap'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/route.ts index 63bf2a145d6a0..998790cc03019 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/apm_indices/route.ts @@ -6,11 +6,12 @@ */ import * as t from 'io-ts'; -import { SavedObject } from '@kbn/core/server'; +import type { SavedObject } from '@kbn/core/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { saveApmIndices } from '@kbn/apm-data-access-plugin/server/saved_objects/apm_indices'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; -import { getApmIndexSettings, ApmIndexSettingsResponse } from './get_apm_indices'; +import type { ApmIndexSettingsResponse } from './get_apm_indices'; +import { getApmIndexSettings } from './get_apm_indices'; // get list of apm indices and values const apmIndexSettingsRoute = createApmServerRoute({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_custom_link_index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_custom_link_index.ts index d990a3536c59b..fd57586f59e6a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_custom_link_index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_custom_link_index.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { createOrUpdateIndex, Mappings } from '@kbn/observability-plugin/server'; +import type { Mappings } from '@kbn/observability-plugin/server'; +import { createOrUpdateIndex } from '@kbn/observability-plugin/server'; import { APM_CUSTOM_LINK_INDEX } from '../apm_indices/apm_system_index_constants'; export const createApmCustomLinkIndex = async ({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.test.ts index 3b5bf5b3f15a6..1b8831a2d92ca 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.test.ts @@ -6,9 +6,9 @@ */ import { mockNow } from '../../../utils/test_helpers'; -import { CustomLink } from '../../../../common/custom_link/custom_link_types'; +import type { CustomLink } from '../../../../common/custom_link/custom_link_types'; import { createOrUpdateCustomLink } from './create_or_update_custom_link'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; describe('Create or Update Custom link', () => { const internalClientIndexMock = jest.fn(); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.ts index e9f9774477107..edf65d979e60f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/create_or_update_custom_link.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CustomLink, CustomLinkES } from '../../../../common/custom_link/custom_link_types'; +import type { CustomLink, CustomLinkES } from '../../../../common/custom_link/custom_link_types'; import { toESFormat } from './helper'; -import { +import type { APMIndexDocumentParams, APMInternalESClient, } from '../../../lib/helpers/create_es_client/create_internal_es_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/delete_custom_link.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/delete_custom_link.ts index cc000ceda963f..1fb772e57995f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/delete_custom_link.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/delete_custom_link.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_CUSTOM_LINK_INDEX } from '../apm_indices/apm_system_index_constants'; export function deleteCustomLink({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.test.ts index a927cefea79c6..fdda2cbaba4bc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.test.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { inspectSearchParams, SearchParamsMock } from '../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../utils/test_helpers'; import { getTransaction } from './get_transaction'; import { SERVICE_NAME, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.ts index 58cdd55b2d443..f1209d4588fd9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/get_transaction.ts @@ -5,13 +5,13 @@ * 2.0. */ -import * as t from 'io-ts'; +import type * as t from 'io-ts'; import { compact } from 'lodash'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; -import { filterOptionsRt } from './custom_link_types'; +import type { filterOptionsRt } from './custom_link_types'; import { splitFilterValueByComma } from './helper'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export async function getTransaction({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/helper.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/helper.ts index 9eea5a14f0f37..2b9c21e407042 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/helper.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/helper.ts @@ -6,7 +6,7 @@ */ import { isEmpty } from 'lodash'; -import { +import type { CustomLinkES, CustomLink, Filter, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.test.ts index ae99f2f1f3ee0..ae2c18f7ce68a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.test.ts @@ -6,7 +6,8 @@ */ import { listCustomLinks } from './list_custom_links'; -import { inspectSearchParams, SearchParamsMock } from '../../../utils/test_helpers'; +import type { SearchParamsMock } from '../../../utils/test_helpers'; +import { inspectSearchParams } from '../../../utils/test_helpers'; import { SERVICE_NAME, TRANSACTION_NAME } from '../../../../common/es_fields/apm'; describe('List Custom Links', () => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.ts index fb79d6b31901c..abcf100010893 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/list_custom_links.ts @@ -5,12 +5,12 @@ * 2.0. */ -import * as t from 'io-ts'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { CustomLink, CustomLinkES } from '../../../../common/custom_link/custom_link_types'; +import type * as t from 'io-ts'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { CustomLink, CustomLinkES } from '../../../../common/custom_link/custom_link_types'; import { fromESFormat } from './helper'; -import { filterOptionsRt } from './custom_link_types'; -import { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; +import type { filterOptionsRt } from './custom_link_types'; +import type { APMInternalESClient } from '../../../lib/helpers/create_es_client/create_internal_es_client'; import { APM_CUSTOM_LINK_INDEX } from '../apm_indices/apm_system_index_constants'; export async function listCustomLinks({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/route.ts index 20bdd11b3f45c..5366547ac2d2b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/settings/custom_link/route.ts @@ -20,8 +20,8 @@ import { listCustomLinks } from './list_custom_links'; import { createApmServerRoute } from '../../apm_routes/create_apm_server_route'; import { getApmEventClient } from '../../../lib/helpers/get_apm_event_client'; import { createInternalESClientWithResources } from '../../../lib/helpers/create_es_client/create_internal_es_client'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; -import { CustomLink } from '../../../../common/custom_link/custom_link_types'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { CustomLink } from '../../../../common/custom_link/custom_link_types'; const customLinkTransactionRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/settings/custom_links/transaction', diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/bulk_create_apm_source_maps.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/bulk_create_apm_source_maps.ts index ae16b8120f9ac..4d58ff71f3d97 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/bulk_create_apm_source_maps.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/bulk_create_apm_source_maps.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { Artifact } from '@kbn/fleet-plugin/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { Artifact } from '@kbn/fleet-plugin/server'; import { getUnzippedArtifactBody } from '../fleet/source_maps'; import { APM_SOURCE_MAP_INDEX } from '../settings/apm_indices/apm_system_index_constants'; -import { ApmSourceMap } from './create_apm_source_map_index_template'; +import type { ApmSourceMap } from './create_apm_source_map_index_template'; import { getEncodedContent, getSourceMapId } from './sourcemap_utils'; export async function bulkCreateApmSourceMaps({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map.ts index 15cb5547f4b0f..2b95b25a4b3fb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { Logger } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { Logger } from '@kbn/core/server'; import { APM_SOURCE_MAP_INDEX } from '../settings/apm_indices/apm_system_index_constants'; -import { ApmSourceMap } from './create_apm_source_map_index_template'; -import { SourceMap } from './route'; +import type { ApmSourceMap } from './create_apm_source_map_index_template'; +import type { SourceMap } from './route'; import { getEncodedContent, getSourceMapId } from './sourcemap_utils'; export async function createApmSourceMap({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map_index_template.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map_index_template.ts index 7b641f7f0ba87..588e852ac8342 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map_index_template.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/create_apm_source_map_index_template.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { IndicesPutIndexTemplateRequest } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { IndicesPutIndexTemplateRequest } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; import { createOrUpdateIndexTemplate } from '@kbn/observability-plugin/server'; import { APM_SOURCE_MAP_INDEX } from '../settings/apm_indices/apm_system_index_constants'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/delete_apm_sourcemap.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/delete_apm_sourcemap.ts index 2f4723f9e470f..efacfeed41ba8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/delete_apm_sourcemap.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/delete_apm_sourcemap.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { APM_SOURCE_MAP_INDEX } from '../settings/apm_indices/apm_system_index_constants'; export async function deleteApmSourceMap({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/route.ts index 6e51002dfc81a..d386e9cb4f7f3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/route.ts @@ -5,20 +5,20 @@ * 2.0. */ import Boom from '@hapi/boom'; -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { Artifact } from '@kbn/fleet-plugin/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { Artifact } from '@kbn/fleet-plugin/server'; import { jsonRt, toNumberRt } from '@kbn/io-ts-utils'; import * as t from 'io-ts'; -import { ApmFeatureFlags } from '../../../common/apm_feature_flags'; +import type { ApmFeatureFlags } from '../../../common/apm_feature_flags'; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client'; import { stringFromBufferRt } from '../../utils/string_from_buffer_rt'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; +import type { ListSourceMapArtifactsResponse } from '../fleet/source_maps'; import { createFleetSourceMapArtifact, deleteFleetSourcemapArtifact, getCleanedBundleFilePath, listSourceMapArtifacts, - ListSourceMapArtifactsResponse, updateSourceMapsOnFleetPolicies, } from '../fleet/source_maps'; import { createApmSourceMap } from './create_apm_source_map'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/schedule_source_map_migration.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/schedule_source_map_migration.ts index 2fbfc65fcce03..0e18a9b47c37a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/schedule_source_map_migration.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/schedule_source_map_migration.ts @@ -5,16 +5,16 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { FleetStartContract } from '@kbn/fleet-plugin/server'; -import { ArtifactsClientInterface } from '@kbn/fleet-plugin/server/services'; -import { TaskManagerSetupContract } from '@kbn/task-manager-plugin/server'; -import { CoreStart, Logger } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { ArtifactsClientInterface } from '@kbn/fleet-plugin/server/services'; +import type { TaskManagerSetupContract } from '@kbn/task-manager-plugin/server'; +import type { CoreStart, Logger } from '@kbn/core/server'; import { getApmArtifactClient } from '../fleet/source_maps'; import { bulkCreateApmSourceMaps } from './bulk_create_apm_source_maps'; import { APM_SOURCE_MAP_INDEX } from '../settings/apm_indices/apm_system_index_constants'; -import { ApmSourceMap } from './create_apm_source_map_index_template'; -import { APMPluginStartDependencies } from '../../types'; +import type { ApmSourceMap } from './create_apm_source_map_index_template'; +import type { APMPluginStartDependencies } from '../../types'; import { createApmSourceMapIndexTemplate } from './create_apm_source_map_index_template'; const PER_PAGE = 10; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/sourcemap_utils.ts b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/sourcemap_utils.ts index 20ff2fa4bd41c..abe1d6b1a30a9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/sourcemap_utils.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/source_maps/sourcemap_utils.ts @@ -6,9 +6,10 @@ */ import { deflate } from 'zlib'; -import { BinaryLike, createHash } from 'crypto'; +import type { BinaryLike } from 'crypto'; +import { createHash } from 'crypto'; import { promisify } from 'util'; -import { SourceMap } from './route'; +import type { SourceMap } from './route'; const deflateAsync = promisify(deflate); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_children.ts b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_children.ts index 2ff34698c20bc..b78585bffc3ef 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_children.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_children.ts @@ -19,7 +19,7 @@ import { TRANSACTION_ID, } from '../../../common/es_fields/apm'; import { getBufferedTimerange } from './utils'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; async function fetchLinkedChildrenOfSpan({ traceId, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_parents.ts b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_parents.ts index 59e91e0b17e6b..741fd80b6eba1 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_parents.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_linked_parents.ts @@ -13,9 +13,9 @@ import { TRANSACTION_ID, PROCESSOR_EVENT, } from '../../../common/es_fields/apm'; -import { SpanRaw } from '../../../typings/es_schemas/raw/span_raw'; -import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { SpanRaw } from '../../../typings/es_schemas/raw/span_raw'; +import type { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getLinkedParentsOfSpan({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_span_links_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_span_links_details.ts index 669adb1008080..e118482bf307d 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_span_links_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/get_span_links_details.ts @@ -24,11 +24,11 @@ import { AGENT_NAME, SERVICE_ENVIRONMENT, } from '../../../common/es_fields/apm'; -import { Environment } from '../../../common/environment_rt'; -import { SpanLinkDetails } from '../../../common/span_links'; -import { SpanLink } from '../../../typings/es_schemas/raw/fields/span_links'; +import type { Environment } from '../../../common/environment_rt'; +import type { SpanLinkDetails } from '../../../common/span_links'; +import type { SpanLink } from '../../../typings/es_schemas/raw/fields/span_links'; import { getBufferedTimerange } from './utils'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; async function fetchSpanLinksDetails({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/route.ts index 6a3531e4fa443..7c2eeeba84695 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/span_links/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/span_links/route.ts @@ -9,7 +9,7 @@ import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { getSpanLinksDetails } from './get_span_links_details'; import { getLinkedChildrenOfSpan } from './get_linked_children'; import { kueryRt, rangeRt } from '../default_api_types'; -import { SpanLinkDetails } from '../../../common/span_links'; +import type { SpanLinkDetails } from '../../../common/span_links'; import { processorEventRt } from '../../../common/processor_event'; import { getLinkedParentsOfSpan } from './get_linked_parents'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_service_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_service_statistics.ts index a44463bc70ae3..411e8f35e2867 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_service_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_service_statistics.ts @@ -6,7 +6,7 @@ */ import { termQuery, kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApmPluginRequestHandlerContext } from '../typings'; import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, @@ -22,10 +22,10 @@ import { INDEX, } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; import { getTotalIndicesStats, getEstimatedSizeForDocumentsInIndex } from './indices_stats_helpers'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; async function getMainServiceStatistics({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_size_timeseries.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_size_timeseries.ts index ef35d765b30e1..86d3c56218361 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_size_timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_size_timeseries.ts @@ -14,10 +14,10 @@ import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, } from '../../../common/storage_explorer_types'; -import { ApmPluginRequestHandlerContext } from '../typings'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { ApmPluginRequestHandlerContext } from '../typings'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; import { getTotalIndicesStats, getEstimatedSizeForDocumentsInIndex } from './indices_stats_helpers'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export type SizeTimeseriesResponse = Array<{ serviceName: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details.ts index 570e0f2aa2d6f..9ff1f463d00f0 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Environment } from '../../../common/environment_rt'; -import { IndexLifecyclePhaseSelectOption } from '../../../common/storage_explorer_types'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { Environment } from '../../../common/environment_rt'; +import type { IndexLifecyclePhaseSelectOption } from '../../../common/storage_explorer_types'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { ApmPluginRequestHandlerContext } from '../typings'; import { getStorageDetailsPerIndex, getStorageDetailsPerProcessorEvent, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details_per_service.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details_per_service.ts index 74c28a7290c1b..a29bc7fa683a7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details_per_service.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_storage_details_per_service.ts @@ -13,15 +13,15 @@ import { indexLifeCyclePhaseToDataTier, } from '../../../common/storage_explorer_types'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApmPluginRequestHandlerContext } from '../typings'; import { getTotalIndicesStats, getEstimatedSizeForDocumentsInIndex, getIndicesLifecycleStatus, getIndicesInfo, } from './indices_stats_helpers'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getStorageDetailsPerProcessorEvent({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_summary_statistics.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_summary_statistics.ts index ce236a6f1654e..23f5c4263a3f5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_summary_statistics.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_summary_statistics.ts @@ -12,12 +12,12 @@ import { getEstimatedSizeForDocumentsInIndex, getApmDiskSpacedUsedPct, } from './indices_stats_helpers'; -import { ApmPluginRequestHandlerContext } from '../typings'; +import type { ApmPluginRequestHandlerContext } from '../typings'; import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, } from '../../../common/storage_explorer_types'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; import { SERVICE_NAME, TIER, INDEX } from '../../../common/es_fields/apm'; import { environmentQuery } from '../../../common/utils/environment_query'; import { @@ -27,7 +27,7 @@ import { isRootTransaction, } from '../../lib/helpers/transactions'; import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; interface SharedOptions { apmEventClient: APMEventClient; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_total_transactions_per_service.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_total_transactions_per_service.ts index 7e4897096bdf8..d895077766e90 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_total_transactions_per_service.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/get_total_transactions_per_service.ts @@ -15,8 +15,8 @@ import { indexLifeCyclePhaseToDataTier, } from '../../../common/storage_explorer_types'; import { environmentQuery } from '../../../common/utils/environment_query'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getTotalTransactionsPerService({ apmEventClient, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/has_storage_explorer_privileges.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/has_storage_explorer_privileges.ts index e3ba5053640f8..9fffafc8ff0e8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/has_storage_explorer_privileges.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/has_storage_explorer_privileges.ts @@ -7,8 +7,8 @@ import { every } from 'lodash'; import { uniq } from 'lodash'; -import { ApmPluginRequestHandlerContext } from '../typings'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { ApmPluginRequestHandlerContext } from '../typings'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function hasStorageExplorerPrivileges({ context, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/indices_stats_helpers.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/indices_stats_helpers.ts index 85e3dbfb97ca1..9014daf5d16b3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/indices_stats_helpers.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/indices_stats_helpers.ts @@ -5,9 +5,9 @@ * 2.0. */ import { uniq, values, sumBy } from 'lodash'; -import { IndicesStatsIndicesStats } from '@elastic/elasticsearch/lib/api/types'; -import { ApmPluginRequestHandlerContext } from '../typings'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { IndicesStatsIndicesStats } from '@elastic/elasticsearch/lib/api/types'; +import type { ApmPluginRequestHandlerContext } from '../typings'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getTotalIndicesStats({ context, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.test.ts index 21b5b163e7663..243f28625eee9 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.test.ts @@ -7,7 +7,7 @@ import { isCrossClusterSearch } from './is_cross_cluster_search'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; describe('isCrossClusterSearch', () => { it('returns false when there are no remote clusters in APM indices', () => { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.ts index 409ba22335cc2..7a2f06638b073 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/is_cross_cluster_search.ts @@ -6,7 +6,7 @@ */ import { isCCSRemoteIndexName } from '@kbn/es-query'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getApmIndicesCombined } from './indices_stats_helpers'; export function isCrossClusterSearch(apmEventClient: APMEventClient) { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/route.ts index dfaf5dd8185ce..aea4e12f4aadb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/storage_explorer/route.ts @@ -19,16 +19,14 @@ import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, kueryRt, probabilityRt, rangeRt } from '../default_api_types'; import { getServiceNamesFromTermsEnum } from '../services/get_services/get_service_names_from_terms_enum'; -import { - getServiceStatistics, - StorageExplorerServiceStatisticsResponse, -} from './get_service_statistics'; -import { getSizeTimeseries, SizeTimeseriesResponse } from './get_size_timeseries'; -import { getStorageDetails, StorageDetailsResponse } from './get_storage_details'; -import { - getSummaryStatistics, - StorageExplorerSummaryStatisticsResponse, -} from './get_summary_statistics'; +import type { StorageExplorerServiceStatisticsResponse } from './get_service_statistics'; +import { getServiceStatistics } from './get_service_statistics'; +import type { SizeTimeseriesResponse } from './get_size_timeseries'; +import { getSizeTimeseries } from './get_size_timeseries'; +import type { StorageDetailsResponse } from './get_storage_details'; +import { getStorageDetails } from './get_storage_details'; +import type { StorageExplorerSummaryStatisticsResponse } from './get_summary_statistics'; +import { getSummaryStatistics } from './get_summary_statistics'; import { hasStorageExplorerPrivileges } from './has_storage_explorer_privileges'; import { isCrossClusterSearch } from './is_cross_cluster_search'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.test.ts index 3d5368133982c..f2a8b9873df1e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getSuggestionsWithTermsAggregation } from './get_suggestions_with_terms_aggregation'; const mockSearch = jest.fn(); diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.ts b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.ts index 9a2cea0ebf29d..ad33634726249 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_aggregation.ts @@ -8,7 +8,7 @@ import { rangeQuery, termQuery, wildcardQuery } from '@kbn/observability-plugin/ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; import { SERVICE_NAME } from '../../../common/es_fields/apm'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getSuggestionsWithTermsAggregation({ fieldName, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_enum.ts b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_enum.ts index 766369deb669f..64e95f986cbb5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_enum.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/suggestions/get_suggestions_with_terms_enum.ts @@ -6,7 +6,7 @@ */ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { getProcessorEventForTransactions } from '../../lib/helpers/transactions'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export async function getSuggestionsWithTermsEnum({ fieldName, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/time_range_metadata/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/time_range_metadata/route.ts index dcd5fa39e97f2..eb1092a886e79 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/time_range_metadata/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/time_range_metadata/route.ts @@ -6,7 +6,7 @@ */ import { toBooleanRt } from '@kbn/io-ts-utils'; import * as t from 'io-ts'; -import { TimeRangeMetadata } from '../../../common/time_range_metadata'; +import type { TimeRangeMetadata } from '../../../common/time_range_metadata'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getIsUsingServiceDestinationMetrics } from '../../lib/helpers/spans/get_is_using_service_destination_metrics'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_aggregated_critical_path.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_aggregated_critical_path.ts index 6a3af27aa838d..a030cf4e95945 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_aggregated_critical_path.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_aggregated_critical_path.ts @@ -7,20 +7,20 @@ import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { rangeQuery, termsQuery } from '@kbn/observability-plugin/server'; -import { Logger } from '@kbn/logging'; -import { +import type { Logger } from '@kbn/logging'; +import type { AGENT_NAME, PROCESSOR_EVENT, SERVICE_NAME, SPAN_NAME, SPAN_SUBTYPE, SPAN_TYPE, - TRACE_ID, TRANSACTION_NAME, TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import { TRACE_ID } from '../../../common/es_fields/apm'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; type OperationMetadata = { [SERVICE_NAME]: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_top_traces_primary_stats.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_top_traces_primary_stats.ts index ab929538cbb2b..c5e82706dd07f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_top_traces_primary_stats.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_top_traces_primary_stats.ts @@ -7,7 +7,7 @@ import { sortBy } from 'lodash'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; +import type { AgentName } from '../../../typings/es_schemas/ui/fields/agent'; import { withApmSpan } from '../../utils/with_apm_span'; import { asMutableArray } from '../../../common/utils/as_mutable_array'; import { environmentQuery } from '../../../common/utils/environment_query'; @@ -25,8 +25,8 @@ import { TRANSACTION_TYPE, TRANSACTION_NAME, } from '../../../common/es_fields/apm'; -import { RandomSampler } from '../../lib/helpers/get_random_sampler'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { RandomSampler } from '../../lib/helpers/get_random_sampler'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export type BucketKey = Record; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_items.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_items.ts index 55fb0aab47f38..23df885e65266 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_items.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_items.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { Logger } from '@kbn/logging'; -import { SortResults } from '@elastic/elasticsearch/lib/api/types'; -import { QueryDslQueryContainer, Sort } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { Logger } from '@kbn/logging'; +import type { SortResults } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer, Sort } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { last, omit } from 'lodash'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; import { asMutableArray } from '../../../common/utils/as_mutable_array'; -import { APMConfig } from '../..'; +import type { APMConfig } from '../..'; import { AGENT_NAME, CHILD_ID, @@ -50,12 +50,12 @@ import { TRANSACTION_RESULT, TRANSACTION_TYPE, } from '../../../common/es_fields/apm'; -import { +import type { WaterfallError, WaterfallSpan, WaterfallTransaction, } from '../../../common/waterfall/typings'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getSpanLinksCountById } from '../span_links/get_linked_children'; import { ApmDocumentType } from '../../../common/document_type'; import { RollupInterval } from '../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_samples_by_query.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_samples_by_query.ts index dd1330dea4e48..241f5e3d6db1f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_samples_by_query.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/get_trace_samples_by_query.ts @@ -6,7 +6,7 @@ */ import { rangeQuery, kqlQuery, termsQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; -import { Environment } from '../../../common/environment_rt'; +import type { Environment } from '../../../common/environment_rt'; import { TraceSearchType } from '../../../common/trace_explorer'; import { environmentQuery } from '../../../common/utils/environment_query'; import { @@ -17,7 +17,7 @@ import { TRANSACTION_SAMPLED, } from '../../../common/es_fields/apm'; import { asMutableArray } from '../../../common/utils/as_mutable_array'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; export type TraceSamplesResponse = Array<{ traceId: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/queries.test.ts index d94ae4f7082e9..7ec9b3e7b6269 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/queries.test.ts @@ -7,7 +7,8 @@ import { loggerMock } from '@kbn/logging-mocks'; import { getTraceItems } from './get_trace_items'; -import { SearchParamsMock, inspectSearchParams } from '../../utils/test_helpers'; +import type { SearchParamsMock } from '../../utils/test_helpers'; +import { inspectSearchParams } from '../../utils/test_helpers'; describe('trace queries', () => { let mock: SearchParamsMock; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/traces/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/traces/route.ts index f1a5dfdb25160..3a52e7b563e1e 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/traces/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/traces/route.ts @@ -16,18 +16,19 @@ import { type TransactionDetailRedirectInfo, getRootTransactionByTraceId, } from '../transactions/get_transaction_by_trace'; -import { - getTopTracesPrimaryStats, - TopTracesPrimaryStatsResponse, -} from './get_top_traces_primary_stats'; -import { getTraceItems, TraceItems } from './get_trace_items'; -import { getTraceSamplesByQuery, TraceSamplesResponse } from './get_trace_samples_by_query'; +import type { TopTracesPrimaryStatsResponse } from './get_top_traces_primary_stats'; +import { getTopTracesPrimaryStats } from './get_top_traces_primary_stats'; +import type { TraceItems } from './get_trace_items'; +import { getTraceItems } from './get_trace_items'; +import type { TraceSamplesResponse } from './get_trace_samples_by_query'; +import { getTraceSamplesByQuery } from './get_trace_samples_by_query'; import { getRandomSampler } from '../../lib/helpers/get_random_sampler'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; -import { CriticalPathResponse, getAggregatedCriticalPath } from './get_aggregated_critical_path'; +import type { CriticalPathResponse } from './get_aggregated_critical_path'; +import { getAggregatedCriticalPath } from './get_aggregated_critical_path'; import { getSpan } from '../transactions/get_span'; -import { Transaction } from '../../../typings/es_schemas/ui/transaction'; -import { Span } from '../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../typings/es_schemas/ui/transaction'; +import type { Span } from '../../../typings/es_schemas/ui/span'; import { getTransactionByName } from '../transactions/get_transaction_by_name'; const tracesRoute = createApmServerRoute({ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.test.ts index 7a01b793612fe..3a3bcdf3179c3 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.test.ts @@ -9,7 +9,7 @@ import { getTransactionBreakdown } from '.'; import * as constants from './constants'; import noDataResponse from './mock_responses/no_data.json'; import dataResponse from './mock_responses/data.json'; -import { APMConfig } from '../../..'; +import type { APMConfig } from '../../..'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; const mockConfig = new Proxy( diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.ts index a57d437b242aa..2c52566fd6ef8 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/breakdown/index.ts @@ -21,8 +21,8 @@ import { environmentQuery } from '../../../../common/utils/environment_query'; import { getMetricsDateHistogramParams } from '../../../lib/helpers/metrics'; import { MAX_KPIS } from './constants'; import { getVizColorForIndex } from '../../../../common/viz_colors'; -import { APMConfig } from '../../..'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMConfig } from '../../..'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export interface TransactionBreakdownResponse { timeseries: Array<{ diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_failed_transaction_rate_periods.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_failed_transaction_rate_periods.ts index c2ba9d1014a67..d577af3616dfc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_failed_transaction_rate_periods.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_failed_transaction_rate_periods.ts @@ -4,13 +4,13 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { getFailedTransactionRate } from '../../lib/transaction_groups/get_failed_transaction_rate'; import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; -import { Coordinate } from '../../../typings/timeseries'; -import { ApmServiceTransactionDocumentType } from '../../../common/document_type'; -import { RollupInterval } from '../../../common/rollup'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../typings/timeseries'; +import type { ApmServiceTransactionDocumentType } from '../../../common/document_type'; +import type { RollupInterval } from '../../../common/rollup'; export interface FailedTransactionRateResponse { currentPeriod: { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_latency_charts/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_latency_charts/index.ts index 70e9555af4849..c305ece61769a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_latency_charts/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_latency_charts/index.ts @@ -4,22 +4,22 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { kqlQuery, rangeQuery, termQuery } from '@kbn/observability-plugin/server'; -import { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; +import type { ApmServiceTransactionDocumentType } from '../../../../common/document_type'; import { FAAS_ID, SERVICE_NAME, TRANSACTION_NAME, TRANSACTION_TYPE, } from '../../../../common/es_fields/apm'; -import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; -import { RollupInterval } from '../../../../common/rollup'; +import type { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; +import type { RollupInterval } from '../../../../common/rollup'; import { environmentQuery } from '../../../../common/utils/environment_query'; import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms'; import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate'; -import { Coordinate } from '../../../../typings/timeseries'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { Coordinate } from '../../../../typings/timeseries'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getLatencyAggregation, getLatencyValue, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_span/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_span/index.ts index dc8ab0a6aab19..6e7161f09227a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_span/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_span/index.ts @@ -8,15 +8,15 @@ import { rangeQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; -import { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; +import type { FlattenedApmEvent } from '@kbn/apm-data-access-plugin/server/utils/unflatten_known_fields'; import { merge, omit } from 'lodash'; import { maybe } from '../../../../common/utils/maybe'; import { SPAN_ID, SPAN_STACKTRACE, TRACE_ID } from '../../../../common/es_fields/apm'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { getTransaction } from '../get_transaction'; -import { Span } from '../../../../typings/es_schemas/ui/span'; -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; +import type { Span } from '../../../../typings/es_schemas/ui/span'; +import type { Transaction } from '../../../../typings/es_schemas/ui/transaction'; export async function getSpan({ spanId, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction/index.ts index 8fc9d93ceff87..e4076e174f9f7 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction/index.ts @@ -27,7 +27,7 @@ import { SERVICE_LANGUAGE_NAME, } from '../../../../common/es_fields/apm'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { ApmDocumentType } from '../../../../common/document_type'; import { RollupInterval } from '../../../../common/rollup'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_name/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_name/index.ts index 160e3f736580a..50589033bb859 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_name/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_name/index.ts @@ -20,8 +20,8 @@ import { } from '../../../../common/es_fields/apm'; import { RollupInterval } from '../../../../common/rollup'; import { asMutableArray } from '../../../../common/utils/as_mutable_array'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; -import { TransactionDetailRedirectInfo } from '../get_transaction_by_trace'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { TransactionDetailRedirectInfo } from '../get_transaction_by_trace'; export async function getTransactionByName({ transactionName, diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_trace/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_trace/index.ts index 803ae19a2228e..e2a361d1b1aee 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_trace/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/get_transaction_by_trace/index.ts @@ -20,7 +20,7 @@ import { TRANSACTION_TYPE, SERVICE_NAME, } from '../../../../common/es_fields/apm'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; export interface TransactionDetailRedirectInfo { [AT_TIMESTAMP]: string; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/queries.test.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/queries.test.ts index e3c29c4225411..2b373d09595ee 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/queries.test.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/queries.test.ts @@ -6,7 +6,8 @@ */ import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; -import { inspectSearchParams, SearchParamsMock } from '../../utils/test_helpers'; +import type { SearchParamsMock } from '../../utils/test_helpers'; +import { inspectSearchParams } from '../../utils/test_helpers'; import { getTransactionBreakdown } from './breakdown'; import { getTransaction } from './get_transaction'; import { getTraceSamples } from './trace_samples'; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/route.ts index 51ada72e38588..44088b5f14026 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/route.ts @@ -7,18 +7,14 @@ import { jsonRt, toBooleanRt, toNumberRt } from '@kbn/io-ts-utils'; import * as t from 'io-ts'; import { offsetRt } from '../../../common/comparison_rt'; -import { - LatencyAggregationType, - latencyAggregationTypeRt, -} from '../../../common/latency_aggregation_types'; +import type { LatencyAggregationType } from '../../../common/latency_aggregation_types'; +import { latencyAggregationTypeRt } from '../../../common/latency_aggregation_types'; import { joinByKey } from '../../../common/utils/join_by_key'; import { getApmAlertsClient } from '../../lib/helpers/get_apm_alerts_client'; import { getApmEventClient } from '../../lib/helpers/get_apm_event_client'; import { getSearchTransactionsEvents } from '../../lib/helpers/transactions'; -import { - ColdstartRateResponse, - getColdstartRatePeriods, -} from '../../lib/transaction_groups/get_coldstart_rate'; +import type { ColdstartRateResponse } from '../../lib/transaction_groups/get_coldstart_rate'; +import { getColdstartRatePeriods } from '../../lib/transaction_groups/get_coldstart_rate'; import { createApmServerRoute } from '../apm_routes/create_apm_server_route'; import { environmentRt, @@ -28,22 +24,19 @@ import { serviceTransactionDataSourceRt, transactionDataSourceRt, } from '../default_api_types'; -import { - getServiceTransactionGroups, - ServiceTransactionGroupsResponse, -} from '../services/get_service_transaction_groups'; +import type { ServiceTransactionGroupsResponse } from '../services/get_service_transaction_groups'; +import { getServiceTransactionGroups } from '../services/get_service_transaction_groups'; import { getServiceTransactionGroupsAlerts } from '../services/get_service_transaction_groups_alerts'; -import { - getServiceTransactionGroupDetailedStatisticsPeriods, - ServiceTransactionGroupDetailedStatisticsResponse, -} from '../services/get_service_transaction_group_detailed_statistics'; -import { getTransactionBreakdown, TransactionBreakdownResponse } from './breakdown'; -import { - FailedTransactionRateResponse, - getFailedTransactionRatePeriods, -} from './get_failed_transaction_rate_periods'; -import { getLatencyPeriods, TransactionLatencyResponse } from './get_latency_charts'; -import { getTraceSamples, TransactionTraceSamplesResponse } from './trace_samples'; +import type { ServiceTransactionGroupDetailedStatisticsResponse } from '../services/get_service_transaction_group_detailed_statistics'; +import { getServiceTransactionGroupDetailedStatisticsPeriods } from '../services/get_service_transaction_group_detailed_statistics'; +import type { TransactionBreakdownResponse } from './breakdown'; +import { getTransactionBreakdown } from './breakdown'; +import type { FailedTransactionRateResponse } from './get_failed_transaction_rate_periods'; +import { getFailedTransactionRatePeriods } from './get_failed_transaction_rate_periods'; +import type { TransactionLatencyResponse } from './get_latency_charts'; +import { getLatencyPeriods } from './get_latency_charts'; +import type { TransactionTraceSamplesResponse } from './trace_samples'; +import { getTraceSamples } from './trace_samples'; export interface MergedServiceTransactionGroupsResponse extends Omit { diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/trace_samples/index.ts b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/trace_samples/index.ts index 18dad19635333..8b9f18f43092b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/transactions/trace_samples/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/transactions/trace_samples/index.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Sort, QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { Sort, QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import { unflattenKnownApmEventFields } from '@kbn/apm-data-access-plugin/server/utils'; @@ -19,7 +19,7 @@ import { TRANSACTION_TYPE, } from '../../../../common/es_fields/apm'; import { environmentQuery } from '../../../../common/utils/environment_query'; -import { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../../lib/helpers/create_es_client/create_apm_event_client'; import { withApmSpan } from '../../../utils/with_apm_span'; const TRACE_SAMPLES_SIZE = 500; diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/typings.ts b/x-pack/solutions/observability/plugins/apm/server/routes/typings.ts index 830810af60cb5..117fd820f3e3a 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/typings.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/typings.ts @@ -16,7 +16,7 @@ import type { import type { RacApiRequestHandlerContext } from '@kbn/rule-registry-plugin/server'; import type { LicensingApiRequestHandlerContext } from '@kbn/licensing-plugin/server'; import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { RulesClientApi } from '@kbn/alerting-plugin/server/types'; +import type { RulesClientApi } from '@kbn/alerting-plugin/server/types'; export type ApmPluginRequestHandlerContext = CustomRequestHandlerContext<{ licensing: Pick; diff --git a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_custom_dashboards.ts b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_custom_dashboards.ts index 8d4b20757f136..56e9a8903c5de 100644 --- a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_custom_dashboards.ts +++ b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_custom_dashboards.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { schema } from '@kbn/config-schema'; import { APM_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../common/custom_dashboards'; diff --git a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_server_settings.ts b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_server_settings.ts index 08be3d98c9cfc..a8592bac69c4f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_server_settings.ts +++ b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_server_settings.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { schema } from '@kbn/config-schema'; import { APM_SERVER_SCHEMA_SAVED_OBJECT_TYPE } from '../../common/apm_saved_object_constants'; diff --git a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_service_groups.ts b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_service_groups.ts index 180417d3dc42e..a6721af496453 100644 --- a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_service_groups.ts +++ b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_service_groups.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import type { SavedObjectMigrationFn } from '@kbn/core/server'; import { schema } from '@kbn/config-schema'; diff --git a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_telemetry.ts b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_telemetry.ts index 64f689b4317f5..7c78d8551920c 100644 --- a/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_telemetry.ts +++ b/x-pack/solutions/observability/plugins/apm/server/saved_objects/apm_telemetry.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { schema } from '@kbn/config-schema'; import { APM_TELEMETRY_SAVED_OBJECT_ID } from '../../common/apm_saved_object_constants'; diff --git a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/call_kibana.ts b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/call_kibana.ts index 87a28bfde6663..9a24c55f4456f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/call_kibana.ts +++ b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/call_kibana.ts @@ -4,9 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import axios, { AxiosRequestConfig, AxiosError } from 'axios'; +import type { AxiosRequestConfig, AxiosError } from 'axios'; +import axios from 'axios'; import { once } from 'lodash'; -import { Elasticsearch, Kibana } from '../create_apm_users'; +import type { Elasticsearch, Kibana } from '../create_apm_users'; const DEFAULT_HEADERS = { 'kbn-xsrf': 'true', diff --git a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_custom_role.ts b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_custom_role.ts index ac906fcbfb5e2..0f1675e253ebc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_custom_role.ts +++ b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_custom_role.ts @@ -7,9 +7,10 @@ import { Client } from '@elastic/elasticsearch'; import { omit } from 'lodash'; -import { Elasticsearch, Kibana } from '../create_apm_users'; +import type { Elasticsearch, Kibana } from '../create_apm_users'; import { callKibana } from './call_kibana'; -import { customRoles, ApmCustomRolename } from '../authentication'; +import type { ApmCustomRolename } from '../authentication'; +import { customRoles } from '../authentication'; export async function createCustomRole({ elasticsearch, diff --git a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_or_update_user.ts b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_or_update_user.ts index 90a011480247e..efc6c071dbb47 100644 --- a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_or_update_user.ts +++ b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/create_or_update_user.ts @@ -8,7 +8,7 @@ /* eslint-disable no-console */ import { difference, union } from 'lodash'; -import { Elasticsearch, Kibana } from '../create_apm_users'; +import type { Elasticsearch, Kibana } from '../create_apm_users'; import { callKibana, isAxiosError } from './call_kibana'; interface User { diff --git a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/get_version.ts b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/get_version.ts index 8329d9eb7d2b2..331ad795eb88f 100644 --- a/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/get_version.ts +++ b/x-pack/solutions/observability/plugins/apm/server/test_helpers/create_apm_users/helpers/get_version.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Elasticsearch, Kibana } from '../create_apm_users'; +import type { Elasticsearch, Kibana } from '../create_apm_users'; import { AbortError } from './call_kibana'; import { callKibana, isAxiosError } from './call_kibana'; diff --git a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/elastic_cloud.ts b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/elastic_cloud.ts index aaeaf2c7380a4..a8049ae15d692 100644 --- a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/elastic_cloud.ts +++ b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/elastic_cloud.ts @@ -6,8 +6,9 @@ */ import { i18n } from '@kbn/i18n'; -import { INSTRUCTION_VARIANT, TutorialSchema, InstructionSetSchema } from '@kbn/home-plugin/server'; -import { CloudSetup } from '@kbn/cloud-plugin/server'; +import type { TutorialSchema, InstructionSetSchema } from '@kbn/home-plugin/server'; +import { INSTRUCTION_VARIANT } from '@kbn/home-plugin/server'; +import type { CloudSetup } from '@kbn/cloud-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { createNodeAgentInstructions, diff --git a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem.ts b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem.ts index 0cd7ce8e9c26b..ae76e455cefe5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem.ts +++ b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem.ts @@ -6,7 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { INSTRUCTION_VARIANT, InstructionsSchema } from '@kbn/home-plugin/server'; +import type { InstructionsSchema } from '@kbn/home-plugin/server'; +import { INSTRUCTION_VARIANT } from '@kbn/home-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { createDjangoAgentInstructions, diff --git a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem_apm_server_instruction_set.ts b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem_apm_server_instruction_set.ts index 1bf4c92be43b5..6219dcca9db46 100644 --- a/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem_apm_server_instruction_set.ts +++ b/x-pack/solutions/observability/plugins/apm/server/tutorial/envs/on_prem_apm_server_instruction_set.ts @@ -6,7 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { InstructionsSchema, INSTRUCTION_VARIANT } from '@kbn/home-plugin/server'; +import type { InstructionsSchema } from '@kbn/home-plugin/server'; +import { INSTRUCTION_VARIANT } from '@kbn/home-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; import { createDownloadServerDeb, diff --git a/x-pack/solutions/observability/plugins/apm/server/tutorial/index.ts b/x-pack/solutions/observability/plugins/apm/server/tutorial/index.ts index bff812a93625d..b6198d95d8bd6 100644 --- a/x-pack/solutions/observability/plugins/apm/server/tutorial/index.ts +++ b/x-pack/solutions/observability/plugins/apm/server/tutorial/index.ts @@ -6,10 +6,11 @@ */ import { i18n } from '@kbn/i18n'; -import { ArtifactsSchema, TutorialsCategory, TutorialSchema } from '@kbn/home-plugin/server'; -import { CloudSetup } from '@kbn/cloud-plugin/server'; +import type { ArtifactsSchema, TutorialSchema } from '@kbn/home-plugin/server'; +import { TutorialsCategory } from '@kbn/home-plugin/server'; +import type { CloudSetup } from '@kbn/cloud-plugin/server'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APMConfig } from '..'; +import type { APMConfig } from '..'; import { createElasticCloudInstructions } from './envs/elastic_cloud'; import { onPremInstructions } from './envs/on_prem'; diff --git a/x-pack/solutions/observability/plugins/apm/server/types.ts b/x-pack/solutions/observability/plugins/apm/server/types.ts index ba1d17d6af6b9..5de9e10375308 100644 --- a/x-pack/solutions/observability/plugins/apm/server/types.ts +++ b/x-pack/solutions/observability/plugins/apm/server/types.ts @@ -23,14 +23,14 @@ import type { ActionsPlugin } from '@kbn/actions-plugin/server'; import type { CloudSetup } from '@kbn/cloud-plugin/server'; import type { DataViewsServerPluginStart } from '@kbn/data-views-plugin/server'; import type { FeaturesPluginSetup, FeaturesPluginStart } from '@kbn/features-plugin/server'; -import { HomeServerPluginSetup, HomeServerPluginStart } from '@kbn/home-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { HomeServerPluginSetup, HomeServerPluginStart } from '@kbn/home-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; import type { AlertingServerSetup, AlertingServerStart } from '@kbn/alerting-plugin/server'; -import { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/server'; -import { MlPluginSetup, MlPluginStart } from '@kbn/ml-plugin/server'; -import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; -import { +import type { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { MlPluginSetup, MlPluginStart } from '@kbn/ml-plugin/server'; +import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; +import type { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { FleetSetupContract as FleetPluginSetup, FleetStartContract as FleetPluginStart, } from '@kbn/fleet-plugin/server'; @@ -60,7 +60,7 @@ import type { ProfilingDataAccessPluginSetup, ProfilingDataAccessPluginStart, } from '@kbn/profiling-data-access-plugin/server'; -import { APMConfig } from '.'; +import type { APMConfig } from '.'; export interface APMPluginSetup { config$: Observable; diff --git a/x-pack/solutions/observability/plugins/apm/server/utils/create_typed_es_client.ts b/x-pack/solutions/observability/plugins/apm/server/utils/create_typed_es_client.ts index a834a2b236ef4..22cd3961ffbcb 100644 --- a/x-pack/solutions/observability/plugins/apm/server/utils/create_typed_es_client.ts +++ b/x-pack/solutions/observability/plugins/apm/server/utils/create_typed_es_client.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; type RequiredParams = ESSearchRequest & { size: number; diff --git a/x-pack/solutions/observability/plugins/apm/server/utils/test_helpers.tsx b/x-pack/solutions/observability/plugins/apm/server/utils/test_helpers.tsx index 24624b1d16519..459b53534a5b5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/utils/test_helpers.tsx +++ b/x-pack/solutions/observability/plugins/apm/server/utils/test_helpers.tsx @@ -7,10 +7,10 @@ import type { ESSearchRequest, ESSearchResponse } from '@kbn/es-types'; import type { APMIndices } from '@kbn/apm-data-access-plugin/server'; -import { APMConfig } from '..'; -import { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; -import { APMInternalESClient } from '../lib/helpers/create_es_client/create_internal_es_client'; -import { ApmAlertsClient } from '../lib/helpers/get_apm_alerts_client'; +import type { APMConfig } from '..'; +import type { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMInternalESClient } from '../lib/helpers/create_es_client/create_internal_es_client'; +import type { ApmAlertsClient } from '../lib/helpers/get_apm_alerts_client'; interface Options { mockResponse?: (request: ESSearchRequest) => ESSearchResponse; diff --git a/x-pack/solutions/observability/plugins/apm/tsconfig.json b/x-pack/solutions/observability/plugins/apm/tsconfig.json index 8f5c804c267a7..6d3bdcb18df55 100644 --- a/x-pack/solutions/observability/plugins/apm/tsconfig.json +++ b/x-pack/solutions/observability/plugins/apm/tsconfig.json @@ -130,7 +130,8 @@ "@kbn/saved-search-component", "@kbn/saved-search-plugin", "@kbn/charts-theme", - "@kbn/entityManager-plugin", + "@kbn/response-ops-rule-params", + "@kbn/entityManager-plugin" ], "exclude": ["target/**/*"] } diff --git a/x-pack/solutions/observability/plugins/apm/typings/apm_rum_react.d.ts b/x-pack/solutions/observability/plugins/apm/typings/apm_rum_react.d.ts index ed52174e30692..f4a5b5e9d0207 100644 --- a/x-pack/solutions/observability/plugins/apm/typings/apm_rum_react.d.ts +++ b/x-pack/solutions/observability/plugins/apm/typings/apm_rum_react.d.ts @@ -6,7 +6,7 @@ */ declare module '@elastic/apm-rum-react' { - import { RouteProps } from 'react-router-dom'; + import type { RouteProps } from 'react-router-dom'; export const ApmRoute: React.ComponentClass; } diff --git a/x-pack/solutions/observability/plugins/apm/typings/timeseries.ts b/x-pack/solutions/observability/plugins/apm/typings/timeseries.ts index f0525590dfa8a..64ce2b59fe604 100644 --- a/x-pack/solutions/observability/plugins/apm/typings/timeseries.ts +++ b/x-pack/solutions/observability/plugins/apm/typings/timeseries.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { AccessorFn, AreaSeriesStyle, Fit, @@ -15,7 +15,7 @@ import { SeriesColorAccessorFn, SeriesColorsArray, } from '@elastic/charts'; -import { Maybe } from './common'; +import type { Maybe } from './common'; export interface Coordinate { x: number; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/common/time_range_metadata.ts b/x-pack/solutions/observability/plugins/apm_data_access/common/time_range_metadata.ts index f13ab5a89d6d1..d9216f4123d9a 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/common/time_range_metadata.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/common/time_range_metadata.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ApmDataSource } from './data_source'; +import type { ApmDataSource } from './data_source'; export interface TimeRangeMetadata { isUsingServiceDestinationMetrics: boolean; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_bucket_size/calculate_auto.ts b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_bucket_size/calculate_auto.ts index 720a924dddcb5..1a550f464f237 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_bucket_size/calculate_auto.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_bucket_size/calculate_auto.ts @@ -5,7 +5,8 @@ * 2.0. */ -import moment, { Duration } from 'moment'; +import type { Duration } from 'moment'; +import moment from 'moment'; const d = moment.duration; type RoundingRule = [Duration, Duration]; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.test.ts b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.test.ts index 7bc39aabb5c05..90846c4ed033a 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.test.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.test.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ApmDataSourceWithSummary } from '../data_source'; +import type { ApmDataSourceWithSummary } from '../data_source'; import { ApmDocumentType } from '../document_type'; import { RollupInterval } from '../rollup'; import { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.ts b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.ts index 480b7bf4a7fb1..4b6706688114c 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/common/utils/get_preferred_bucket_size_and_data_source.ts @@ -6,7 +6,7 @@ */ import { parseInterval } from '@kbn/data-plugin/common'; import { orderBy, last } from 'lodash'; -import { ApmDataSourceWithSummary } from '../data_source'; +import type { ApmDataSourceWithSummary } from '../data_source'; import { ApmDocumentType } from '../document_type'; import { RollupInterval } from '../rollup'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/index.ts index 6b6385ded4ce4..a05263acf6c35 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/index.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; -import { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; +import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; const configSchema = schema.object({ indices: schema.object({ diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/check_privileges.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/check_privileges.ts index 6b8e734a10b4e..4a665693b463b 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/check_privileges.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/check_privileges.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core-http-server'; -import { SecurityPluginStart } from '@kbn/security-plugin-types-server'; +import type { KibanaRequest } from '@kbn/core-http-server'; +import type { SecurityPluginStart } from '@kbn/security-plugin-types-server'; import { mapValues } from 'lodash'; -import { APMIndices } from '..'; +import type { APMIndices } from '..'; export interface ApmDataAccessPrivilegesCheck { request: KibanaRequest; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/call_async_with_debug.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/call_async_with_debug.ts index 9fbd6eb4cefa5..58fd18f1d4472 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/call_async_with_debug.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/call_async_with_debug.ts @@ -10,7 +10,7 @@ import chalk from 'chalk'; import type { KibanaRequest } from '@kbn/core/server'; import { RequestStatus } from '@kbn/inspector-plugin/common'; -import { WrappedElasticsearchClientError } from '@kbn/observability-plugin/server'; +import type { WrappedElasticsearchClientError } from '@kbn/observability-plugin/server'; import { getInspectResponse } from '@kbn/observability-shared-plugin/common'; import type { InspectResponse } from '@kbn/observability-plugin/typings/common'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.test.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.test.ts index 79084daeb22e6..788a2298b5838 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.test.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.test.ts @@ -15,7 +15,7 @@ import type { } from '@elastic/elasticsearch/lib/api/types'; import supertest from 'supertest'; import { APMEventClient, type APMEventESSearchRequest, type APMEventFieldCapsRequest } from '.'; -import { APMIndices } from '../../../..'; +import type { APMIndices } from '../../../..'; import * as cancelEsRequestOnAbortModule from '../cancel_es_request_on_abort'; import * as observabilityPluginModule from '@kbn/observability-plugin/server'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.ts index 9f04bb9a750f3..0d671447a1ce3 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/create_es_client/create_apm_event_client/index.ts @@ -19,7 +19,7 @@ import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { unwrapEsResponse } from '@kbn/observability-plugin/server'; import { compact, omit } from 'lodash'; -import { ValuesType } from 'utility-types'; +import type { ValuesType } from 'utility-types'; import type { APMError, Metric, Span, Transaction, Event } from '@kbn/apm-types/es_schemas_ui'; import type { InspectResponse } from '@kbn/observability-plugin/typings/common'; import type { DataTier } from '@kbn/observability-shared-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/transactions/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/transactions/index.ts index c93d549e2b1dd..8e360dce2cdb3 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/transactions/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/lib/helpers/transactions/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { TRANSACTION_DURATION_HISTOGRAM, METRICSET_INTERVAL, diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/plugin.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/plugin.ts index 680079d080c82..ce449ea085aa0 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/plugin.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { PluginInitializerContext, CoreSetup, CoreStart, @@ -13,8 +13,8 @@ import { SavedObjectsClientContract, Logger, } from '@kbn/core/server'; -import { APMDataAccessConfig } from '.'; -import { +import type { APMDataAccessConfig } from '.'; +import type { ApmDataAccessPluginSetup, ApmDataAccessPluginStart, ApmDataAccessServerDependencies, @@ -25,7 +25,8 @@ import { getApmIndicesSavedObject, } from './saved_objects/apm_indices'; import { getServices } from './services/get_services'; -import { ApmDataAccessPrivilegesCheck, checkPrivileges } from './lib/check_privileges'; +import type { ApmDataAccessPrivilegesCheck } from './lib/check_privileges'; +import { checkPrivileges } from './lib/check_privileges'; export class ApmDataAccessPlugin implements Plugin diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/apm_indices.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/apm_indices.ts index 6fe10e655fbe2..bc9c95923b9b3 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/apm_indices.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/apm_indices.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { schema } from '@kbn/config-schema'; import { SavedObjectsErrorHelpers } from '@kbn/core/server'; -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { updateApmOssIndexPaths } from './migrations/update_apm_oss_index_paths'; -import { APMIndices } from '..'; +import type { APMIndices } from '..'; export const APM_INDEX_SETTINGS_SAVED_OBJECT_TYPE = 'apm-indices'; export const APM_INDEX_SETTINGS_SAVED_OBJECT_ID = 'apm-indices'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/migrations/migrate_legacy_apm_indices_to_space_aware.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/migrations/migrate_legacy_apm_indices_to_space_aware.ts index 6e1b989146e04..8acba04651bc8 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/migrations/migrate_legacy_apm_indices_to_space_aware.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/migrations/migrate_legacy_apm_indices_to_space_aware.ts @@ -8,8 +8,8 @@ import type { CoreStart, Logger, ISavedObjectsRepository } from '@kbn/core/serve import { SavedObjectsErrorHelpers } from '@kbn/core/server'; import type { APMIndices } from '../..'; +import type { APMIndicesSavedObjectBody } from '../apm_indices'; import { - APMIndicesSavedObjectBody, APM_INDEX_SETTINGS_SAVED_OBJECT_ID, APM_INDEX_SETTINGS_SAVED_OBJECT_TYPE, } from '../apm_indices'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/save_apm_indices.test.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/save_apm_indices.test.ts index 22278e6c16b56..614117aec2de5 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/save_apm_indices.test.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/saved_objects/save_apm_indices.test.ts @@ -6,7 +6,7 @@ */ import { saveApmIndices } from './apm_indices'; -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; describe('saveApmIndices', () => { it('should trim and strip empty settings', async () => { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/get_document_sources.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/get_document_sources.ts index 3e1c9fcbb1c78..4491b679f7198 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/get_document_sources.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/get_document_sources.ts @@ -7,10 +7,10 @@ import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { RollupInterval } from '../../../common/rollup'; -import { TimeRangeMetadata } from '../../../common/time_range_metadata'; +import type { TimeRangeMetadata } from '../../../common/time_range_metadata'; import { isDurationSummaryNotSupportedFilter } from '../../lib/helpers/transactions'; import { ApmDocumentType } from '../../../common/document_type'; -import { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client'; import { getConfigForDocumentType } from '../../lib/helpers/create_es_client/document_type'; const QUERY_INDEX = { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/index.ts index e8bee4e431dc3..3e38941f55cba 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_sources/index.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ApmDataAccessServicesParams } from '../get_services'; +import type { ApmDataAccessServicesParams } from '../get_services'; import { getDocumentSources, type DocumentSourcesRequest } from './get_document_sources'; export function createGetDocumentSources({ apmEventClient }: ApmDataAccessServicesParams) { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_type_config/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_type_config/index.ts index 52bf53291fb0c..f9b9ad8052d5e 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_type_config/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_document_type_config/index.ts @@ -7,7 +7,7 @@ import { getBucketSize, type TimeRangeMetadata } from '../../../common'; import { getPreferredBucketSizeAndDataSource } from '../../../common/utils/get_preferred_bucket_size_and_data_source'; -import { ApmDocumentType } from '../../../common/document_type'; +import type { ApmDocumentType } from '../../../common/document_type'; import { getConfigForDocumentType } from '../../lib/helpers/create_es_client/document_type'; export interface GetDocumentTypeParams { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_names/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_names/index.ts index 938ec68a7fc5a..f51bcb502190a 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_names/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_names/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { rangeQuery } from '@kbn/observability-plugin/server'; import { HOST_NAME } from '@kbn/apm-types/es_fields'; import { castArray } from 'lodash'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_services/index.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_services/index.ts index b83320d162f3c..eb2383e7e23ff 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_services/index.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_host_services/index.ts @@ -13,10 +13,10 @@ import { METRICSET_NAME, SERVICE_NAME, } from '@kbn/apm-types/es_fields'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { TimeRangeMetadata } from '../../../common'; import { RollupInterval, - TimeRangeMetadata, getBucketSize, getPreferredBucketSizeAndDataSource, } from '../../../common'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_services.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_services.ts index 71ae961b256b6..082c8c474584f 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_services.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/services/get_services.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; +import type { APMEventClient } from '../lib/helpers/create_es_client/create_apm_event_client'; import { createGetDocumentSources } from './get_document_sources'; import { getDocumentTypeConfig } from './get_document_type_config'; import { createGetHostNames } from './get_host_names'; diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/types.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/types.ts index f10c23c1fd994..46ed3ab0dd4c4 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/types.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/types.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; +import type { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; import type { SecurityPluginStart } from '@kbn/security-plugin-types-server'; import type { APMIndices } from '.'; -import { getServices } from './services/get_services'; +import type { getServices } from './services/get_services'; import type { ApmDataAccessPrivilegesCheck } from './lib/check_privileges'; export interface ApmDataAccessPluginSetup { diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/utils/unflatten_known_fields.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/utils/unflatten_known_fields.ts index 6c9fe4c39b001..4f98fc40b50d9 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/utils/unflatten_known_fields.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/utils/unflatten_known_fields.ts @@ -11,9 +11,9 @@ import type { ValuesType } from 'utility-types'; import { unflattenObject } from '@kbn/observability-utils-common/object/unflatten_object'; import { mergePlainObjects } from '@kbn/observability-utils-common/object/merge_plain_objects'; import { castArray, isArray } from 'lodash'; -import { AgentName } from '@kbn/elastic-agent-utils'; -import { EventOutcome } from '@kbn/apm-types/src/es_schemas/raw/fields'; -import { ProcessorEvent } from '@kbn/observability-plugin/common'; +import type { AgentName } from '@kbn/elastic-agent-utils'; +import type { EventOutcome } from '@kbn/apm-types/src/es_schemas/raw/fields'; +import type { ProcessorEvent } from '@kbn/observability-plugin/common'; const { CLOUD, diff --git a/x-pack/solutions/observability/plugins/apm_data_access/server/utils/with_apm_span.ts b/x-pack/solutions/observability/plugins/apm_data_access/server/utils/with_apm_span.ts index 1343970f04a3f..0353aa36fd471 100644 --- a/x-pack/solutions/observability/plugins/apm_data_access/server/utils/with_apm_span.ts +++ b/x-pack/solutions/observability/plugins/apm_data_access/server/utils/with_apm_span.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { withSpan, SpanOptions, parseSpanOptions } from '@kbn/apm-utils'; +import type { SpanOptions } from '@kbn/apm-utils'; +import { withSpan, parseSpanOptions } from '@kbn/apm-utils'; export function withApmSpan( optionsOrName: SpanOptions | string, diff --git a/x-pack/solutions/observability/plugins/infra/common/alerting/logs/log_threshold/query_helpers.ts b/x-pack/solutions/observability/plugins/infra/common/alerting/logs/log_threshold/query_helpers.ts index e2e656fe1831c..689b50eea22b3 100644 --- a/x-pack/solutions/observability/plugins/infra/common/alerting/logs/log_threshold/query_helpers.ts +++ b/x-pack/solutions/observability/plugins/infra/common/alerting/logs/log_threshold/query_helpers.ts @@ -7,7 +7,8 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { RuleParams, Comparator, CountCriteria, Criterion, ExecutionTimeRange } from '.'; +import type { RuleParams, CountCriteria, Criterion, ExecutionTimeRange } from '.'; +import { Comparator } from '.'; import { getIntervalInSeconds } from '../../../utils/get_interval_in_seconds'; diff --git a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.test.ts b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.test.ts index ea483e129e2e7..7e819bb195d95 100644 --- a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.test.ts +++ b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; import { ALERT_RULE_PARAMETERS, TIMESTAMP } from '@kbn/rule-data-utils'; import rison from '@kbn/rison'; import { @@ -13,7 +13,7 @@ import { flatAlertRuleParams, getMetricsViewInAppUrl, } from './alert_link'; -import { +import type { InventoryLocator, AssetDetailsLocator, InventoryLocatorParams, diff --git a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.ts b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.ts index a0df751014e78..a1098638f34a5 100644 --- a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.ts +++ b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/alert_link.ts @@ -8,12 +8,12 @@ import { ALERT_RULE_PARAMETERS, TIMESTAMP } from '@kbn/rule-data-utils'; import moment from 'moment'; import { encode } from '@kbn/rison'; -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; import { type InventoryItemType, findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import type { LocatorPublic } from '@kbn/share-plugin/common'; import { SupportedAssetTypes } from '@kbn/observability-shared-plugin/common'; +import type { MetricsExplorerLocatorParams } from '@kbn/observability-shared-plugin/common'; import { - MetricsExplorerLocatorParams, type AssetDetailsLocatorParams, type InventoryLocatorParams, } from '@kbn/observability-shared-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/types.ts b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/types.ts index d1adb75d51134..143e6f8ebb476 100644 --- a/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/types.ts +++ b/x-pack/solutions/observability/plugins/infra/common/alerting/metrics/types.ts @@ -4,12 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; -import { COMPARATORS } from '@kbn/alerting-comparators'; -import { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { COMPARATORS } from '@kbn/alerting-comparators'; +import type { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; export { INFRA_RULE_TYPE_IDS } from '@kbn/rule-data-utils'; -import { SnapshotCustomMetricInput } from '../../http_api'; +import type { SnapshotCustomMetricInput } from '../../http_api'; export const METRIC_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.threshold'; export const METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.inventory.threshold'; diff --git a/x-pack/solutions/observability/plugins/infra/common/constants.ts b/x-pack/solutions/observability/plugins/infra/common/constants.ts index c86d39cddb3fb..24e77e870fac3 100644 --- a/x-pack/solutions/observability/plugins/infra/common/constants.ts +++ b/x-pack/solutions/observability/plugins/infra/common/constants.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { AlertConsumers, ValidFeatureId } from '@kbn/rule-data-utils'; +import type { ValidFeatureId } from '@kbn/rule-data-utils'; +import { AlertConsumers } from '@kbn/rule-data-utils'; export const METRICS_INDEX_PATTERN = 'metrics-*,metricbeat-*'; export const LOGS_INDEX_PATTERN = 'logs-*,filebeat-*,kibana_sample_data_logs*'; diff --git a/x-pack/solutions/observability/plugins/infra/common/custom_dashboards.ts b/x-pack/solutions/observability/plugins/infra/common/custom_dashboards.ts index 0861934653fe9..886f9f396a53d 100644 --- a/x-pack/solutions/observability/plugins/infra/common/custom_dashboards.ts +++ b/x-pack/solutions/observability/plugins/infra/common/custom_dashboards.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; export type InfraCustomDashboardAssetType = InventoryItemType; diff --git a/x-pack/solutions/observability/plugins/infra/common/formatters/get_custom_metric_label.ts b/x-pack/solutions/observability/plugins/infra/common/formatters/get_custom_metric_label.ts index 67c56e413922a..c644482a42345 100644 --- a/x-pack/solutions/observability/plugins/infra/common/formatters/get_custom_metric_label.ts +++ b/x-pack/solutions/observability/plugins/infra/common/formatters/get_custom_metric_label.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { SnapshotCustomMetricInput } from '../http_api/snapshot_api'; +import type { SnapshotCustomMetricInput } from '../http_api/snapshot_api'; export const getCustomMetricLabel = (metric: SnapshotCustomMetricInput) => { const METRIC_LABELS = { diff --git a/x-pack/solutions/observability/plugins/infra/common/formatters/index.ts b/x-pack/solutions/observability/plugins/infra/common/formatters/index.ts index 4c60a46ffe2af..ffcd4b0ba9f60 100644 --- a/x-pack/solutions/observability/plugins/infra/common/formatters/index.ts +++ b/x-pack/solutions/observability/plugins/infra/common/formatters/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryFormatterType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryFormatterType } from '@kbn/metrics-data-access-plugin/common'; import { createBytesFormatter } from './bytes'; import { formatNumber } from './number'; import { formatPercent } from './percent'; diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/create_inventory_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/create_inventory_view.ts index 67a3bd7df1a70..ed3cfbe867be4 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/create_inventory_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/create_inventory_view.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { inventoryViewAttributesRT, inventoryViewRT } from '../../../inventory_views'; +import type { inventoryViewRT } from '../../../inventory_views'; +import { inventoryViewAttributesRT } from '../../../inventory_views'; export const createInventoryViewAttributesRequestPayloadRT = rt.exact( rt.intersection([ diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/get_inventory_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/get_inventory_view.ts index a13541c1e8a44..203da3c86bca7 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/get_inventory_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/get_inventory_view.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { inventoryViewRT } from '../../../inventory_views'; +import type { inventoryViewRT } from '../../../inventory_views'; export const getInventoryViewRequestParamsRT = rt.type({ inventoryViewId: rt.string, diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/update_inventory_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/update_inventory_view.ts index 5698ab2a0b2c9..270f777c5dbd4 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/update_inventory_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/inventory_views/v1/update_inventory_view.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { inventoryViewAttributesRT, inventoryViewRT } from '../../../inventory_views'; +import type { inventoryViewRT } from '../../../inventory_views'; +import { inventoryViewAttributesRT } from '../../../inventory_views'; export const updateInventoryViewAttributesRequestPayloadRT = rt.exact( rt.intersection([ diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/create_metrics_explorer_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/create_metrics_explorer_view.ts index 1947f013bc389..df69566008d7a 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/create_metrics_explorer_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/create_metrics_explorer_view.ts @@ -6,10 +6,8 @@ */ import * as rt from 'io-ts'; -import { - metricsExplorerViewAttributesRT, - metricsExplorerViewRT, -} from '../../../metrics_explorer_views'; +import type { metricsExplorerViewRT } from '../../../metrics_explorer_views'; +import { metricsExplorerViewAttributesRT } from '../../../metrics_explorer_views'; export const createMetricsExplorerViewAttributesRequestPayloadRT = rt.intersection([ metricsExplorerViewAttributesRT, diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/get_metrics_explorer_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/get_metrics_explorer_view.ts index b7ef763a72916..94c50f19e3c67 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/get_metrics_explorer_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/get_metrics_explorer_view.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { metricsExplorerViewRT } from '../../../metrics_explorer_views'; +import type { metricsExplorerViewRT } from '../../../metrics_explorer_views'; export const getMetricsExplorerViewRequestParamsRT = rt.type({ metricsExplorerViewId: rt.string, diff --git a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/update_metrics_explorer_view.ts b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/update_metrics_explorer_view.ts index 19c9760c00c84..e711051c8d0a8 100644 --- a/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/update_metrics_explorer_view.ts +++ b/x-pack/solutions/observability/plugins/infra/common/http_api/metrics_explorer_views/v1/update_metrics_explorer_view.ts @@ -6,10 +6,8 @@ */ import * as rt from 'io-ts'; -import { - metricsExplorerViewAttributesRT, - metricsExplorerViewRT, -} from '../../../metrics_explorer_views'; +import type { metricsExplorerViewRT } from '../../../metrics_explorer_views'; +import { metricsExplorerViewAttributesRT } from '../../../metrics_explorer_views'; export const updateMetricsExplorerViewAttributesRequestPayloadRT = rt.intersection([ metricsExplorerViewAttributesRT, diff --git a/x-pack/solutions/observability/plugins/infra/common/log_analysis/job_parameters.ts b/x-pack/solutions/observability/plugins/infra/common/log_analysis/job_parameters.ts index 22fcdea971e23..2ae16976083b0 100644 --- a/x-pack/solutions/observability/plugins/infra/common/log_analysis/job_parameters.ts +++ b/x-pack/solutions/observability/plugins/infra/common/log_analysis/job_parameters.ts @@ -7,7 +7,7 @@ import * as rt from 'io-ts'; import { v5 } from 'uuid'; -import { IdFormat, JobType } from '../http_api/latest'; +import type { IdFormat, JobType } from '../http_api/latest'; export const bucketSpan = 900000; diff --git a/x-pack/solutions/observability/plugins/infra/common/log_search_result/log_search_result.ts b/x-pack/solutions/observability/plugins/infra/common/log_search_result/log_search_result.ts index eeedaef75323c..18d0990a80be5 100644 --- a/x-pack/solutions/observability/plugins/infra/common/log_search_result/log_search_result.ts +++ b/x-pack/solutions/observability/plugins/infra/common/log_search_result/log_search_result.ts @@ -7,7 +7,8 @@ import { bisector } from 'd3-array'; -import { compareToTimeKey, TimeKey } from '../time'; +import type { TimeKey } from '../time'; +import { compareToTimeKey } from '../time'; export interface SearchResult { gid: string; diff --git a/x-pack/solutions/observability/plugins/infra/common/log_search_summary/log_search_summary.ts b/x-pack/solutions/observability/plugins/infra/common/log_search_summary/log_search_summary.ts index 507f2babd30bf..09132029261a2 100644 --- a/x-pack/solutions/observability/plugins/infra/common/log_search_summary/log_search_summary.ts +++ b/x-pack/solutions/observability/plugins/infra/common/log_search_summary/log_search_summary.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SearchResult } from '../log_search_result'; +import type { SearchResult } from '../log_search_result'; export interface SearchSummaryBucket { start: number; diff --git a/x-pack/solutions/observability/plugins/infra/common/metrics_explorer_views/defaults.ts b/x-pack/solutions/observability/plugins/infra/common/metrics_explorer_views/defaults.ts index 1eb1a46245ae5..2cd20eafb56f5 100644 --- a/x-pack/solutions/observability/plugins/infra/common/metrics_explorer_views/defaults.ts +++ b/x-pack/solutions/observability/plugins/infra/common/metrics_explorer_views/defaults.ts @@ -8,11 +8,8 @@ import { i18n } from '@kbn/i18n'; import type { NonEmptyString } from '@kbn/io-ts-utils'; import { Color } from '../color_palette'; -import { - MetricsExplorerChartType, - MetricsExplorerViewAttributes, - MetricsExplorerYAxisMode, -} from './types'; +import type { MetricsExplorerViewAttributes } from './types'; +import { MetricsExplorerChartType, MetricsExplorerYAxisMode } from './types'; export const staticMetricsExplorerViewId = '0'; diff --git a/x-pack/solutions/observability/plugins/infra/common/metrics_sources/index.ts b/x-pack/solutions/observability/plugins/infra/common/metrics_sources/index.ts index 09b1530ad5986..7176978798a20 100644 --- a/x-pack/solutions/observability/plugins/infra/common/metrics_sources/index.ts +++ b/x-pack/solutions/observability/plugins/infra/common/metrics_sources/index.ts @@ -11,7 +11,7 @@ import { SourceConfigurationRT, SourceStatusRuntimeType, } from '../source_configuration/source_configuration'; -import { DeepPartial } from '../utility_types'; +import type { DeepPartial } from '../utility_types'; /** * Properties specific to the Metrics Source Configuration. diff --git a/x-pack/solutions/observability/plugins/infra/common/saved_views/types.ts b/x-pack/solutions/observability/plugins/infra/common/saved_views/types.ts index 0b4e19abf197b..81ebc6ae244ed 100644 --- a/x-pack/solutions/observability/plugins/infra/common/saved_views/types.ts +++ b/x-pack/solutions/observability/plugins/infra/common/saved_views/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { QueryObserverBaseResult, UseMutateAsyncFunction, UseMutateFunction, diff --git a/x-pack/solutions/observability/plugins/infra/common/source_configuration/defaults.ts b/x-pack/solutions/observability/plugins/infra/common/source_configuration/defaults.ts index 05988909e3f36..ec3c07211f6eb 100644 --- a/x-pack/solutions/observability/plugins/infra/common/source_configuration/defaults.ts +++ b/x-pack/solutions/observability/plugins/infra/common/source_configuration/defaults.ts @@ -6,7 +6,7 @@ */ import { METRICS_INDEX_PATTERN } from '../constants'; -import { InfraSourceConfiguration } from './source_configuration'; +import type { InfraSourceConfiguration } from './source_configuration'; export const defaultSourceConfiguration: InfraSourceConfiguration = { name: 'Default', diff --git a/x-pack/solutions/observability/plugins/infra/common/time/time_scale.ts b/x-pack/solutions/observability/plugins/infra/common/time/time_scale.ts index cf449ddc8d6fb..d629a8b85ecdb 100644 --- a/x-pack/solutions/observability/plugins/infra/common/time/time_scale.ts +++ b/x-pack/solutions/observability/plugins/infra/common/time/time_scale.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { TimeUnit, timeUnitLabels } from './time_unit'; +import type { TimeUnit } from './time_unit'; +import { timeUnitLabels } from './time_unit'; export interface TimeScale { unit: TimeUnit; diff --git a/x-pack/solutions/observability/plugins/infra/common/typed_json.ts b/x-pack/solutions/observability/plugins/infra/common/typed_json.ts index 95d5d4274c3b6..81f337b2876ee 100644 --- a/x-pack/solutions/observability/plugins/infra/common/typed_json.ts +++ b/x-pack/solutions/observability/plugins/infra/common/typed_json.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { JsonArray, JsonObject, JsonValue } from '@kbn/utility-types'; +import type { JsonArray, JsonObject, JsonValue } from '@kbn/utility-types'; export type { JsonArray, JsonObject, JsonValue }; diff --git a/x-pack/solutions/observability/plugins/infra/common/url_state_storage_service.ts b/x-pack/solutions/observability/plugins/infra/common/url_state_storage_service.ts index ece3d1ccb09bf..9eeaa86b9aebf 100644 --- a/x-pack/solutions/observability/plugins/infra/common/url_state_storage_service.ts +++ b/x-pack/solutions/observability/plugins/infra/common/url_state_storage_service.ts @@ -9,12 +9,13 @@ import { url } from '@kbn/kibana-utils-plugin/common'; import { encode } from '@kbn/rison'; import type { Query } from '@kbn/es-query'; import { parse, stringify } from 'query-string'; -import moment, { DurationInputObject } from 'moment'; +import type { DurationInputObject } from 'moment'; +import moment from 'moment'; +import type { LogViewReference } from '@kbn/logs-shared-plugin/common'; import { defaultFilterStateKey, defaultPositionStateKey, DEFAULT_REFRESH_INTERVAL, - LogViewReference, } from '@kbn/logs-shared-plugin/common'; import type { FilterStateInUrl } from '../public/observability_logs/log_stream_query_state'; import type { PositionStateInUrl } from '../public/observability_logs/log_stream_position_state/src/url_state_storage_service'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/metrics_alert_dropdown.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/metrics_alert_dropdown.tsx index e4284d154c104..860568f5ff5cb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/metrics_alert_dropdown.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/metrics_alert_dropdown.tsx @@ -18,7 +18,7 @@ import { usePluginConfig } from '../../../containers/plugin_config_context'; import { PrefilledInventoryAlertFlyout } from '../../inventory/components/alert_flyout'; import { PrefilledMetricThresholdAlertFlyout } from '../../metric_threshold/components/alert_flyout'; import { AlertFlyout as CustomThresholdAlertFlyout } from '../../custom_threshold'; -import { InfraClientStartDeps } from '../../../types'; +import type { InfraClientStartDeps } from '../../../types'; type VisibleFlyoutType = 'inventory' | 'metricThreshold' | 'customThreshold'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.stories.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.stories.tsx index 195a868ff0af2..4928916bf875d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.stories.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.stories.tsx @@ -6,10 +6,11 @@ */ import React from 'react'; -import { ComponentMeta } from '@storybook/react'; +import type { ComponentMeta } from '@storybook/react'; import { LIGHT_THEME } from '@elastic/charts'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { Props, Threshold as Component } from './threshold'; +import type { Props } from './threshold'; +import { Threshold as Component } from './threshold'; export default { component: Component, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.test.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.test.tsx index 32d70920c5a73..754665c18adf3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.test.tsx @@ -9,7 +9,8 @@ import { COMPARATORS } from '@kbn/alerting-comparators'; import { Metric, LIGHT_THEME } from '@elastic/charts'; import { render } from '@testing-library/react'; import React from 'react'; -import { Props, Threshold } from './threshold'; +import type { Props } from './threshold'; +import { Threshold } from './threshold'; jest.mock('@elastic/charts', () => { const actual = jest.requireActual('@elastic/charts'); diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.tsx index c3e7cb93c44d2..fd92be789f47d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/components/threshold.tsx @@ -10,7 +10,7 @@ import { Chart, Metric, Settings } from '@elastic/charts'; import { EuiIcon, EuiPanel, type UseEuiTheme, useEuiTheme } from '@elastic/eui'; import type { PartialTheme, Theme } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; -import { COMPARATORS } from '@kbn/alerting-comparators'; +import type { COMPARATORS } from '@kbn/alerting-comparators'; export interface ChartProps { theme?: UseEuiTheme<{}>; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/criterion_preview_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/criterion_preview_chart.tsx index ea82c453958a3..e11fe7bf510d5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/criterion_preview_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/criterion_preview_chart.tsx @@ -5,15 +5,17 @@ * 2.0. */ -import React, { useMemo, FC, PropsWithChildren } from 'react'; -import { niceTimeFormatter, TooltipProps } from '@elastic/charts'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useMemo } from 'react'; +import type { TooltipProps } from '@elastic/charts'; +import { niceTimeFormatter } from '@elastic/charts'; import moment from 'moment'; import { i18n } from '@kbn/i18n'; import { EuiLoadingChart, EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { sum, min as getMin, max as getMax } from 'lodash'; import { formatNumber } from '../../../../common/formatters/number'; -import { GetLogAlertsChartPreviewDataSuccessResponsePayload } from '../../../../common/http_api'; +import type { GetLogAlertsChartPreviewDataSuccessResponsePayload } from '../../../../common/http_api'; type Series = GetLogAlertsChartPreviewDataSuccessResponsePayload['data']['series']; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx index 82258a493537f..ebd5efa819555 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx @@ -8,7 +8,8 @@ import { AnnotationDomainType, LineAnnotation, RectAnnotation } from '@elastic/c import { first, last } from 'lodash'; import React from 'react'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { Color, colorTransformer } from '../../../../common/color_palette'; +import type { Color } from '../../../../common/color_palette'; +import { colorTransformer } from '../../../../common/color_palette'; interface ThresholdAnnotationsProps { threshold: number[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/group_by_expression.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/group_by_expression.tsx index a7ed12eda1ed7..c8a2e8aa370e8 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/group_by_expression.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/group_by_expression.tsx @@ -14,7 +14,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo, useState } from 'react'; -import { FieldSpec } from '@kbn/data-views-plugin/common'; +import type { FieldSpec } from '@kbn/data-views-plugin/common'; import { GroupBySelector } from './selector'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/selector.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/selector.tsx index dc7e02f7d782f..12c557d277e17 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/selector.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/common/group_by_expression/selector.tsx @@ -7,7 +7,7 @@ import { EuiComboBox } from '@elastic/eui'; import React, { useCallback, useMemo } from 'react'; -import { FieldSpec } from '@kbn/data-views-plugin/common'; +import type { FieldSpec } from '@kbn/data-views-plugin/common'; interface Props { selectedGroups?: string[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/alert_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/alert_flyout.tsx index 22fe45922ad3d..9d812e723163a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/alert_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/alert_flyout.tsx @@ -7,10 +7,10 @@ import React, { useCallback, useContext, useMemo } from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { TriggerActionsContext } from '../../../containers/triggers_actions_context'; import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; -import { InfraWaffleMapOptions } from '../../../common/inventory/types'; +import type { InfraWaffleMapOptions } from '../../../common/inventory/types'; import { useAlertPrefillContext } from '../../use_alert_prefill'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.test.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.test.tsx index 6317c5367efbe..1ddcf4f9d383d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.test.tsx @@ -8,14 +8,16 @@ import { mountWithIntl, nextTick, shallowWithIntl } from '@kbn/test-jest-helpers'; import React from 'react'; import { act } from 'react-dom/test-utils'; -import { DataView, type FieldSpec } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import { type FieldSpec } from '@kbn/data-views-plugin/common'; // We are using this inside a `jest.mock` call. Jest requires dynamic dependencies to be prefixed with `mock` import { coreMock as mockCoreMock } from '@kbn/core/public/mocks'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { InventoryMetricConditions } from '../../../../common/alerting/metrics'; -import { AlertContextMeta, defaultExpression, ExpressionRow, Expressions } from './expression'; +import type { InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import type { AlertContextMeta } from './expression'; +import { defaultExpression, ExpressionRow, Expressions } from './expression'; import { dataViewPluginMocks } from '@kbn/data-views-plugin/public/mocks'; -import { ResolvedDataView } from '../../../utils/data_view'; +import type { ResolvedDataView } from '../../../utils/data_view'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; import type { SnapshotCustomMetricInput } from '../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.tsx index 89579ac74a326..d00542f09315d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression.tsx @@ -20,24 +20,17 @@ import { import { i18n } from '@kbn/i18n'; import { css } from '@emotion/react'; import { FormattedMessage } from '@kbn/i18n-react'; -import { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; -import { - ForLastExpression, +import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; +import type { IErrorObject, RuleTypeParamsExpressionProps, - ThresholdExpression, } from '@kbn/triggers-actions-ui-plugin/public'; +import { ForLastExpression, ThresholdExpression } from '@kbn/triggers-actions-ui-plugin/public'; import { debounce, omit } from 'lodash'; -import React, { - ChangeEvent, - useCallback, - useEffect, - useMemo, - useState, - FC, - PropsWithChildren, -} from 'react'; +import type { ChangeEvent, FC, PropsWithChildren } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import useToggle from 'react-use/lib/useToggle'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { findInventoryModel, awsEC2SnapshotMetricTypes, @@ -47,21 +40,14 @@ import { containerSnapshotMetricTypes, hostSnapshotMetricTypes, podSnapshotMetricTypes, - InventoryItemType, - SnapshotMetricType, SnapshotMetricTypeRT, } from '@kbn/metrics-data-access-plugin/common'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; -import { - SnapshotCustomMetricInput, - SnapshotCustomMetricInputRT, -} from '../../../../common/http_api'; -import { - FilterQuery, - InventoryMetricConditions, - QUERY_INVALID, -} from '../../../../common/alerting/metrics'; +import type { SnapshotCustomMetricInput } from '../../../../common/http_api'; +import { SnapshotCustomMetricInputRT } from '../../../../common/http_api'; +import type { FilterQuery, InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import { QUERY_INVALID } from '../../../../common/alerting/metrics'; import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; import { useMetricsDataViewContext, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression_chart.tsx index 52664a1f86f8f..d18e1a6ecce75 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/expression_chart.tsx @@ -11,12 +11,12 @@ import { first, last } from 'lodash'; import moment from 'moment'; import React, { useCallback, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; import { useTimelineChartTheme } from '../../../hooks/use_timeline_chart_theme'; -import { InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import type { InventoryMetricConditions } from '../../../../common/alerting/metrics'; import { Color } from '../../../../common/color_palette'; -import { MetricsExplorerAggregation, MetricsExplorerRow } from '../../../../common/http_api'; +import type { MetricsExplorerAggregation, MetricsExplorerRow } from '../../../../common/http_api'; import { useSnapshot } from '../../../pages/metrics/inventory_view/hooks/use_snaphot'; import { createInventoryMetricFormatter } from '../../../pages/metrics/inventory_view/lib/create_inventory_metric_formatter'; import { calculateDomain } from '../../../pages/metrics/metrics_explorer/components/helpers/calculate_domain'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/manage_alerts_context_menu_item.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/manage_alerts_context_menu_item.tsx index dccd03414f3d5..56cfd113872dd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/manage_alerts_context_menu_item.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/manage_alerts_context_menu_item.tsx @@ -9,7 +9,7 @@ import { EuiContextMenuItem } from '@elastic/eui'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { InfraClientStartDeps } from '../../../types'; +import type { InfraClientStartDeps } from '../../../types'; export const ManageAlertsContextMenuItem = () => { const { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/metric.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/metric.tsx index e112001b7f662..ddf94c68c4b81 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/metric.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/metric.tsx @@ -24,15 +24,17 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { debounce } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; -import { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { HOST_METRICS_DOC_HREF } from '../../../common/visualizations'; import { useMetricsDataViewContext } from '../../../containers/metrics_source'; import { getCustomMetricLabel } from '../../../../common/formatters/get_custom_metric_label'; -import { +import type { SnapshotCustomAggregation, - SnapshotCustomAggregationRT, SnapshotCustomMetricInput, +} from '../../../../common/http_api/snapshot_api'; +import { + SnapshotCustomAggregationRT, SnapshotCustomMetricInputRT, SNAPSHOT_CUSTOM_AGGREGATIONS, } from '../../../../common/http_api/snapshot_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/node_type.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/node_type.tsx index 31c4ae45c105b..6ba084394651d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/node_type.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/node_type.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiExpression, EuiPopover, EuiFlexGroup, EuiFlexItem, EuiSelect } from '@elastic/eui'; import { EuiPopoverTitle, EuiButtonIcon } from '@elastic/eui'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; interface WhenExpressionProps { value: InventoryItemType; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/validation.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/validation.tsx index ab44ab589882f..a12015d1af2a6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/validation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/components/validation.tsx @@ -8,11 +8,8 @@ import { i18n } from '@kbn/i18n'; import type { ValidationResult } from '@kbn/triggers-actions-ui-plugin/public'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { - FilterQuery, - InventoryMetricConditions, - QUERY_INVALID, -} from '../../../../common/alerting/metrics'; +import type { FilterQuery, InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import { QUERY_INVALID } from '../../../../common/alerting/metrics'; export function validateMetricThreshold({ criteria, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/hooks/use_inventory_alert_prefill.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/hooks/use_inventory_alert_prefill.ts index fe889273cb509..7cfcdf2c6f5a4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/hooks/use_inventory_alert_prefill.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/hooks/use_inventory_alert_prefill.ts @@ -6,8 +6,8 @@ */ import { useState } from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricInput, SnapshotCustomMetricInput, } from '../../../../common/http_api/snapshot_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/index.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/index.ts index 0d0fd398909a0..11b8b12950c1b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/index.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/index.ts @@ -7,17 +7,15 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; -import { RuleTypeParams } from '@kbn/alerting-plugin/common'; -import { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; +import type { RuleTypeParams } from '@kbn/alerting-plugin/common'; +import type { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; import type { LocatorPublic } from '@kbn/share-plugin/common'; import type { AssetDetailsLocatorParams, InventoryLocatorParams, } from '@kbn/observability-shared-plugin/common'; -import { - InventoryMetricConditions, - METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, -} from '../../../common/alerting/metrics'; +import type { InventoryMetricConditions } from '../../../common/alerting/metrics'; +import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID } from '../../../common/alerting/metrics'; import { validateMetricThreshold } from './components/validation'; import { getRuleFormat } from './rule_data_formatters'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/rule_data_formatters.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/rule_data_formatters.ts index c9a12a6c6182a..062b19d9bc29b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/rule_data_formatters.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/inventory/rule_data_formatters.ts @@ -6,7 +6,7 @@ */ import { ALERT_REASON } from '@kbn/rule-data-utils'; -import { ObservabilityRuleTypeFormatter } from '@kbn/observability-plugin/public'; +import type { ObservabilityRuleTypeFormatter } from '@kbn/observability-plugin/public'; import type { LocatorPublic } from '@kbn/share-plugin/common'; import type { AssetDetailsLocatorParams, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx index a399414f24c54..d6ab1d1055c05 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx @@ -5,33 +5,36 @@ * 2.0. */ -import React, { FC, useEffect, useMemo, useState } from 'react'; +import type { FC } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import moment from 'moment'; import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiTitle } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { LOG_RATE_ANALYSIS_TYPE, type LogRateAnalysisType, } from '@kbn/aiops-log-rate-analysis/log_rate_analysis_type'; import { getLogRateAnalysisParametersFromAlert } from '@kbn/aiops-log-rate-analysis/get_log_rate_analysis_parameters_from_alert'; import { LogRateAnalysisContent, type LogRateAnalysisResultsData } from '@kbn/aiops-plugin/public'; -import { Rule } from '@kbn/alerting-plugin/common'; -import { TopAlert } from '@kbn/observability-plugin/public'; +import type { Rule } from '@kbn/alerting-plugin/common'; +import type { TopAlert } from '@kbn/observability-plugin/public'; import { ALERT_END } from '@kbn/rule-data-utils'; import type { Message } from '@kbn/observability-ai-assistant-plugin/public'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { i18n } from '@kbn/i18n'; import { pick, orderBy } from 'lodash'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { Color, colorTransformer } from '../../../../../../common/color_palette'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; -import { +import type { CountRuleParams, - isRatioRuleParams, PartialRuleParams, +} from '../../../../../../common/alerting/logs/log_threshold'; +import { + isRatioRuleParams, ruleParamsRT, } from '../../../../../../common/alerting/logs/log_threshold'; import { getESQueryForLogRateAnalysis } from '../log_rate_analysis_query'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/create_lens_definition.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/create_lens_definition.ts index a6feb02a2bc61..382c812e40a61 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/create_lens_definition.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/create_lens_definition.ts @@ -6,8 +6,9 @@ */ import moment from 'moment'; -import { TypedLensByValueInput } from '@kbn/lens-plugin/public'; -import { EuiThemeComputed, transparentize } from '@elastic/eui'; +import type { TypedLensByValueInput } from '@kbn/lens-plugin/public'; +import type { EuiThemeComputed } from '@elastic/eui'; +import { transparentize } from '@elastic/eui'; export interface IndexPattern { pattern: string; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_count_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_count_chart.tsx index 4a474ea7f5ef1..e72d1521c2e1b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_count_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_count_chart.tsx @@ -8,12 +8,8 @@ import React from 'react'; import { ViewMode } from '@kbn/embeddable-plugin/public'; import { useEuiTheme } from '@elastic/eui'; import { useKibanaContextForPlugin } from '../../../../../../hooks/use_kibana'; -import { - createLensDefinitionForCountChart, - IndexPattern, - Threshold, - Timerange, -} from './create_lens_definition'; +import type { IndexPattern, Threshold, Timerange } from './create_lens_definition'; +import { createLensDefinitionForCountChart } from './create_lens_definition'; interface LogThresholdCountChartProps { index: IndexPattern; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_ratio_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_ratio_chart.tsx index 2e415b0e5468d..be10c0248aa1c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_ratio_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/threhsold_chart/log_threshold_ratio_chart.tsx @@ -8,12 +8,8 @@ import React from 'react'; import { ViewMode } from '@kbn/embeddable-plugin/public'; import { useEuiTheme } from '@elastic/eui'; import { useKibanaContextForPlugin } from '../../../../../../hooks/use_kibana'; -import { - createLensDefinitionForRatioChart, - IndexPattern, - Threshold, - Timerange, -} from './create_lens_definition'; +import type { IndexPattern, Threshold, Timerange } from './create_lens_definition'; +import { createLensDefinitionForRatioChart } from './create_lens_definition'; interface LogThresholdRatioChartProps { index: IndexPattern; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx index 92a4e61554e29..e42fa7c17719b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx @@ -29,7 +29,7 @@ import { isRatioRule, type PartialCriterion, } from '../../../../../common/alerting/logs/log_threshold'; -import { AlertDetailsAppSectionProps } from './types'; +import type { AlertDetailsAppSectionProps } from './types'; import { Threshold } from '../../../common/components/threshold'; import { LogRateAnalysis } from './components/log_rate_analysis'; import { LogThresholdCountChart, LogThresholdRatioChart } from './components/threhsold_chart'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/log_rate_analysis_query.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/log_rate_analysis_query.ts index 382af37442121..9bcc585d92a43 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/log_rate_analysis_query.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/log_rate_analysis_query.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { TopAlert } from '@kbn/observability-plugin/public'; +import type { TopAlert } from '@kbn/observability-plugin/public'; import { ALERT_CONTEXT } from '@kbn/rule-data-utils'; import { get } from 'lodash'; -import { RuleParams, CountCriteria } from '../../../../../common/alerting/logs/log_threshold'; +import type { RuleParams, CountCriteria } from '../../../../../common/alerting/logs/log_threshold'; import { buildFiltersFromCriteria } from '../../../../../common/alerting/logs/log_threshold/query_helpers'; export const getESQueryForLogRateAnalysis = ( diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/types.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/types.ts index 61a0859670549..8ecf9955e6e9e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { Rule } from '@kbn/alerting-plugin/common'; -import { TopAlert } from '@kbn/observability-plugin/public'; -import { PartialRuleParams } from '../../../../../common/alerting/logs/log_threshold'; +import type { Rule } from '@kbn/alerting-plugin/common'; +import type { TopAlert } from '@kbn/observability-plugin/public'; +import type { PartialRuleParams } from '../../../../../common/alerting/logs/log_threshold'; export interface AlertDetailsAppSectionProps { rule: Rule; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx index f821d7510b3bf..386aeff48535c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criteria.tsx @@ -14,17 +14,19 @@ import type { ResolvedLogViewField, } from '@kbn/logs-shared-plugin/common'; import { Criterion } from './criterion'; -import { +import type { PartialRuleParams, PartialCountCriteria as PartialCountCriteriaType, PartialCriteria as PartialCriteriaType, PartialCriterion as PartialCriterionType, PartialRatioCriteria as PartialRatioCriteriaType, +} from '../../../../../common/alerting/logs/log_threshold/types'; +import { isRatioRule, getNumerator, getDenominator, } from '../../../../../common/alerting/logs/log_threshold/types'; -import { Errors, CriterionErrors } from '../../validation'; +import type { Errors, CriterionErrors } from '../../validation'; import { ExpressionLike } from './editor'; import { CriterionPreview } from './criterion_preview_chart'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx index 4991584520b8f..d1a06a96ebc78 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx @@ -5,10 +5,10 @@ * 2.0. */ +import type { EuiComboBoxProps } from '@elastic/eui'; import { EuiButtonIcon, EuiComboBox, - EuiComboBoxProps, EuiExpression, EuiFieldNumber, EuiFieldText, @@ -24,10 +24,10 @@ import { isFinite, isNumber } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; import type { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; import type { ResolvedLogViewField } from '@kbn/logs-shared-plugin/common'; +import type { Criterion as CriterionType } from '../../../../../common/alerting/logs/log_threshold/types'; import { Comparator, ComparatorToi18nMap, - Criterion as CriterionType, } from '../../../../../common/alerting/logs/log_threshold/types'; const firstCriterionFieldPrefix = i18n.translate( diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion_preview_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion_preview_chart.tsx index d361cefcd14cb..15446a69d9e0d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion_preview_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion_preview_chart.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactElement, useMemo } from 'react'; +import type { ReactElement } from 'react'; +import React, { useMemo } from 'react'; import useDebounce from 'react-use/lib/useDebounce'; import { i18n } from '@kbn/i18n'; import { @@ -22,10 +23,10 @@ import { } from '@elastic/charts'; import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { useTimelineChartTheme } from '../../../../hooks/use_timeline_chart_theme'; -import { ExecutionTimeRange } from '../../../../types'; +import type { ExecutionTimeRange } from '../../../../types'; import { ChartContainer, LoadingState, @@ -38,17 +39,15 @@ import { yAxisFormatter, NUM_BUCKETS, } from '../../../common/criterion_preview_chart/criterion_preview_chart'; -import { +import type { PartialRuleParams, Threshold, Criterion, - Comparator, } from '../../../../../common/alerting/logs/log_threshold/types'; +import { Comparator } from '../../../../../common/alerting/logs/log_threshold/types'; import { Color, colorTransformer } from '../../../../../common/color_palette'; -import { - GetLogAlertsChartPreviewDataAlertParamsSubset, - getLogAlertsChartPreviewDataAlertParamsSubsetRT, -} from '../../../../../common/http_api'; +import type { GetLogAlertsChartPreviewDataAlertParamsSubset } from '../../../../../common/http_api'; +import { getLogAlertsChartPreviewDataAlertParamsSubsetRT } from '../../../../../common/http_api'; import { useChartPreviewData } from './hooks/use_chart_preview_data'; import { useKibanaTimeZoneSetting } from '../../../../hooks/use_kibana_time_zone_setting'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx index 85935143da399..d85195345d533 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx @@ -7,27 +7,31 @@ import { EuiButton, EuiCallOut, EuiLoadingSpinner, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { useCallback, useMemo, useState, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useCallback, useMemo, useState } from 'react'; import useMount from 'react-use/lib/useMount'; -import { - ForLastExpression, - RuleTypeParamsExpressionProps, -} from '@kbn/triggers-actions-ui-plugin/public'; +import type { RuleTypeParamsExpressionProps } from '@kbn/triggers-actions-ui-plugin/public'; +import { ForLastExpression } from '@kbn/triggers-actions-ui-plugin/public'; import { LogViewProvider, useLogViewContext } from '@kbn/logs-shared-plugin/public'; -import { PersistedLogViewReference, ResolvedLogViewField } from '@kbn/logs-shared-plugin/common'; +import type { + PersistedLogViewReference, + ResolvedLogViewField, +} from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { - Comparator, - isOptimizableGroupedThreshold, - isRatioRule, +import type { PartialCountRuleParams, PartialCriteria as PartialCriteriaType, PartialRatioRuleParams, PartialRuleParams, ThresholdType, +} from '../../../../../common/alerting/logs/log_threshold/types'; +import { + Comparator, + isOptimizableGroupedThreshold, + isRatioRule, timeUnitRT, } from '../../../../../common/alerting/logs/log_threshold/types'; -import { ObjectEntries } from '../../../../../common/utility_types'; +import type { ObjectEntries } from '../../../../../common/utility_types'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; import { GroupByExpression } from '../../../common/group_by_expression/group_by_expression'; import { errorsRT } from '../../validation'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/hooks/use_chart_preview_data.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/hooks/use_chart_preview_data.tsx index 409b25239c3da..d5c160f7b4c5a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/hooks/use_chart_preview_data.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/hooks/use_chart_preview_data.tsx @@ -5,20 +5,22 @@ * 2.0. */ -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { useMemo, useState } from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { isRatioRule } from '../../../../../../common/alerting/logs/log_threshold'; -import { +import type { GetLogAlertsChartPreviewDataAlertParamsSubset, - getLogAlertsChartPreviewDataRequestPayloadRT, GetLogAlertsChartPreviewDataSuccessResponsePayload, +} from '../../../../../../common/http_api'; +import { + getLogAlertsChartPreviewDataRequestPayloadRT, getLogAlertsChartPreviewDataSuccessResponsePayloadRT, LOG_ALERTS_CHART_PREVIEW_DATA_PATH, } from '../../../../../../common/http_api'; -import { ExecutionTimeRange } from '../../../../../types'; +import type { ExecutionTimeRange } from '../../../../../types'; import { useTrackedPromise } from '../../../../../hooks/use_tracked_promise'; interface Options { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/log_view_switcher.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/log_view_switcher.tsx index 8dfa7295b6769..ddecad232c1ca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/log_view_switcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/log_view_switcher.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiFlexItem, EuiFlexGroup, EuiExpression, EuiToolTip } from '@elastic/eui'; -import { ResolvedLogView } from '@kbn/logs-shared-plugin/common'; +import type { ResolvedLogView } from '@kbn/logs-shared-plugin/common'; const description = i18n.translate('xpack.infra.logs.alertFlyout.logViewDescription', { defaultMessage: 'Log View', diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx index d7fe1b99206e8..9795fde2e11fa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx @@ -18,11 +18,11 @@ import { import { i18n } from '@kbn/i18n'; import { isFinite, isNumber } from 'lodash'; import React, { useState } from 'react'; -import { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { RuleParams } from '../../../../../common/alerting/logs/log_threshold/types'; import { Comparator, ComparatorToi18nMap, - RuleParams, } from '../../../../../common/alerting/logs/log_threshold/types'; const thresholdPrefix = i18n.translate('xpack.infra.logs.alertFlyout.thresholdPrefix', { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/type_switcher.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/type_switcher.tsx index adbab47b0fdd5..2f9d653a940b2 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/type_switcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/type_switcher.tsx @@ -8,11 +8,11 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; import { EuiFlexItem, EuiFlexGroup, EuiPopover, EuiSelect, EuiExpression } from '@elastic/eui'; -import { +import type { PartialCriteria, ThresholdType, - isRatioRule, } from '../../../../../common/alerting/logs/log_threshold/types'; +import { isRatioRule } from '../../../../../common/alerting/logs/log_threshold/types'; import { ExpressionLike } from './editor'; const typePrefix = i18n.translate('xpack.infra.logs.alertFlyout.thresholdTypePrefix', { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/log_threshold_rule_type.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/log_threshold_rule_type.tsx index 8eb75c94703b7..8c9e209b7f716 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/log_threshold_rule_type.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/log_threshold_rule_type.tsx @@ -6,15 +6,13 @@ */ import { i18n } from '@kbn/i18n'; -import { UrlService } from '@kbn/share-plugin/common/url_service'; +import type { UrlService } from '@kbn/share-plugin/common/url_service'; import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; -import { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; -import { - LOG_DOCUMENT_COUNT_RULE_TYPE_ID, - PartialRuleParams, -} from '../../../common/alerting/logs/log_threshold'; +import type { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; +import type { PartialRuleParams } from '../../../common/alerting/logs/log_threshold'; +import { LOG_DOCUMENT_COUNT_RULE_TYPE_ID } from '../../../common/alerting/logs/log_threshold'; import { createLazyComponentWithKibanaContext } from '../../hooks/use_kibana'; -import { InfraClientCoreSetup } from '../../types'; +import type { InfraClientCoreSetup } from '../../types'; import { createRuleFormatter } from './rule_data_formatters'; import { validateExpression } from './validation'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/validation.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/validation.ts index 59cae9c53c7ff..1bcf803418f8b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/validation.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/validation.ts @@ -8,14 +8,16 @@ import { i18n } from '@kbn/i18n'; import * as rt from 'io-ts'; import { isNumber, isFinite } from 'lodash'; -import { IErrorObject, ValidationResult } from '@kbn/triggers-actions-ui-plugin/public'; -import { +import type { IErrorObject, ValidationResult } from '@kbn/triggers-actions-ui-plugin/public'; +import type { PartialCountCriteria, + PartialRequiredRuleParams, + PartialCriteria, +} from '../../../common/alerting/logs/log_threshold/types'; +import { isRatioRule, getNumerator, getDenominator, - PartialRequiredRuleParams, - PartialCriteria, } from '../../../common/alerting/logs/log_threshold/types'; export const criterionErrorRT = rt.type({ diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_details_app_section.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_details_app_section.tsx index b23bfe38d1d39..cb7a0cbc55ebc 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_details_app_section.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_details_app_section.tsx @@ -19,9 +19,9 @@ import { useEuiTheme, } from '@elastic/eui'; -import { RuleConditionChart, TopAlert } from '@kbn/observability-plugin/public'; +import { RuleConditionChart } from '@kbn/observability-plugin/public'; import { ALERT_END, ALERT_START, ALERT_EVALUATION_VALUES, ALERT_GROUP } from '@kbn/rule-data-utils'; -import { Rule, RuleTypeParams } from '@kbn/alerting-plugin/common'; +import type { Rule, RuleTypeParams } from '@kbn/alerting-plugin/common'; import { getPaddedAlertTimeRange } from '@kbn/observability-get-padded-alert-time-range-util'; import type { EventAnnotationConfig, @@ -30,13 +30,13 @@ import type { } from '@kbn/event-annotation-common'; import { getGroupFilters } from '@kbn/observability-plugin/public'; -import type { GenericAggType } from '@kbn/observability-plugin/public'; +import type { GenericAggType, TopAlert } from '@kbn/observability-plugin/public'; import { metricValueFormatter } from '../../../../common/alerting/metrics/metric_value_formatter'; import { Threshold } from '../../common/components/threshold'; import { useMetricsDataViewContext, withSourceProvider } from '../../../containers/metrics_source'; import { generateUniqueKey } from '../lib/generate_unique_key'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; -import { AlertParams } from '../types'; +import type { AlertParams } from '../types'; // TODO Use a generic props for app sections https://github.com/elastic/kibana/issues/152690 export type MetricThresholdRule = Rule; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_flyout.tsx index 73678d1b6d64c..8101f0c832dc0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/alert_flyout.tsx @@ -8,8 +8,8 @@ import React, { useCallback, useContext, useMemo } from 'react'; import { TriggerActionsContext } from '../../../containers/triggers_actions_context'; import { METRIC_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; -import { MetricsExplorerSeries } from '../../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptions } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import type { MetricsExplorerSeries } from '../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; import { useAlertPrefillContext } from '../../use_alert_prefill'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.stories.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.stories.tsx index 4cb0cc5aabb03..07318fa53a3af 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.stories.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.stories.tsx @@ -5,16 +5,18 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react/types-6-0'; +import type { Meta, Story } from '@storybook/react/types-6-0'; import React, { useCallback, useEffect, useState } from 'react'; -import { TimeUnitChar } from '@kbn/observability-plugin/common'; -import { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; +import type { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { decorateWithGlobalStorybookThemeProviders } from '../../../../test_utils/use_global_storybook_theme'; -import { CustomEquationEditor, CustomEquationEditorProps } from './custom_equation_editor'; +import type { CustomEquationEditorProps } from './custom_equation_editor'; +import { CustomEquationEditor } from './custom_equation_editor'; import { aggregationType } from '../expression_row'; -import { MetricExpression } from '../../types'; +import type { MetricExpression } from '../../types'; import { validateMetricThreshold } from '../validation'; export default { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.tsx index 4339b7c3025fc..3bfb21967ed9d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/custom_equation_editor.tsx @@ -15,17 +15,17 @@ import { import React, { useState, useCallback, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { omit, range, first, xor, debounce } from 'lodash'; -import { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; import { FormattedMessage } from '@kbn/i18n-react'; -import { DataViewBase } from '@kbn/es-query'; +import type { DataViewBase } from '@kbn/es-query'; import { OMITTED_AGGREGATIONS_FOR_CUSTOM_METRICS } from '../../../../../common/http_api'; -import { - Aggregators, +import type { CustomMetricAggTypes, MetricExpressionCustomMetric, } from '../../../../../common/alerting/metrics'; -import { MetricExpression } from '../../types'; -import { CustomMetrics, AggregationTypes, NormalizedFields } from './types'; +import { Aggregators } from '../../../../../common/alerting/metrics'; +import type { MetricExpression } from '../../types'; +import type { CustomMetrics, AggregationTypes, NormalizedFields } from './types'; import { MetricRowWithAgg } from './metric_row_with_agg'; import { MetricRowWithCount } from './metric_row_with_count'; import { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_agg.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_agg.tsx index 20aa93d05c196..dfc963236b94c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_agg.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_agg.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiFormRow, EuiHorizontalRule, @@ -12,15 +13,15 @@ import { EuiFlexGroup, EuiSelect, EuiComboBox, - EuiComboBoxOptionOption, } from '@elastic/eui'; import React, { useMemo, useCallback } from 'react'; import { get } from 'lodash'; import { i18n } from '@kbn/i18n'; -import { ValidNormalizedTypes } from '@kbn/triggers-actions-ui-plugin/public'; -import { Aggregators, CustomMetricAggTypes } from '../../../../../common/alerting/metrics'; +import type { ValidNormalizedTypes } from '@kbn/triggers-actions-ui-plugin/public'; +import type { CustomMetricAggTypes } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { MetricRowControls } from './metric_row_controls'; -import { NormalizedFields, MetricRowBaseProps } from './types'; +import type { NormalizedFields, MetricRowBaseProps } from './types'; interface MetricRowWithAggProps extends MetricRowBaseProps { aggType?: CustomMetricAggTypes; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_count.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_count.tsx index dc3f691deda84..8948b4b7e7c66 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_count.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/metric_row_with_count.tsx @@ -8,9 +8,10 @@ import { EuiFormRow, EuiHorizontalRule, EuiFlexItem, EuiFlexGroup, EuiSelect } f import React, { useCallback, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { MetricsExplorerKueryBar } from '../../../../pages/metrics/metrics_explorer/components/kuery_bar'; -import { Aggregators, CustomMetricAggTypes } from '../../../../../common/alerting/metrics'; +import type { CustomMetricAggTypes } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { MetricRowControls } from './metric_row_controls'; -import { MetricRowBaseProps } from './types'; +import type { MetricRowBaseProps } from './types'; interface MetricRowWithCountProps extends MetricRowBaseProps { agg?: Aggregators; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/types.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/types.ts index 60069c6bb79d2..bdaca7e511311 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/custom_equation/types.ts @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AggregationType, IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; -import { MetricExpressionCustomMetric } from '../../../../../common/alerting/metrics'; -import { MetricExpression } from '../../types'; +import type { AggregationType, IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; +import type { MetricExpressionCustomMetric } from '../../../../../common/alerting/metrics'; +import type { MetricExpression } from '../../types'; export type CustomMetrics = MetricExpression['customMetrics']; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx index ae45bcac5cf9f..ae0160fd2e18c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx @@ -11,11 +11,11 @@ import { act } from 'react-dom/test-utils'; // We are using this inside a `jest.mock` call. Jest requires dynamic dependencies to be prefixed with `mock` import { coreMock as mockCoreMock } from '@kbn/core/public/mocks'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { MetricsExplorerMetric } from '../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../common/http_api/metrics_explorer'; import { Expressions } from './expression'; import type { DataView } from '@kbn/data-views-plugin/common'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { ResolvedDataView } from '../../../utils/data_view'; +import type { ResolvedDataView } from '../../../utils/data_view'; const mockDataView = { id: 'mock-id', diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.tsx index 42eb0daa7806d..d4201cf63af4a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; +import type { ChangeEvent } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { EuiAccordion, EuiButtonEmpty, @@ -19,15 +20,16 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { debounce } from 'lodash'; -import { - ForLastExpression, +import type { IErrorObject, RuleTypeParams, RuleTypeParamsExpressionProps, } from '@kbn/triggers-actions-ui-plugin/public'; -import { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; +import { ForLastExpression } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { GenericAggType, RuleConditionChart } from '@kbn/observability-plugin/public'; +import type { GenericAggType } from '@kbn/observability-plugin/public'; +import { RuleConditionChart } from '@kbn/observability-plugin/public'; import { Aggregators, QUERY_INVALID } from '../../../../common/alerting/metrics'; import { useMetricsDataViewContext, @@ -36,9 +38,9 @@ import { } from '../../../containers/metrics_source'; import { MetricsExplorerGroupBy } from '../../../pages/metrics/metrics_explorer/components/group_by'; import { MetricsExplorerKueryBar } from '../../../pages/metrics/metrics_explorer/components/kuery_bar'; -import { MetricsExplorerOptions } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptions } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; import { convertKueryToElasticSearchQuery } from '../../../utils/kuery'; -import { AlertContextMeta, AlertParams, MetricExpression } from '../types'; +import type { AlertContextMeta, AlertParams, MetricExpression } from '../types'; import { ExpressionRow } from './expression_row'; const FILTER_TYPING_DEBOUNCE_MS = 500; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx index 7e775dba71d9f..c2217fb0ec513 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx @@ -5,19 +5,20 @@ * 2.0. */ -import React, { ReactElement } from 'react'; +import type { ReactElement } from 'react'; +import React from 'react'; import { act } from 'react-dom/test-utils'; -import { LineAnnotation, RectAnnotation } from '@elastic/charts'; +import type { LineAnnotation, RectAnnotation } from '@elastic/charts'; import { mountWithIntl, nextTick } from '@kbn/test-jest-helpers'; // We are using this inside a `jest.mock` call. Jest requires dynamic dependencies to be prefixed with `mock` import { coreMock as mockCoreMock } from '@kbn/core/public/mocks'; import { Aggregators } from '../../../../common/alerting/metrics'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { MetricExpression } from '../types'; +import type { MetricExpression } from '../types'; import type { DataView } from '@kbn/data-views-plugin/common'; import { ExpressionChart } from './expression_chart'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { ResolvedDataView } from '../../../utils/data_view'; +import type { ResolvedDataView } from '../../../utils/data_view'; const mockDataView = { id: 'mock-id', diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx index e759724e5b420..de3f020f3cb6a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx @@ -5,17 +5,10 @@ * 2.0. */ -import React, { ReactElement, useRef } from 'react'; -import { - Axis, - Chart, - LineAnnotation, - niceTimeFormatter, - Position, - RectAnnotation, - Settings, - Tooltip, -} from '@elastic/charts'; +import type { ReactElement } from 'react'; +import React, { useRef } from 'react'; +import type { LineAnnotation, RectAnnotation } from '@elastic/charts'; +import { Axis, Chart, niceTimeFormatter, Position, Settings, Tooltip } from '@elastic/charts'; import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { useActiveCursor } from '@kbn/charts-plugin/public'; @@ -25,13 +18,11 @@ import { i18n } from '@kbn/i18n'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; import { useTimelineChartTheme } from '../../../hooks/use_timeline_chart_theme'; import { Color } from '../../../../common/color_palette'; -import { MetricsExplorerRow, MetricsExplorerAggregation } from '../../../../common/http_api'; +import type { MetricsExplorerRow, MetricsExplorerAggregation } from '../../../../common/http_api'; import { MetricExplorerSeriesChart } from '../../../pages/metrics/metrics_explorer/components/series_chart'; -import { MetricExpression, TimeRange } from '../types'; -import { - MetricsExplorerChartType, - MetricsExplorerOptionsMetric, -} from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import type { MetricExpression, TimeRange } from '../types'; +import type { MetricsExplorerOptionsMetric } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import { MetricsExplorerChartType } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; import { createFormatterForMetric } from '../../../pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metric'; import { calculateDomain } from '../../../pages/metrics/metrics_explorer/components/helpers/calculate_domain'; import { useMetricsExplorerChartData } from '../hooks/use_metrics_explorer_chart_data'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx index d00ad83dd837d..51e8088d2db57 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx @@ -5,15 +5,16 @@ * 2.0. */ -import { ResolvedDataView } from '../../../utils/data_view'; +import type { ResolvedDataView } from '../../../utils/data_view'; import { mountWithIntl, nextTick } from '@kbn/test-jest-helpers'; import React from 'react'; import { act } from 'react-dom/test-utils'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { MetricExpression } from '../types'; +import type { MetricExpression } from '../types'; import { ExpressionRow } from './expression_row'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { DataView, type FieldSpec } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import { type FieldSpec } from '@kbn/data-views-plugin/common'; const mockDataView = { id: 'mock-id', diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx index fc922aa7297ad..bd0adc63a95aa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx @@ -17,11 +17,11 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { omit } from 'lodash'; -import React, { PropsWithChildren, useCallback, useMemo, useState } from 'react'; +import type { PropsWithChildren } from 'react'; +import React, { useCallback, useMemo, useState } from 'react'; import styled from '@emotion/styled'; +import type { AggregationType, IErrorObject } from '@kbn/triggers-actions-ui-plugin/public'; import { - AggregationType, - IErrorObject, OfExpression, ThresholdExpression, WhenExpression, @@ -32,7 +32,8 @@ import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; import { Aggregators } from '../../../../common/alerting/metrics'; import { useMetricsDataViewContext } from '../../../containers/metrics_source'; import { decimalToPct, pctToDecimal } from '../../../../common/utils/corrected_percent_convert'; -import { AGGREGATION_TYPES, MetricExpression } from '../types'; +import type { MetricExpression } from '../types'; +import { AGGREGATION_TYPES } from '../types'; import { CustomEquationEditor } from './custom_equation'; import { CUSTOM_EQUATION } from '../i18n_strings'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/validation.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/validation.tsx index 3080f16ba6ca6..090a24299bbf8 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/validation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/components/validation.tsx @@ -7,16 +7,15 @@ import { fromKueryExpression } from '@kbn/es-query'; import { i18n } from '@kbn/i18n'; -import { ValidationResult } from '@kbn/triggers-actions-ui-plugin/public'; +import type { ValidationResult } from '@kbn/triggers-actions-ui-plugin/public'; import { isEmpty } from 'lodash'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { - Aggregators, +import type { CustomMetricExpressionParams, FilterQuery, MetricExpressionParams, - QUERY_INVALID, } from '../../../../common/alerting/metrics'; +import { Aggregators, QUERY_INVALID } from '../../../../common/alerting/metrics'; export const EQUATION_REGEX = /[^A-Z|+|\-|\s|\d+|\.|\(|\)|\/|\*|>|<|=|\?|\:|&|\!|\|]+/g; const isCustomMetricExpressionParams = ( diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metric_threshold_alert_prefill.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metric_threshold_alert_prefill.ts index 068c33ea2c31f..622b2aa20d3a0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metric_threshold_alert_prefill.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metric_threshold_alert_prefill.ts @@ -7,7 +7,7 @@ import { isEqual } from 'lodash'; import { useState } from 'react'; -import { MetricsExplorerMetric } from '../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../common/http_api/metrics_explorer'; export interface MetricThresholdPrefillOptions { groupBy: string | string[] | undefined; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metrics_explorer_chart_data.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metrics_explorer_chart_data.ts index 73bafecee1000..5d593caf0f27a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metrics_explorer_chart_data.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/hooks/use_metrics_explorer_chart_data.ts @@ -7,14 +7,14 @@ import DateMath from '@kbn/datemath'; import { useMemo } from 'react'; -import { MetricExpressionCustomMetric } from '../../../../common/alerting/metrics'; -import { MetricExpression, TimeRange } from '../types'; -import { +import type { MetricExpressionCustomMetric } from '../../../../common/alerting/metrics'; +import type { MetricExpression, TimeRange } from '../types'; +import type { MetricsExplorerOptions, MetricsExplorerTimestamp, } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; import { useMetricsExplorerData } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data'; -import { MetricExplorerCustomMetricAggregations } from '../../../../common/http_api/metrics_explorer'; +import type { MetricExplorerCustomMetricAggregations } from '../../../../common/http_api/metrics_explorer'; const DEFAULT_TIME_RANGE = {}; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/index.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/index.ts index 3f831e4c8e2c0..4f00f9ed0455f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/index.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/index.ts @@ -7,17 +7,15 @@ import { i18n } from '@kbn/i18n'; import { lazy } from 'react'; -import { RuleTypeParams } from '@kbn/alerting-plugin/common'; -import { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; -import { LocatorPublic } from '@kbn/share-plugin/common'; -import { +import type { RuleTypeParams } from '@kbn/alerting-plugin/common'; +import type { ObservabilityRuleTypeModel } from '@kbn/observability-plugin/public'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; +import type { AssetDetailsLocatorParams, MetricsExplorerLocatorParams, } from '@kbn/observability-shared-plugin/common'; -import { - MetricExpressionParams, - METRIC_THRESHOLD_ALERT_TYPE_ID, -} from '../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../common/alerting/metrics'; +import { METRIC_THRESHOLD_ALERT_TYPE_ID } from '../../../common/alerting/metrics'; import { validateMetricThreshold } from './components/validation'; import { getRuleFormat } from './rule_data_formatters'; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.test.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.test.ts index a47bc517676a9..7bb024d64f8da 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.test.ts @@ -6,7 +6,7 @@ */ import { COMPARATORS } from '@kbn/alerting-comparators'; import { Aggregators } from '../../../../common/alerting/metrics'; -import { MetricExpression } from '../types'; +import type { MetricExpression } from '../types'; import { generateUniqueKey } from './generate_unique_key'; describe('generateUniqueKey', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.ts index ec83311055a08..e90c2bef64a23 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/generate_unique_key.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricExpression } from '../types'; +import type { MetricExpression } from '../types'; export const generateUniqueKey = (criterion: MetricExpression) => { const metric = criterion.metric ? `(${criterion.metric})` : ''; diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/transform_metrics_explorer_data.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/transform_metrics_explorer_data.ts index 032696d26977d..021aa7ae2301f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/transform_metrics_explorer_data.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/lib/transform_metrics_explorer_data.ts @@ -6,8 +6,8 @@ */ import { first } from 'lodash'; -import { MetricsExplorerResponse } from '../../../../common/http_api/metrics_explorer'; -import { MetricThresholdAlertParams, ExpressionChartSeries } from '../types'; +import type { MetricsExplorerResponse } from '../../../../common/http_api/metrics_explorer'; +import type { MetricThresholdAlertParams, ExpressionChartSeries } from '../types'; export const transformMetricsExplorerData = ( params: MetricThresholdAlertParams, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts index f7ec9022b4cad..fe551ac96d5eb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts @@ -8,7 +8,10 @@ import { v4 as uuidv4 } from 'uuid'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { Aggregators } from '../../../../common/alerting/metrics'; -import { MetricThresholdAlert, MetricThresholdRule } from '../components/alert_details_app_section'; +import type { + MetricThresholdAlert, + MetricThresholdRule, +} from '../components/alert_details_app_section'; export const buildMetricThresholdRule = ( rule: Partial = {} diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/rule_data_formatters.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/rule_data_formatters.ts index 17132055bd210..54e4ee4732a0c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/rule_data_formatters.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/rule_data_formatters.ts @@ -6,8 +6,8 @@ */ import { ALERT_REASON, ALERT_RULE_PARAMETERS } from '@kbn/rule-data-utils'; -import { ObservabilityRuleTypeFormatter } from '@kbn/observability-plugin/public'; -import { LocatorPublic } from '@kbn/share-plugin/common'; +import type { ObservabilityRuleTypeFormatter } from '@kbn/observability-plugin/public'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; import type { AssetDetailsLocatorParams, MetricsExplorerLocatorParams, diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/types.ts b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/types.ts index 3f89afcbba88a..671daab939b2a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/metric_threshold/types.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { +import type { CustomMetricExpressionParams, FilterQuery, MetricExpressionParams, NonCountMetricExpressionParams, } from '../../../common/alerting/metrics'; -import { MetricsExplorerSeries } from '../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptions } from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import type { MetricsExplorerSeries } from '../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions } from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; export interface AlertContextMeta { currentOptions?: Partial; diff --git a/x-pack/solutions/observability/plugins/infra/public/apps/common_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/apps/common_providers.tsx index 392e3f250ada0..7ed34b91c5d31 100644 --- a/x-pack/solutions/observability/plugins/infra/public/apps/common_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/apps/common_providers.tsx @@ -5,21 +5,22 @@ * 2.0. */ -import { AppMountParameters, CoreStart } from '@kbn/core/public'; -import React, { FC, PropsWithChildren } from 'react'; +import type { AppMountParameters, CoreStart } from '@kbn/core/public'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; -import { Storage } from '@kbn/kibana-utils-plugin/public'; +import type { Storage } from '@kbn/kibana-utils-plugin/public'; import { NavigationWarningPromptProvider } from '@kbn/observability-shared-plugin/public'; -import { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app'; import { type KibanaEnvContext, useKibanaContextForPluginProvider, useKibanaEnvironmentContextProvider, } from '../hooks/use_kibana'; -import { InfraClientStartDeps, InfraClientStartExports } from '../types'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../types'; import { HeaderActionMenuProvider } from '../containers/header_action_menu_provider'; import { TriggersActionsProvider } from '../containers/triggers_actions_context'; import { useIsDarkMode } from '../hooks/use_is_dark_mode'; diff --git a/x-pack/solutions/observability/plugins/infra/public/apps/logs_app.tsx b/x-pack/solutions/observability/plugins/infra/public/apps/logs_app.tsx index 51749d8095481..0147e8ebca600 100644 --- a/x-pack/solutions/observability/plugins/infra/public/apps/logs_app.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/apps/logs_app.tsx @@ -5,17 +5,18 @@ * 2.0. */ -import { History } from 'history'; -import { CoreStart } from '@kbn/core/public'; +import type { History } from 'history'; +import type { CoreStart } from '@kbn/core/public'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Routes, Route } from '@kbn/shared-ux-router'; -import { AppMountParameters } from '@kbn/core/public'; +import type { AppMountParameters } from '@kbn/core/public'; import { Storage } from '@kbn/kibana-utils-plugin/public'; -import { AllDatasetsLocatorParams, ALL_DATASETS_LOCATOR_ID } from '@kbn/deeplinks-observability'; +import type { AllDatasetsLocatorParams } from '@kbn/deeplinks-observability'; +import { ALL_DATASETS_LOCATOR_ID } from '@kbn/deeplinks-observability'; import { LinkToLogsPage } from '../pages/link_to/link_to_logs'; import { LogsPage } from '../pages/logs'; -import { InfraClientStartDeps, InfraClientStartExports } from '../types'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../types'; import { CommonInfraProviders, CoreProviders } from './common_providers'; import { prepareMountElement } from './common_styles'; import { KbnUrlStateStorageFromRouterProvider } from '../containers/kbn_url_state_context'; diff --git a/x-pack/solutions/observability/plugins/infra/public/apps/metrics_app.tsx b/x-pack/solutions/observability/plugins/infra/public/apps/metrics_app.tsx index ab6ffcb6b5299..69baa383ebd04 100644 --- a/x-pack/solutions/observability/plugins/infra/public/apps/metrics_app.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/apps/metrics_app.tsx @@ -5,17 +5,17 @@ * 2.0. */ import { PerformanceContextProvider } from '@kbn/ebt-tools'; -import { History } from 'history'; -import { CoreStart } from '@kbn/core/public'; +import type { History } from 'history'; +import type { CoreStart } from '@kbn/core/public'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Routes, Route } from '@kbn/shared-ux-router'; -import { AppMountParameters } from '@kbn/core/public'; +import type { AppMountParameters } from '@kbn/core/public'; import { Storage } from '@kbn/kibana-utils-plugin/public'; -import { InfraPublicConfig } from '../../common/plugin_config_types'; +import type { InfraPublicConfig } from '../../common/plugin_config_types'; import { LinkToMetricsPage } from '../pages/link_to/link_to_metrics'; import { InfrastructurePage } from '../pages/metrics'; -import { InfraClientStartDeps, InfraClientStartExports } from '../types'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../types'; import { CommonInfraProviders, CoreProviders } from './common_providers'; import { prepareMountElement } from './common_styles'; import { SourceProvider, MetricsDataViewProvider } from '../containers/metrics_source'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/anomalies.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/anomalies.ts index 543b46ceb17b9..720a7a1035cac 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/anomalies.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GetMetricsHostsAnomaliesSuccessResponsePayload } from '../../../../../../common/http_api/infra_ml'; +import type { GetMetricsHostsAnomaliesSuccessResponsePayload } from '../../../../../../common/http_api/infra_ml'; const anomalies: GetMetricsHostsAnomaliesSuccessResponsePayload = { data: { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/metadata.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/metadata.ts index 6f691ba78a65f..e68592172f055 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/metadata.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/metadata.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { InfraMetadata } from '../../../../../../common/http_api'; +import type { InfraMetadata } from '../../../../../../common/http_api'; export const HOST_ID = 'host-1'; export const hostMetadata: InfraMetadata = { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/processes.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/processes.ts index 425801377f21a..193c53bc93f99 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/processes.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/context/fixtures/processes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { ProcessListAPIResponse, ProcessListAPIChartResponse, } from '../../../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/decorator.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/decorator.tsx index e4686a54e551c..5cde2fc3ca1ae 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/decorator.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/__stories__/decorator.tsx @@ -11,7 +11,8 @@ import { KibanaContextProvider, type KibanaReactContextValue, } from '@kbn/kibana-react-plugin/public'; -import { Observable, of } from 'rxjs'; +import type { Observable } from 'rxjs'; +import { of } from 'rxjs'; import { action } from '@storybook/addon-actions'; import type { DecoratorFn } from '@storybook/react'; import { useParameter } from '@storybook/addons'; @@ -21,7 +22,7 @@ import type { IKibanaSearchRequest, ISearchOptions } from '@kbn/search-types'; import type { SearchSessionState } from '@kbn/data-plugin/public'; import type { Theme } from '@elastic/charts/dist/utils/themes/theme'; import { defaultLogViewAttributes } from '@kbn/logs-shared-plugin/common'; -import { DataView, DataViewField } from '@kbn/data-views-plugin/common'; +import type { DataView, DataViewField } from '@kbn/data-views-plugin/common'; import { MemoryRouter } from 'react-router-dom'; import { AlertPrefillProvider } from '../../../alerting/use_alert_prefill'; import { PluginConfigProvider } from '../../../containers/plugin_config_context'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/constants.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/constants.ts index 01da12c5f59ad..80a4e280709ae 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/constants.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/constants.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; import { i18n } from '@kbn/i18n'; -import { AddDataPanelProps } from '@kbn/observability-shared-plugin/public'; -import { LocatorPublic } from '@kbn/share-plugin/common'; +import type { AddDataPanelProps } from '@kbn/observability-shared-plugin/public'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; import { OnboardingFlow } from '../../shared/templates/no_data_config'; export type AddMetricsCalloutKey = diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/index.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/index.tsx index bd749baed7114..b7bb993b39f7b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/index.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/add_metrics_callout/index.tsx @@ -7,12 +7,11 @@ import React from 'react'; import { AddDataPanel } from '@kbn/observability-shared-plugin/public'; -import { - OBSERVABILITY_ONBOARDING_LOCATOR, - ObservabilityOnboardingLocatorParams, -} from '@kbn/deeplinks-observability'; -import { AddMetricsCalloutEventParams } from '../../../services/telemetry'; -import { addMetricsCalloutDefinitions, AddMetricsCalloutKey } from './constants'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; +import type { AddMetricsCalloutEventParams } from '../../../services/telemetry'; +import type { AddMetricsCalloutKey } from './constants'; +import { addMetricsCalloutDefinitions } from './constants'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; export interface AddMetricsCalloutProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart.tsx index 366b11bf0cb11..100515a3f13a0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart.tsx @@ -12,7 +12,8 @@ import { resolveDataView } from '../../../utils/data_view'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { METRIC_CHART_HEIGHT } from '../../../common/visualizations/constants'; import { buildCombinedAssetFilter } from '../../../utils/filters/build'; -import { type BrushEndArgs, LensChart, type OnFilterEvent, LensChartProps } from '../../lens'; +import type { LensChartProps } from '../../lens'; +import { type BrushEndArgs, LensChart, type OnFilterEvent } from '../../lens'; import { useDatePickerContext } from '../hooks/use_date_picker'; import { extractRangeFromChartFilterEvent } from './chart_utils'; import { useSearchSessionContext } from '../../../hooks/use_search_session'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.test.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.test.ts index a93fc4c2d0ce6..8c38af7d2b43d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.test.ts @@ -5,7 +5,10 @@ * 2.0. */ -import { DatatableColumn, DatatableRow } from '@kbn/expressions-plugin/common/expression_types'; +import type { + DatatableColumn, + DatatableRow, +} from '@kbn/expressions-plugin/common/expression_types'; import { calculateChartRowsTimeInterval, extractRangeFromChartFilterEvent, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.ts index f810f3693ad46..b5555f58fc3df 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/chart_utils.ts @@ -5,9 +5,12 @@ * 2.0. */ -import { MultiValueClickContext } from '@kbn/embeddable-plugin/public'; -import { TimeRange } from '@kbn/es-query'; -import { DatatableColumn, DatatableRow } from '@kbn/expressions-plugin/common/expression_types'; +import type { MultiValueClickContext } from '@kbn/embeddable-plugin/public'; +import type { TimeRange } from '@kbn/es-query'; +import type { + DatatableColumn, + DatatableRow, +} from '@kbn/expressions-plugin/common/expression_types'; import type { OnFilterEvent } from '../../lens'; type ChartClickContextData = MultiValueClickContext['data']['data']; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/docker_charts.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/docker_charts.tsx index b474de0ae8e49..45951be1521c7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/docker_charts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/docker_charts.tsx @@ -17,7 +17,7 @@ import { Chart } from './chart'; import { TitleWithTooltip } from '../components/section_title'; import { CONTAINER_METRIC_GROUP_TITLES } from '../translations'; import { CONTAINER_METRICS_DOC_HREF } from '../../../common/visualizations/constants'; -import { MetricsChartsFields, ContainerMetricTypes } from './types'; +import type { MetricsChartsFields, ContainerMetricTypes } from './types'; interface Props extends MetricsChartsFields { metric: ContainerMetricTypes; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/host_charts.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/host_charts.tsx index 658091312d7f5..2c1e84d48d600 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/host_charts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/host_charts.tsx @@ -16,7 +16,7 @@ import { ChartsGrid } from '../charts_grid/charts_grid'; import { Chart } from './chart'; import { useHostCharts } from '../hooks/use_host_metrics_charts'; import { TitleWithTooltip } from '../components/section_title'; -import { MetricsChartsFields, HostMetricTypes } from './types'; +import type { MetricsChartsFields, HostMetricTypes } from './types'; interface Props extends MetricsChartsFields { metric: Exclude; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/kubernetes_charts.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/kubernetes_charts.tsx index b9f78aa0bdf93..11a1d97a023d5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/kubernetes_charts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/charts/kubernetes_charts.tsx @@ -19,7 +19,7 @@ import { Chart } from './chart'; import { useIntegrationCheck } from '../hooks/use_integration_check'; import { useK8sContainerPageViewMetricsCharts } from '../hooks/use_container_metrics_charts'; import { CONTAINER_METRICS_DOC_HREF } from '../../../common/visualizations/constants'; -import { KubernetesContainerMetrics, MetricsChartsFields } from './types'; +import type { KubernetesContainerMetrics, MetricsChartsFields } from './types'; const FRAGMENT_BASE = 'key-metrics'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/components/metadata_explanation.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/components/metadata_explanation.tsx index eb24ed2c38131..77bda373785b1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/components/metadata_explanation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/components/metadata_explanation.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiText, EuiLink } from '@elastic/eui'; import { FormattedDate, FormattedMessage, FormattedTime } from '@kbn/i18n-react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner } from '@elastic/eui'; import { Popover } from '../tabs/common/popover'; import { useMetadataStateContext } from '../hooks/use_metadata_state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts.tsx index 135c7e2ce77e0..bd168744ff7eb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts.tsx @@ -6,11 +6,11 @@ */ import React from 'react'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { type SnapshotMetricType, findInventoryModel, type InventoryModels, - InventoryItemType, } from '@kbn/metrics-data-access-plugin/common'; import { useAssetDetailsUrlState } from '../hooks/use_asset_details_url_state'; import { useAssetDetailsRenderPropsContext } from '../hooks/use_asset_details_render_props'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts/legacy_metric_callout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts/legacy_metric_callout.tsx index 19e41abffac07..42f1b5f12deed 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts/legacy_metric_callout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/content/callouts/legacy_metric_callout.tsx @@ -7,11 +7,11 @@ import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiCallOut, EuiLink } from '@elastic/eui'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import useLocalStorage from 'react-use/lib/useLocalStorage'; import { toMetricOpt } from '../../../../../common/snapshot_metric_i18n'; import { useAssetDetailsRenderPropsContext } from '../../hooks/use_asset_details_render_props'; -import { ContentTabIds } from '../../types'; +import type { ContentTabIds } from '../../types'; import { useTabSwitcherContext } from '../../hooks/use_tab_switcher'; export const HOST_LEGACY_METRICS_DOC_HREF = 'https://ela.st/host-metrics-legacy'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/context_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/context_providers.tsx index 87220691b50fc..8f76e3de99d5a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/context_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/context_providers.tsx @@ -11,7 +11,7 @@ import { AssetDetailsRenderPropsProvider } from './hooks/use_asset_details_rende import { DatePickerProvider } from './hooks/use_date_picker'; import { LoadingStateProvider } from './hooks/use_loading_state'; import { MetadataStateProvider } from './hooks/use_metadata_state'; -import { AssetDetailsProps, RenderMode } from './types'; +import type { AssetDetailsProps, RenderMode } from './types'; const RenderWithOptionalSearchSessionProvider = ({ renderMode, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.test.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.test.ts index 496029a8b436b..35fc2ee622941 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.test.ts @@ -6,7 +6,7 @@ */ import { waitFor, renderHook } from '@testing-library/react'; -import { ContainerMetricTypes } from '../charts/types'; +import type { ContainerMetricTypes } from '../charts/types'; import { useK8sContainerPageViewMetricsCharts, useDockerContainerPageViewMetricsCharts, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.ts index c453725f3f527..36fbee734c16b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_container_metrics_charts.ts @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import useAsync from 'react-use/lib/useAsync'; -import { ContainerMetricTypes } from '../charts/types'; +import type { ContainerMetricTypes } from '../charts/types'; import { useChartSeriesColor } from './use_chart_series_color'; const getSubtitleFromFormula = (value: string) => diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_date_picker.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_date_picker.ts index 4cb20bfc4f3d5..a35bda74e22a3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_date_picker.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_date_picker.ts @@ -12,7 +12,7 @@ import useEffectOnce from 'react-use/lib/useEffectOnce'; import { BehaviorSubject } from 'rxjs'; import { useSearchSessionContext } from '../../../hooks/use_search_session'; import { parseDateRange } from '../../../utils/datemath'; -import { AssetDetailsProps } from '../types'; +import type { AssetDetailsProps } from '../types'; import { getDefaultDateRange, toTimestampRange } from '../utils'; import { useAssetDetailsUrlState } from './use_asset_details_url_state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.test.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.test.ts index f95ab156222eb..abaea88359b57 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.test.ts @@ -6,7 +6,7 @@ */ import { waitFor, renderHook } from '@testing-library/react'; -import { HostMetricTypes } from '../charts/types'; +import type { HostMetricTypes } from '../charts/types'; import { useHostKpiCharts, useHostCharts, useKubernetesCharts } from './use_host_metrics_charts'; const dataViewId = 'metricsDataViewId'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.ts index ba3e3f973b35f..eee835176f0ed 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_host_metrics_charts.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import { useMemo } from 'react'; import useAsync from 'react-use/lib/useAsync'; -import { HostMetricTypes } from '../charts/types'; +import type { HostMetricTypes } from '../charts/types'; import { useChartSeriesColor } from './use_chart_series_color'; export const useHostCharts = ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_intersecting_state.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_intersecting_state.ts index a9e7fba7d4447..61f42b34b1f24 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_intersecting_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_intersecting_state.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { useEffect, useState, useRef, RefObject } from 'react'; +import type { RefObject } from 'react'; +import { useEffect, useState, useRef } from 'react'; export const useIntersectingState = (ref: RefObject, currentState: T) => { const [intersectionObserverEntry, setIntersectionObserverEntry] = diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_log_charts.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_log_charts.ts index e373e214a63c2..1bdbc2d941cef 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_log_charts.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_log_charts.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { useMemo } from 'react'; -import { LensConfig } from '@kbn/lens-embeddable-utils/config_builder'; +import type { LensConfig } from '@kbn/lens-embeddable-utils/config_builder'; import { useChartSeriesColor } from './use_chart_series_color'; const LOG_RATE = i18n.translate('xpack.infra.assetDetails.charts.logRate', { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata.ts index 9fc2ea6dd5d0f..d0fdeacc52b29 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata.ts @@ -6,7 +6,7 @@ */ import type { InventoryItemType, InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; -import { BehaviorSubject } from 'rxjs'; +import type { BehaviorSubject } from 'rxjs'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { isPending, useFetcher } from '../../../hooks/use_fetcher'; import { InfraMetadataRT } from '../../../../common/http_api/metadata_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata_state.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata_state.ts index c0efe79157b97..d1c739e2d6b78 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/hooks/use_metadata_state.ts @@ -9,7 +9,7 @@ import { useEffect, useMemo } from 'react'; import createContainer from 'constate'; import { useSourceContext } from '../../../containers/metrics_source'; import { useMetadata } from './use_metadata'; -import { AssetDetailsProps } from '../types'; +import type { AssetDetailsProps } from '../types'; import { useDatePickerContext } from './use_date_picker'; import { useAssetDetailsUrlState } from './use_asset_details_url_state'; import { useRequestObservable } from './use_request_observable'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/links/link_to_apm_service.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/links/link_to_apm_service.tsx index 92424d85f1861..578463d0cf507 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/links/link_to_apm_service.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/links/link_to_apm_service.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { EuiBadge, EuiText } from '@elastic/eui'; import { AgentIcon } from '@kbn/custom-icons'; -import { AgentName } from '@kbn/elastic-agent-utils'; +import type { AgentName } from '@kbn/elastic-agent-utils'; import { i18n } from '@kbn/i18n'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/actions/save_dashboard_modal.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/actions/save_dashboard_modal.tsx index 5bd6cc0e1fc6c..442a3ba49e7aa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/actions/save_dashboard_modal.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/actions/save_dashboard_modal.tsx @@ -6,6 +6,7 @@ */ import React, { useCallback, useMemo, useState } from 'react'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiButton, EuiModal, @@ -15,7 +16,6 @@ import { EuiSwitch, EuiModalBody, EuiComboBox, - EuiComboBoxOptionOption, EuiFlexGroup, EuiToolTip, EuiIcon, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboard_selector.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboard_selector.tsx index e8ff7000581da..6e884c0bf897a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboard_selector.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboard_selector.tsx @@ -9,7 +9,7 @@ import React, { useEffect, useState, useCallback } from 'react'; import useMount from 'react-use/lib/useMount'; import { EuiComboBox } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { DashboardItemWithTitle } from '../../../../../common/custom_dashboards'; +import type { DashboardItemWithTitle } from '../../../../../common/custom_dashboards'; import { useAssetDetailsUrlState } from '../../hooks/use_asset_details_url_state'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboards.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboards.tsx index 694fe5cd1ed2b..9a26715127fd4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboards.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/dashboards/dashboards.tsx @@ -18,11 +18,8 @@ import { } from '@elastic/eui'; import { ViewMode } from '@kbn/embeddable-plugin/public'; -import { - DashboardApi, - DashboardCreationOptions, - DashboardRenderer, -} from '@kbn/dashboard-plugin/public'; +import type { DashboardApi, DashboardCreationOptions } from '@kbn/dashboard-plugin/public'; +import { DashboardRenderer } from '@kbn/dashboard-plugin/public'; import type { DashboardSearchOut } from '@kbn/dashboard-plugin/server/content_management'; import type { SerializableRecord } from '@kbn/utility-types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/logs/logs.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/logs/logs.tsx index 6c2ab5ace2133..c8000a2f7f5c6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/logs/logs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/logs/logs.tsx @@ -11,11 +11,8 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; import { EuiFieldSearch, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { LogStream } from '@kbn/logs-shared-plugin/public'; -import { - DEFAULT_LOG_VIEW, - getLogsLocatorsFromUrlService, - LogViewReference, -} from '@kbn/logs-shared-plugin/common'; +import type { LogViewReference } from '@kbn/logs-shared-plugin/common'; +import { DEFAULT_LOG_VIEW, getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; import { OpenInLogsExplorerButton } from '@kbn/logs-shared-plugin/public'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/add_pin_to_row.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/add_pin_to_row.tsx index 42245552b664c..5b7ef55ce8aa0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/add_pin_to_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/add_pin_to_row.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { Dispatch } from 'react'; +import type { Dispatch } from 'react'; +import React from 'react'; import { css } from '@emotion/css'; import { i18n } from '@kbn/i18n'; import { EuiToolTip, EuiButtonIcon, useEuiTheme, euiCanAnimate } from '@elastic/eui'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/build_metadata_filter.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/build_metadata_filter.ts index 8464d34073414..a8f4949f4f55f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/build_metadata_filter.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/build_metadata_filter.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { buildPhrasesFilter, buildPhraseFilter, FilterStateStore } from '@kbn/es-query'; +import type { FilterStateStore } from '@kbn/es-query'; +import { buildPhrasesFilter, buildPhraseFilter } from '@kbn/es-query'; import type { DataView } from '@kbn/data-views-plugin/common'; export function buildMetadataFilter({ diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/table.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/table.tsx index fedf54a2d10a0..8ab34376b2766 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metadata/table.tsx @@ -5,13 +5,8 @@ * 2.0. */ -import { - EuiText, - EuiIcon, - EuiInMemoryTable, - EuiSearchBarProps, - type HorizontalAlignment, -} from '@elastic/eui'; +import type { EuiSearchBarProps } from '@elastic/eui'; +import { EuiText, EuiIcon, EuiInMemoryTable, type HorizontalAlignment } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useMemo, useState } from 'react'; import { debounce } from 'lodash'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/host_metrics.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/host_metrics.tsx index 9d08a628aec5f..d0df7574efa36 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/host_metrics.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/host_metrics.tsx @@ -12,7 +12,7 @@ import { useDataViewsContext } from '../../hooks/use_data_views'; import { useIntersectingState } from '../../hooks/use_intersecting_state'; import { MetricsTemplate } from './metrics_template'; import { HostCharts, KubernetesNodeCharts } from '../../charts'; -import { HostMetricTypes } from '../../charts/types'; +import type { HostMetricTypes } from '../../charts/types'; const METRIC_TYPES: Array> = [ 'cpu', diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/metrics_template.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/metrics_template.tsx index 9206f4cc188e2..f4a261ee38fa3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/metrics_template.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/metrics/metrics_template.tsx @@ -27,7 +27,7 @@ import { import { css, cx } from '@emotion/css'; import { useAssetDetailsRenderPropsContext } from '../../hooks/use_asset_details_render_props'; import { useTabSwitcherContext } from '../../hooks/use_tab_switcher'; -import { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; +import type { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; import { AddMetricsCallout } from '../../add_metrics_callout'; import { useEntitySummary } from '../../hooks/use_entity_summary'; import { isMetricsSignal } from '../../utils/get_data_stream_types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx index f3fd06d657a48..b3ae62111bb71 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { EuiButtonEmpty, EuiFlexGroup, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics.tsx index f3ad7da1b99f5..c7323e395f910 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics.tsx @@ -7,7 +7,7 @@ import React, { useMemo } from 'react'; import type { TimeRange } from '@kbn/es-query'; import type { DataView } from '@kbn/data-views-plugin/public'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { HostMetrics } from './host_metrics'; import { ContainerMetrics } from './container_metrics'; import { Section } from '../../../components/section'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx index a25ee35cb75fa..0e2f999269164 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx @@ -24,7 +24,7 @@ import { CpuProfilingPrompt } from './kpis/cpu_profiling_prompt'; import { ServicesContent } from './services'; import { MetricsContent } from './metrics/metrics'; import { AddMetricsCallout } from '../../add_metrics_callout'; -import { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; +import type { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; import { useEntitySummary } from '../../hooks/use_entity_summary'; import { isMetricsSignal, isLogsSignal } from '../../utils/get_data_stream_types'; import { LogsContent } from './logs'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row.tsx index f39316ed43816..27adb2cdbab03 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row.tsx @@ -25,7 +25,7 @@ import styled from '@emotion/styled'; import useToggle from 'react-use/lib/useToggle'; import { type Message } from '@kbn/observability-ai-assistant-plugin/public'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; -import { Process } from './types'; +import type { Process } from './types'; import { ProcessRowCharts } from './process_row_charts'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row_charts.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row_charts.tsx index f3a0c0dc775ea..80bbd66077321 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row_charts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/process_row_charts.tsx @@ -30,11 +30,9 @@ import { useTimelineChartTheme } from '../../../../hooks/use_timeline_chart_them import { MetricExplorerSeriesChart } from '../../../../pages/metrics/metrics_explorer/components/series_chart'; import { Color } from '../../../../../common/color_palette'; import { createFormatter } from '../../../../../common/formatters'; -import { - MetricsExplorerAggregation, - ProcessListAPIChartResponseRT, -} from '../../../../../common/http_api'; -import { Process } from './types'; +import type { MetricsExplorerAggregation } from '../../../../../common/http_api'; +import { ProcessListAPIChartResponseRT } from '../../../../../common/http_api'; +import type { Process } from './types'; import { MetricsExplorerChartType } from '../../../../../common/metrics_explorer_views/types'; import { MetricNotAvailableExplanationTooltip } from '../../components/metric_not_available_explanation'; import { useProcessListContext } from '../../hooks/use_process_list'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/processes.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/processes.tsx index 57a07d4dc296e..7503ebf2f5b28 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/processes.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/processes.tsx @@ -39,7 +39,7 @@ import { TopProcessesTooltip } from '../../components/top_processes_tooltip'; import { ProcessListAPIResponseRT } from '../../../../../common/http_api'; import { useRequestObservable } from '../../hooks/use_request_observable'; import { useTabSwitcherContext } from '../../hooks/use_tab_switcher'; -import { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; +import type { AddMetricsCalloutKey } from '../../add_metrics_callout/constants'; import { AddMetricsCallout } from '../../add_metrics_callout'; import { useEntitySummary } from '../../hooks/use_entity_summary'; import { isMetricsSignal } from '../../utils/get_data_stream_types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/types.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/types.ts index 61366d2fcf7a5..53546ff1f5fae 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/types.ts @@ -6,7 +6,7 @@ */ import type { MetricsExplorerSeries } from '../../../../../common/http_api'; -import { STATE_NAMES } from './states'; +import type { STATE_NAMES } from './states'; export interface Process { command: string; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/profiling/profiling_links.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/profiling/profiling_links.tsx index 5f0d3795f4743..e412a6608429a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/profiling/profiling_links.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/profiling/profiling_links.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; -import { +import type { TopNFunctionsLocator, StacktracesLocator, FlamegraphLocator, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/template/page.tsx b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/template/page.tsx index 5c187bb6186d6..74301e7c7593c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/template/page.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/template/page.tsx @@ -20,7 +20,7 @@ import { useAssetDetailsRenderPropsContext } from '../hooks/use_asset_details_re import { useMetadataStateContext } from '../hooks/use_metadata_state'; import { usePageHeader } from '../hooks/use_page_header'; import { useTabSwitcherContext } from '../hooks/use_tab_switcher'; -import { ContentTemplateProps } from '../types'; +import type { ContentTemplateProps } from '../types'; import { getIntegrationsAvailable } from '../utils'; import { InfraPageTemplate } from '../../shared/templates/infra_page_template'; import { OnboardingFlow } from '../../shared/templates/no_data_config'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/types.ts b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/types.ts index e49ed5afca20d..20fcd7405d6e8 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/asset_details/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/asset_details/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { TimeRange } from '@kbn/es-query'; -import { Search } from 'history'; +import type { TimeRange } from '@kbn/es-query'; +import type { Search } from 'history'; import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import type { InfraWaffleMapOptions } from '../../common/inventory/types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx b/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx index c1b362c46bd07..23e0317c8e746 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx @@ -7,7 +7,7 @@ import { EuiFieldSearch, EuiOutsideClickDetector, EuiPanel } from '@elastic/eui'; import React from 'react'; -import { QuerySuggestion } from '@kbn/unified-search-plugin/public'; +import type { QuerySuggestion } from '@kbn/unified-search-plugin/public'; import styled from '@emotion/styled'; import { composeStateUpdaters } from '../../utils/typed_react'; import { SuggestionItem } from './suggestion_item'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx b/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx index 486d41d2c9c93..55fcfd80c5be5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/autocomplete_field/suggestion_item.tsx @@ -9,7 +9,8 @@ import React from 'react'; import { EuiIcon, useEuiFontSize } from '@elastic/eui'; import styled from '@emotion/styled'; import type { Theme } from '@emotion/react'; -import { QuerySuggestion, QuerySuggestionTypes } from '@kbn/unified-search-plugin/public'; +import type { QuerySuggestion } from '@kbn/unified-search-plugin/public'; +import { QuerySuggestionTypes } from '@kbn/unified-search-plugin/public'; import { transparentize } from 'polished'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/empty_states/no_indices.tsx b/x-pack/solutions/observability/plugins/infra/public/components/empty_states/no_indices.tsx index d2f05502b2e6e..cb1ff7d87a861 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/empty_states/no_indices.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/empty_states/no_indices.tsx @@ -7,7 +7,7 @@ import React from 'react'; import styled from '@emotion/styled'; -import { EuiEmptyPromptProps } from '@elastic/eui'; +import type { EuiEmptyPromptProps } from '@elastic/eui'; import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template'; import { PageTemplate } from '../page_template'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/fixed_datepicker.tsx b/x-pack/solutions/observability/plugins/infra/public/components/fixed_datepicker.tsx index a33550399ae4e..3519670c36186 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/fixed_datepicker.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/fixed_datepicker.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiDatePicker, EuiDatePickerProps } from '@elastic/eui'; +import type { EuiDatePickerProps } from '@elastic/eui'; +import { EuiDatePicker } from '@elastic/eui'; import React from 'react'; import styled, { type StyledComponent } from '@emotion/styled'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/help_center_content.tsx b/x-pack/solutions/observability/plugins/infra/public/components/help_center_content.tsx index 76b8475dc7d42..c2ec7d08c37d3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/help_center_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/help_center_content.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { useEffect } from 'react'; +import type React from 'react'; +import { useEffect } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; interface HelpCenterContentProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_chart.tsx index 56d69fa9b6c7c..c8cc3e58b8c95 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_chart.tsx @@ -13,8 +13,8 @@ import { EuiLink, type EuiPanelProps, } from '@elastic/eui'; -import { Action } from '@kbn/ui-actions-plugin/public'; -import { UserMessage } from '@kbn/lens-plugin/public'; +import type { Action } from '@kbn/ui-actions-plugin/public'; +import type { UserMessage } from '@kbn/lens-plugin/public'; import { FormattedMessage } from '@kbn/i18n-react'; import { css } from '@emotion/react'; import { useLensAttributes, type UseLensAttributesParams } from '../../hooks/use_lens_attributes'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_wrapper.tsx b/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_wrapper.tsx index 01ce60b593462..0350b16a512a3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_wrapper.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/lens/lens_wrapper.tsx @@ -6,10 +6,10 @@ */ import React, { useEffect, useState, useRef, useCallback } from 'react'; import { ViewMode } from '@kbn/embeddable-plugin/public'; -import { TypedLensByValueInput } from '@kbn/lens-plugin/public'; +import type { TypedLensByValueInput } from '@kbn/lens-plugin/public'; import { css } from '@emotion/react'; import { useEuiTheme } from '@elastic/eui'; -import { LensAttributes } from '@kbn/lens-embeddable-utils'; +import type { LensAttributes } from '@kbn/lens-embeddable-utils'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import { ChartLoadingProgress, ChartPlaceholder } from './chart_placeholder'; import type { LensWrapperProps } from './types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/lens/metric_explanation/tooltip_content.tsx b/x-pack/solutions/observability/plugins/infra/public/components/lens/metric_explanation/tooltip_content.tsx index 52459e70e2b05..53e956768e787 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/lens/metric_explanation/tooltip_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/lens/metric_explanation/tooltip_content.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { HTMLAttributes } from 'react'; +import type { HTMLAttributes } from 'react'; +import React from 'react'; import { EuiText, EuiLink } from '@elastic/eui'; import { css } from '@emotion/react'; import { FormattedMessage } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/loading/__examples__/index.stories.tsx b/x-pack/solutions/observability/plugins/infra/public/components/loading/__examples__/index.stories.tsx index 161708b2bd358..1810698a09bff 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/loading/__examples__/index.stories.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/loading/__examples__/index.stories.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Meta, Story } from '@storybook/react/types-6-0'; +import type { Meta, Story } from '@storybook/react/types-6-0'; import React from 'react'; import { InfraLoadingPanel } from '..'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/loading_overlay_wrapper.tsx b/x-pack/solutions/observability/plugins/infra/public/components/loading_overlay_wrapper.tsx index 08bb2f33dec75..409f2c952c3cc 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/loading_overlay_wrapper.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/loading_overlay_wrapper.tsx @@ -7,7 +7,8 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import { transparentize } from 'polished'; -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; export const LoadingOverlayWrapper: React.FC< diff --git a/x-pack/solutions/observability/plugins/infra/public/components/loading_page.tsx b/x-pack/solutions/observability/plugins/infra/public/components/loading_page.tsx index 2b2859707a20d..9fd22bd8ab8a6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/loading_page.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/loading_page.tsx @@ -6,7 +6,8 @@ */ import { EuiEmptyPrompt, EuiLoadingSpinner, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { PageTemplate } from './page_template'; interface LoadingPageProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/log_stream/log_stream_react_embeddable.tsx b/x-pack/solutions/observability/plugins/infra/public/components/log_stream/log_stream_react_embeddable.tsx index f5fee9d94ea0e..5fada1aadcf6f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/log_stream/log_stream_react_embeddable.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/log_stream/log_stream_react_embeddable.tsx @@ -5,19 +5,20 @@ * 2.0. */ -import React, { FC, PropsWithChildren, useEffect, useMemo, useState } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { EuiCallOut, EuiLink, useEuiTheme } from '@elastic/eui'; -import { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; +import type { ReactEmbeddableFactory } from '@kbn/embeddable-plugin/public'; import { initializeTimeRange, initializeTitles, useFetchContext, } from '@kbn/presentation-publishing'; import { LogStream } from '@kbn/logs-shared-plugin/public'; -import { AppMountParameters, CoreStart } from '@kbn/core/public'; +import type { AppMountParameters, CoreStart } from '@kbn/core/public'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; -import { Query } from '@kbn/es-query'; +import type { Query } from '@kbn/es-query'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import useLocalStorage from 'react-use/lib/useLocalStorage'; import { FormattedMessage } from '@kbn/i18n-react'; @@ -25,7 +26,7 @@ import type { LogStreamApi, LogStreamSerializedState, Services } from './types'; import { datemathToEpochMillis } from '../../utils/datemath'; import { LOG_STREAM_EMBEDDABLE } from './constants'; import { useKibanaContextForPluginProvider } from '../../hooks/use_kibana'; -import { InfraClientStartDeps, InfraClientStartExports } from '../../types'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../../types'; export function getLogStreamEmbeddableFactory(services: Services) { const factory: ReactEmbeddableFactory< diff --git a/x-pack/solutions/observability/plugins/infra/public/components/log_stream/types.ts b/x-pack/solutions/observability/plugins/infra/public/components/log_stream/types.ts index 26a9201c41a94..5c2a3ae5bb723 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/log_stream/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/log_stream/types.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; -import { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; -import { SerializedTimeRange, SerializedTitles } from '@kbn/presentation-publishing'; -import { InfraClientStartDeps, InfraClientStartExports } from '../../types'; +import type { CoreStart } from '@kbn/core/public'; +import type { DefaultEmbeddableApi } from '@kbn/embeddable-plugin/public'; +import type { SerializedTimeRange, SerializedTitles } from '@kbn/presentation-publishing'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../../types'; export type LogStreamSerializedState = SerializedTitles & SerializedTimeRange; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/inline_log_view_splash_page.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/inline_log_view_splash_page.tsx index c2df977d972b1..579290f45051c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/inline_log_view_splash_page.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/inline_log_view_splash_page.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiButton } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; +import type { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; import { EuiEmptyPrompt } from '@elastic/eui'; import { EuiText } from '@elastic/eui'; import { PageTemplate } from '../page_template'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/notices_section.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/notices_section.tsx index faf7d61f9e1b2..e4108b08d0c23 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/notices_section.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/notices_section.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { QualityWarning } from '../../../../common/log_analysis'; +import type { QualityWarning } from '../../../../common/log_analysis'; import { LogAnalysisJobProblemIndicator } from './log_analysis_job_problem_indicator'; import { CategoryQualityWarnings } from './quality_warning_notices'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.stories.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.stories.tsx index e9522c257a62f..b91621fab67ce 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.stories.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.stories.tsx @@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions'; import { storiesOf } from '@storybook/react'; import React from 'react'; -import { QualityWarning } from '../../../../common/log_analysis'; +import type { QualityWarning } from '../../../../common/log_analysis'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; import { CategoryQualityWarnings } from './quality_warning_notices'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.tsx index e3b4ef43106be..c1704ba985ebd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/quality_warning_notices.tsx @@ -18,11 +18,11 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { groupBy } from 'lodash'; import React, { Fragment, useState } from 'react'; import styled from '@emotion/styled'; -import { +import type { CategoryQualityWarning, CategoryQualityWarningReason, - getFriendlyNameForPartitionId, } from '../../../../common/log_analysis'; +import { getFriendlyNameForPartitionId } from '../../../../common/log_analysis'; import { RecreateJobCallout } from './recreate_job_callout'; export const CategoryQualityWarnings: React.FC<{ diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/recreate_job_callout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/recreate_job_callout.tsx index 4a94825443212..5cc221624b969 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/recreate_job_callout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_job_status/recreate_job_callout.tsx @@ -6,7 +6,8 @@ */ import { EuiCallOut } from '@elastic/eui'; -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { RecreateJobButton } from '../log_analysis_setup/create_job_button'; export const RecreateJobCallout: FC< diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_results/datasets_selector.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_results/datasets_selector.tsx index b7faed1c2281f..17c22bcb66742 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_results/datasets_selector.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_results/datasets_selector.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useMemo } from 'react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/create_job_button.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/create_job_button.tsx index bc45896450897..2c35f7c7062ff 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/create_job_button.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/create_job_button.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButton, PropsOf } from '@elastic/eui'; +import type { PropsOf } from '@elastic/eui'; +import { EuiButton } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import { MissingSetupPrivilegesToolTip } from './missing_setup_privileges_tooltip'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_indices_form.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_indices_form.tsx index 7c0963aa2d9d3..ab79e5dc2c905 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_indices_form.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_indices_form.tsx @@ -9,12 +9,12 @@ import { EuiTitle, EuiText, EuiFormRow, EuiFlexGroup, EuiFlexItem, EuiLink } fro import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useMemo } from 'react'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; -import { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; +import type { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; import { LoadingOverlayWrapper } from '../../../loading_overlay_wrapper'; import { IndexSetupRow } from './index_setup_row'; -import { AvailableIndex, ValidationIndicesError } from './validation'; +import type { AvailableIndex, ValidationIndicesError } from './validation'; function getKibanaAdvancedSettingsHref(application: ApplicationStart) { return application.getUrlForApp('management', { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_timerange_form.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_timerange_form.tsx index 8ad9769c29fb1..0541269bbbc09 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_timerange_form.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/analysis_setup_timerange_form.tsx @@ -8,10 +8,11 @@ import { EuiTitle, EuiText, EuiFlexGroup, EuiFlexItem, EuiFormRow } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; -import moment, { Moment } from 'moment'; +import type { Moment } from 'moment'; +import moment from 'moment'; import React, { useMemo, useState } from 'react'; import { FixedDatePicker } from '../../../fixed_datepicker'; -import { TimeRangeValidationError } from './validation'; +import type { TimeRangeValidationError } from './validation'; const startTimeLabel = i18n.translate('xpack.infra.analysisSetup.startTimeLabel', { defaultMessage: 'Start time', diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_dataset_filter.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_dataset_filter.tsx index af961e0c6a555..d35a6ea7b24b6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_dataset_filter.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_dataset_filter.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { EuiSelectableOption } from '@elastic/eui'; import { EuiFilterButton, EuiFilterGroup, @@ -12,11 +13,10 @@ import { EuiPopover, EuiPopoverTitle, EuiSelectable, - EuiSelectableOption, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useMemo } from 'react'; -import { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; +import type { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; import { useVisibilityState } from '../../../../hooks/use_visibility_state'; import { CategoryQualityWarningReasonDescription } from '../../log_analysis_job_status/quality_warning_notices'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_row.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_row.tsx index d444cb59842c4..c10e48c013ee3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/index_setup_row.tsx @@ -8,9 +8,9 @@ import { EuiCheckbox, EuiCode, EuiIconTip, EuiSpacer, EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useMemo } from 'react'; -import { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; +import type { DatasetFilter, QualityWarning } from '../../../../../common/log_analysis'; import { IndexSetupDatasetFilter } from './index_setup_dataset_filter'; -import { AvailableIndex, ValidationUIError } from './validation'; +import type { AvailableIndex, ValidationUIError } from './validation'; export const IndexSetupRow: React.FC<{ index: AvailableIndex; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/initial_configuration_step.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/initial_configuration_step.tsx index bf8872edb6a7b..23713b6d9433e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/initial_configuration_step.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/initial_configuration_step.tsx @@ -6,21 +6,20 @@ */ import { EuiCallOut, EuiForm, EuiSpacer } from '@elastic/eui'; -import { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps'; +import type { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useMemo } from 'react'; -import { QualityWarning, SetupStatus } from '../../../../../common/log_analysis'; +import type { QualityWarning, SetupStatus } from '../../../../../common/log_analysis'; import { AnalysisSetupIndicesForm } from './analysis_setup_indices_form'; import { AnalysisSetupTimerangeForm } from './analysis_setup_timerange_form'; -import { +import type { AvailableIndex, TimeRangeValidationError, - timeRangeValidationErrorRT, ValidationIndicesError, - validationIndicesErrorRT, ValidationUIError, } from './validation'; +import { timeRangeValidationErrorRT, validationIndicesErrorRT } from './validation'; interface InitialConfigurationStepProps { setStartTime: (startTime: number | undefined) => void; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/validation.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/validation.tsx index 67b3fa164d90c..98648b04af807 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/validation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/initial_configuration_step/validation.tsx @@ -6,8 +6,9 @@ */ import * as rt from 'io-ts'; -import { ValidationIndicesError, validationIndicesErrorRT } from '../../../../../common/http_api'; -import { DatasetFilter } from '../../../../../common/log_analysis'; +import type { ValidationIndicesError } from '../../../../../common/http_api'; +import { validationIndicesErrorRT } from '../../../../../common/http_api'; +import type { DatasetFilter } from '../../../../../common/log_analysis'; export type { ValidationIndicesError }; export { validationIndicesErrorRT }; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/manage_jobs_button.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/manage_jobs_button.tsx index 7a97542729414..8453b9abe6dfa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/manage_jobs_button.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/manage_jobs_button.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButton, PropsOf } from '@elastic/eui'; +import type { PropsOf } from '@elastic/eui'; +import { EuiButton } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/missing_setup_privileges_tooltip.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/missing_setup_privileges_tooltip.tsx index 4d402a7be834d..c6e381053040f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/missing_setup_privileges_tooltip.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/missing_setup_privileges_tooltip.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiToolTip, PropsOf } from '@elastic/eui'; +import type { PropsOf } from '@elastic/eui'; +import { EuiToolTip } from '@elastic/eui'; import React from 'react'; import { missingMlPrivilegesTitle, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx index 9225ef1de78ad..82f768d251895 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx @@ -15,12 +15,12 @@ import { EuiCallOut, EuiCode, } from '@elastic/eui'; -import { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps'; +import type { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { SetupStatus } from '../../../../../common/log_analysis'; +import type { SetupStatus } from '../../../../../common/log_analysis'; import { CreateMLJobsButton } from './create_ml_jobs_button'; import { RecreateMLJobsButton } from './recreate_ml_jobs_button'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx index 6e79ef2a748bb..46ab072230a9a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx @@ -9,7 +9,7 @@ import { EuiButtonEmpty, EuiCard, EuiIcon, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useEffect, useState } from 'react'; -import { SetupStatus } from '../../../../../common/log_analysis'; +import type { SetupStatus } from '../../../../../common/log_analysis'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; import { CreateJobButton, RecreateJobButton } from '../create_job_button'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx index f11c04ab1c262..88276808760ee 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/setup_flyout.tsx @@ -15,11 +15,13 @@ import { EuiTitle, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { LogEntryCategoriesSetupView } from './log_entry_categories_setup_view'; import { LogEntryRateSetupView } from './log_entry_rate_setup_view'; import { LogAnalysisModuleList } from './module_list'; -import { ModuleId, moduleIds, useLogAnalysisSetupFlyoutStateContext } from './setup_flyout_state'; +import type { ModuleId } from './setup_flyout_state'; +import { moduleIds, useLogAnalysisSetupFlyoutStateContext } from './setup_flyout_state'; const FLYOUT_HEADING_ID = 'logAnalysisSetupFlyoutHeading'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/user_management_link.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/user_management_link.tsx index 6f4428ff339d3..b889f30cb49e1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/user_management_link.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_analysis_setup/user_management_link.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButton, EuiButtonProps } from '@elastic/eui'; +import type { EuiButtonProps } from '@elastic/eui'; +import { EuiButton } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_datepicker.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_datepicker.tsx index 097f2fbf755d7..214085dc6c6ce 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_datepicker.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_datepicker.tsx @@ -6,13 +6,8 @@ */ import React, { useCallback } from 'react'; -import { - EuiFlexGroup, - EuiFlexItem, - EuiSuperDatePicker, - EuiButton, - OnTimeChangeProps, -} from '@elastic/eui'; +import type { OnTimeChangeProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSuperDatePicker, EuiButton } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; interface LogDatepickerProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_entry_examples/log_entry_examples.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_entry_examples/log_entry_examples.tsx index c124866dad8e9..911c5c0e68458 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_entry_examples/log_entry_examples.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_entry_examples/log_entry_examples.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; import { LogEntryExampleMessagesEmptyIndicator } from './log_entry_examples_empty_indicator'; import { LogEntryExampleMessagesFailureIndicator } from './log_entry_examples_failure_indicator'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/density_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/density_chart.tsx index d45fe0c3c42c3..bcf9b4338b1c4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/density_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/density_chart.tsx @@ -10,7 +10,7 @@ import { area, curveMonotoneY } from 'd3-shape'; import { max } from 'lodash'; import * as React from 'react'; import styled from '@emotion/styled'; -import { LogEntriesSummaryBucket } from '@kbn/logs-shared-plugin/common'; +import type { LogEntriesSummaryBucket } from '@kbn/logs-shared-plugin/common'; import { COLOR_MODES_STANDARD } from '@elastic/eui'; interface DensityChartProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx index a2c1121ff2ba0..bc9c61db300da 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/log_minimap.tsx @@ -6,7 +6,7 @@ */ import styled from '@emotion/styled'; -import { +import type { LogEntriesSummaryBucket, LogEntriesSummaryHighlightsBucket, LogEntryTime, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker.tsx index d651dc0885ad7..12ec50da28eaa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker.tsx @@ -8,7 +8,10 @@ import { FormattedMessage } from '@kbn/i18n-react'; import styled from '@emotion/styled'; import { keyframes } from '@emotion/react'; -import { LogEntriesSummaryHighlightsBucket, LogEntryTime } from '@kbn/logs-shared-plugin/common'; +import type { + LogEntriesSummaryHighlightsBucket, + LogEntryTime, +} from '@kbn/logs-shared-plugin/common'; import * as React from 'react'; import { SearchMarkerTooltip } from './search_marker_tooltip'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx index a451241ce1bb4..64561a528051d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_marker_tooltip.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { calculatePopoverPosition, EuiPortal, withEuiTheme, WithEuiThemeProps } from '@elastic/eui'; +import type { WithEuiThemeProps } from '@elastic/eui'; +import { calculatePopoverPosition, EuiPortal, withEuiTheme } from '@elastic/eui'; // @ts-expect-error style types not defined import { euiToolTipStyles } from '@elastic/eui/lib/components/tool_tip/tool_tip.styles'; import { css } from '@emotion/react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_markers.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_markers.tsx index d0b401d213098..3fc7da615492e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_markers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_minimap/search_markers.tsx @@ -5,7 +5,10 @@ * 2.0. */ -import { LogEntriesSummaryHighlightsBucket, LogEntryTime } from '@kbn/logs-shared-plugin/common'; +import type { + LogEntriesSummaryHighlightsBucket, + LogEntryTime, +} from '@kbn/logs-shared-plugin/common'; import classNames from 'classnames'; import { scaleTime } from 'd3-scale'; import * as React from 'react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx index 7c66f690b9ec2..dacbbb78eb93f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_buttons.tsx @@ -7,7 +7,7 @@ import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { LogEntryTime } from '@kbn/logs-shared-plugin/common'; +import type { LogEntryTime } from '@kbn/logs-shared-plugin/common'; import classNames from 'classnames'; import * as React from 'react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx index 6533bebf74fc6..a834408037d93 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_search_controls/log_search_controls.tsx @@ -9,7 +9,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import classNames from 'classnames'; import * as React from 'react'; -import { LogEntryTime } from '@kbn/logs-shared-plugin/common'; +import type { LogEntryTime } from '@kbn/logs-shared-plugin/common'; import { LogSearchButtons } from './log_search_buttons'; import { LogSearchInput } from './log_search_input'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_text_scale_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_text_scale_controls.tsx index ec3de87b654af..eb00a998cf42a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logging/log_text_scale_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logging/log_text_scale_controls.tsx @@ -9,7 +9,8 @@ import { EuiFormRow, EuiRadioGroup } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import * as React from 'react'; -import { isTextScale, TextScale } from '../../../common/log_text_scale'; +import type { TextScale } from '../../../common/log_text_scale'; +import { isTextScale } from '../../../common/log_text_scale'; interface LogTextScaleControlsProps { availableTextScales: TextScale[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/logs_deprecation_callout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/logs_deprecation_callout.tsx index a9b14688888c3..04dc05b81a265 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/logs_deprecation_callout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/logs_deprecation_callout.tsx @@ -12,8 +12,9 @@ import { EuiButton } from '@elastic/eui'; import { getRouterLinkProps } from '@kbn/router-utils'; import useLocalStorage from 'react-use/lib/useLocalStorage'; import { css } from '@emotion/react'; -import { LocatorPublic } from '@kbn/share-plugin/common'; -import { DISCOVER_APP_LOCATOR, DiscoverAppLocatorParams } from '@kbn/discover-plugin/common'; +import type { LocatorPublic } from '@kbn/share-plugin/common'; +import type { DiscoverAppLocatorParams } from '@kbn/discover-plugin/common'; +import { DISCOVER_APP_LOCATOR } from '@kbn/discover-plugin/common'; import { useKibanaContextForPlugin } from '../hooks/use_kibana'; const pageConfigurations = { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/annomaly_summary.tsx b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/annomaly_summary.tsx index 7c2f5e61363b1..c0e155f0aa880 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/annomaly_summary.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/annomaly_summary.tsx @@ -8,7 +8,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { MetricsHostsAnomaly } from '../../../../../common/http_api/infra_ml/results'; +import type { MetricsHostsAnomaly } from '../../../../../common/http_api/infra_ml/results'; import { formatOneDecimalPlace } from '../../../../../common/log_analysis'; export const AnomalySummary = ({ anomaly }: { anomaly: MetricsHostsAnomaly }) => { diff --git a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/anomalies_table.tsx b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/anomalies_table.tsx index 95b42ab8f0f57..78200f6084d77 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/anomalies_table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/anomalies_table/anomalies_table.tsx @@ -6,7 +6,13 @@ */ import { i18n } from '@kbn/i18n'; -import React, { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; +import type { ChangeEvent } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; +import type { + EuiTableFieldDataColumnType, + EuiTableActionsColumnType, + Criteria, +} from '@elastic/eui'; import { EuiSuperDatePicker, useEuiTheme, @@ -14,9 +20,6 @@ import { EuiFieldSearch, EuiBasicTable, EuiFlexGroup, - EuiTableFieldDataColumnType, - EuiTableActionsColumnType, - Criteria, EuiContextMenuItem, EuiComboBox, EuiButtonIcon, @@ -34,7 +37,7 @@ import { type HostsLocatorParams, HOSTS_LOCATOR_ID } from '@kbn/observability-sh import { HOST_NAME_FIELD } from '../../../../../common/constants'; import { buildCombinedAssetFilter } from '../../../../utils/filters/build'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; -import { FetcherOptions } from '../../../../hooks/use_fetcher'; +import type { FetcherOptions } from '../../../../hooks/use_fetcher'; import { datemathToEpochMillis } from '../../../../utils/datemath'; import { useSorting } from '../../../../hooks/use_sorting'; import { useMetricsK8sAnomaliesResults } from '../../../../pages/metrics/inventory_view/hooks/use_metrics_k8s_anomalies'; @@ -49,10 +52,8 @@ import { AnomalySummary } from './annomaly_summary'; import { AnomalySeverityIndicator } from '../../../logging/log_analysis_results/anomaly_severity_indicator'; import { useMetricsDataViewContext, useSourceContext } from '../../../../containers/metrics_source'; import { createResultsUrl } from '../flyout_home'; -import { - useWaffleViewState, - WaffleViewState, -} from '../../../../pages/metrics/inventory_view/hooks/use_waffle_view_state'; +import type { WaffleViewState } from '../../../../pages/metrics/inventory_view/hooks/use_waffle_view_state'; +import { useWaffleViewState } from '../../../../pages/metrics/inventory_view/hooks/use_waffle_view_state'; type JobType = 'k8s' | 'hosts'; type SortField = 'anomalyScore' | 'startTime'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx index e2ee8a127a881..b777b1b4c5ca7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/ml/anomaly_detection/job_setup_screen.tsx @@ -27,7 +27,8 @@ import { useEuiTheme, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import moment, { Moment } from 'moment'; +import type { Moment } from 'moment'; +import moment from 'moment'; import { i18n } from '@kbn/i18n'; import { FeatureFeedbackButton, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { css } from '@emotion/react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/manage_views_flyout.tsx b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/manage_views_flyout.tsx index 67235c96a8bcc..0a82091fe4e71 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/manage_views_flyout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/manage_views_flyout.tsx @@ -22,9 +22,9 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; -import { EuiBasicTableColumn } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; import { EuiButtonIcon } from '@elastic/eui'; -import { SavedViewOperations, SavedViewItem } from '../../../common/saved_views'; +import type { SavedViewOperations, SavedViewItem } from '../../../common/saved_views'; export interface ManageViewsFlyoutProps { views?: SavedViewItem[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/toolbar_control.tsx b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/toolbar_control.tsx index 91a3cfb067489..74062024b7691 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/toolbar_control.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/toolbar_control.tsx @@ -9,9 +9,9 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiButton, EuiPopover, EuiListGroup, EuiListGroupItem } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { NonEmptyString } from '@kbn/io-ts-utils'; +import type { NonEmptyString } from '@kbn/io-ts-utils'; import { useBoolean } from '@kbn/react-hooks'; -import { +import type { SavedViewState, SavedViewOperations, SavedViewItem, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx index 08476357cec01..56f4ee3c812c7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/saved_views/upsert_modal.tsx @@ -8,6 +8,7 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; +import type { EuiSwitchEvent } from '@elastic/eui'; import { EuiButtonEmpty, EuiButton, @@ -19,10 +20,9 @@ import { EuiFieldText, EuiSpacer, EuiSwitch, - EuiSwitchEvent, EuiText, } from '@elastic/eui'; -import { NonEmptyString } from '@kbn/io-ts-utils'; +import type { NonEmptyString } from '@kbn/io-ts-utils'; interface Props { onClose(): void; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_overview.tsx b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_overview.tsx index e1143948f1674..66d6a976e78d3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_overview.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_overview.tsx @@ -10,10 +10,10 @@ import type { TimeRange } from '@kbn/es-query'; import { useSummaryTimeRange } from '@kbn/observability-plugin/public'; import { AlertConsumers, OBSERVABILITY_RULE_TYPE_IDS } from '@kbn/rule-data-utils'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { BrushEndListener, XYBrushEvent } from '@elastic/charts'; +import type { BrushEndListener, XYBrushEvent } from '@elastic/charts'; import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { INFRA_ALERT_CONSUMERS } from '../../../../common/constants'; -import { AlertsCount } from '../../../hooks/use_alerts_count'; +import type { AlertsCount } from '../../../hooks/use_alerts_count'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { createAlertsEsQuery } from '../../../utils/filters/create_alerts_es_query'; import { ALERT_STATUS_ALL } from './constants'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_status_filter.tsx b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_status_filter.tsx index 7c89fd0ed1c2a..3d64c6f702c6b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_status_filter.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/alerts_status_filter.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButtonGroup, EuiButtonGroupOptionProps } from '@elastic/eui'; +import type { EuiButtonGroupOptionProps } from '@elastic/eui'; +import { EuiButtonGroup } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import type { AlertStatus } from '@kbn/observability-plugin/common/typings'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/links/link_to_alerts_page.test.tsx b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/links/link_to_alerts_page.test.tsx index c2fed1888c6d2..5527f03b47d9f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/links/link_to_alerts_page.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/shared/alerts/links/link_to_alerts_page.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import { LinkToAlertsPage, LinkToAlertsPageProps } from './link_to_alerts_page'; +import type { LinkToAlertsPageProps } from './link_to_alerts_page'; +import { LinkToAlertsPage } from './link_to_alerts_page'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; import { coreMock } from '@kbn/core/public/mocks'; import { __IntlProvider as IntlProvider } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/infra_page_template.tsx b/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/infra_page_template.tsx index 61130564a2753..faa43d22f8fd0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/infra_page_template.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/infra_page_template.tsx @@ -8,14 +8,15 @@ import { i18n } from '@kbn/i18n'; import type { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; import React, { useEffect } from 'react'; -import { GetHasDataResponse } from '../../../../common/metrics_sources/get_has_data'; +import type { GetHasDataResponse } from '../../../../common/metrics_sources/get_has_data'; import { NoRemoteCluster } from '../../empty_states'; import { SourceErrorPage } from '../../source_error_page'; import { useMetricsDataViewContext, useSourceContext } from '../../../containers/metrics_source'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { ErrorCallout } from '../../error_callout'; import { isPending, useFetcher } from '../../../hooks/use_fetcher'; -import { OnboardingFlow, getNoDataConfig } from './no_data_config'; +import type { OnboardingFlow } from './no_data_config'; +import { getNoDataConfig } from './no_data_config'; export const InfraPageTemplate = ({ 'data-test-subj': _dataTestSubj, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/no_data_config.ts b/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/no_data_config.ts index 28e0d00c751a8..e5e5eb70c764e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/no_data_config.ts +++ b/x-pack/solutions/observability/plugins/infra/public/components/shared/templates/no_data_config.ts @@ -8,8 +8,8 @@ import { i18n } from '@kbn/i18n'; import type { EuiCardProps } from '@elastic/eui'; import type { NoDataConfig } from '@kbn/shared-ux-page-kibana-template'; -import { NoDataPageProps } from '@kbn/shared-ux-page-no-data-types'; -import { LocatorClient } from '@kbn/share-plugin/common/url_service'; +import type { NoDataPageProps } from '@kbn/shared-ux-page-no-data-types'; +import type { LocatorClient } from '@kbn/share-plugin/common/url_service'; import { OBSERVABILITY_ONBOARDING_LOCATOR, type ObservabilityOnboardingLocatorParams, diff --git a/x-pack/solutions/observability/plugins/infra/public/components/try_it_button.tsx b/x-pack/solutions/observability/plugins/infra/public/components/try_it_button.tsx index d58deec1274cd..28d2b1ea5fbce 100644 --- a/x-pack/solutions/observability/plugins/infra/public/components/try_it_button.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/components/try_it_button.tsx @@ -8,9 +8,10 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiBetaBadge, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { LinkDescriptor, useLinkProps } from '@kbn/observability-shared-plugin/public'; +import type { LinkDescriptor } from '@kbn/observability-shared-plugin/public'; +import { useLinkProps } from '@kbn/observability-shared-plugin/public'; import { css } from '@emotion/react'; -import { EuiLinkColor } from '@elastic/eui'; +import type { EuiLinkColor } from '@elastic/eui'; import { BetaBadge } from './beta_badge'; type OnClickEvent = React.MouseEvent | React.MouseEvent; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/header_action_menu_provider.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/header_action_menu_provider.tsx index b5177bf3f5aba..e19705f94dcdd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/header_action_menu_provider.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/header_action_menu_provider.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import React, { PropsWithChildren } from 'react'; -import { AppMountParameters } from '@kbn/core/public'; +import type { PropsWithChildren } from 'react'; +import React from 'react'; +import type { AppMountParameters } from '@kbn/core/public'; interface ContextProps { setHeaderActionMenu?: AppMountParameters['setHeaderActionMenu']; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/kbn_url_state_context.ts b/x-pack/solutions/observability/plugins/infra/public/containers/kbn_url_state_context.ts index 7a751e30f4082..4f7bce78f93b4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/kbn_url_state_context.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/kbn_url_state_context.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { IToasts } from '@kbn/core-notifications-browser'; +import type { IToasts } from '@kbn/core-notifications-browser'; import { createKbnUrlStateStorage, withNotifyOnErrors } from '@kbn/kibana-utils-plugin/public'; import createContainer from 'constate'; -import { History } from 'history'; +import type { History } from 'history'; import { useState } from 'react'; const useKbnUrlStateStorageFromRouter = ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/get_latest_categories_datasets_stats.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/get_latest_categories_datasets_stats.ts index 13c959841b2d7..a17137c417d66 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/get_latest_categories_datasets_stats.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/get_latest_categories_datasets_stats.ts @@ -5,13 +5,15 @@ * 2.0. */ -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { +import type { CategorizerStatus, + LogEntryCategoriesDatasetStats, +} from '../../../../../common/http_api'; +import { getLatestLogEntryCategoryDatasetsStatsRequestPayloadRT, getLatestLogEntryCategoryDatasetsStatsSuccessResponsePayloadRT, - LogEntryCategoriesDatasetStats, LOG_ANALYSIS_GET_LATEST_LOG_ENTRY_CATEGORY_DATASETS_STATS_PATH, } from '../../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_cleanup.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_cleanup.ts index 72cddce4ed632..1ee2f212bce13 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_cleanup.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_cleanup.ts @@ -9,7 +9,7 @@ import * as rt from 'io-ts'; import type { HttpHandler } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat, JobType } from '../../../../../common/http_api/latest'; +import type { IdFormat, JobType } from '../../../../../common/http_api/latest'; import { getDatafeedId, getJobId } from '../../../../../common/log_analysis'; interface DeleteJobsRequestArgs { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_get_jobs_summary_api.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_get_jobs_summary_api.ts index e1de17cb95a02..182b0b2d9caaf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_get_jobs_summary_api.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/ml_get_jobs_summary_api.ts @@ -9,7 +9,7 @@ import * as rt from 'io-ts'; import type { HttpHandler } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat, JobType } from '../../../../../common/http_api/latest'; +import type { IdFormat, JobType } from '../../../../../common/http_api/latest'; import { getJobId, jobCustomSettingsRT } from '../../../../../common/log_analysis'; interface RequestArgs { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/validate_indices.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/validate_indices.ts index e1686df4899eb..d7797e1d11a8f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/validate_indices.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/api/validate_indices.ts @@ -9,9 +9,9 @@ import type { HttpHandler } from '@kbn/core/public'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { decodeOrThrow } from '@kbn/io-ts-utils'; +import type { ValidationIndicesFieldSpecification } from '../../../../../common/http_api'; import { LOG_ANALYSIS_VALIDATE_INDICES_PATH, - ValidationIndicesFieldSpecification, validationIndicesRequestPayloadRT, validationIndicesResponsePayloadRT, } from '../../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_capabilities.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_capabilities.tsx index 9dbcee8f7c4f0..e2982a260bc9c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_capabilities.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_capabilities.tsx @@ -9,10 +9,8 @@ import createContainer from 'constate'; import { useMemo, useState, useEffect } from 'react'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; -import { - getMlCapabilitiesResponsePayloadRT, - GetMlCapabilitiesResponsePayload, -} from './api/ml_api_types'; +import type { GetMlCapabilitiesResponsePayload } from './api/ml_api_types'; +import { getMlCapabilitiesResponsePayloadRT } from './api/ml_api_types'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; export const useLogAnalysisCapabilities = () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_cleanup.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_cleanup.tsx index b70ca688f53d6..aad8660f19260 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_cleanup.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_cleanup.tsx @@ -6,7 +6,7 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { IdFormat, JobType } from '../../../../common/http_api/latest'; +import type { IdFormat, JobType } from '../../../../common/http_api/latest'; import { getJobId } from '../../../../common/log_analysis'; import { callDeleteJobs, callGetJobDeletionTasks, callStopDatafeeds } from './api/ml_cleanup'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module.tsx index 5bc78bb1b1bf5..6b3237e3edd10 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module.tsx @@ -8,12 +8,12 @@ import { useCallback, useMemo } from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import { useLogMlJobIdFormatsShimContext } from '../../../pages/logs/shared/use_log_ml_job_id_formats_shim'; -import { IdFormat, JobType } from '../../../../common/http_api/latest'; -import { DatasetFilter } from '../../../../common/log_analysis'; +import type { IdFormat, JobType } from '../../../../common/http_api/latest'; +import type { DatasetFilter } from '../../../../common/log_analysis'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; import { useModuleStatus } from './log_analysis_module_status'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; export const useLogAnalysisModule = ({ sourceConfiguration, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_configuration.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_configuration.ts index 5cf26d75e9f00..795c7ad6900a7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_configuration.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_configuration.ts @@ -7,9 +7,9 @@ import { useMemo } from 'react'; import equal from 'fast-deep-equal'; -import { JobType } from '../../../../common/http_api/latest'; -import { JobSummary } from './api/ml_get_jobs_summary_api'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; +import type { JobType } from '../../../../common/http_api/latest'; +import type { JobSummary } from './api/ml_get_jobs_summary_api'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; export const useLogAnalysisModuleConfiguration = ({ moduleDescriptor, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_definition.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_definition.tsx index faff4a9d3d3c2..d787ede7b8f26 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_definition.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_definition.tsx @@ -6,13 +6,13 @@ */ import { useCallback, useMemo, useState } from 'react'; -import { IdFormat, JobType } from '../../../../common/http_api/latest'; +import type { IdFormat, JobType } from '../../../../common/http_api/latest'; import { getJobId } from '../../../../common/log_analysis'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; -import { JobSummary } from './api/ml_get_jobs_summary_api'; -import { GetMlModuleResponsePayload, JobDefinition } from './api/ml_get_module'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; +import type { JobSummary } from './api/ml_get_jobs_summary_api'; +import type { GetMlModuleResponsePayload, JobDefinition } from './api/ml_get_module'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; export const useLogAnalysisModuleDefinition = ({ sourceConfiguration: { spaceId, sourceId }, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_status.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_status.tsx index b6ce4085286e6..a0dbe3a3fae7f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_status.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_status.tsx @@ -7,17 +7,12 @@ import { useReducer } from 'react'; -import { IdFormat, JobType } from '../../../../common/http_api/latest'; -import { - JobStatus, - getDatafeedId, - getJobId, - isJobStatusWithResults, - SetupStatus, -} from '../../../../common/log_analysis'; -import { FetchJobStatusResponsePayload, JobSummary } from './api/ml_get_jobs_summary_api'; -import { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; -import { MandatoryProperty } from '../../../../common/utility_types'; +import type { IdFormat, JobType } from '../../../../common/http_api/latest'; +import type { JobStatus, SetupStatus } from '../../../../common/log_analysis'; +import { getDatafeedId, getJobId, isJobStatusWithResults } from '../../../../common/log_analysis'; +import type { FetchJobStatusResponsePayload, JobSummary } from './api/ml_get_jobs_summary_api'; +import type { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; +import type { MandatoryProperty } from '../../../../common/utility_types'; interface StatusReducerState { jobStatus: Record; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_types.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_types.ts index 2e0a6b742ce11..506e16f418fcf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_types.ts @@ -7,16 +7,16 @@ import type { HttpHandler } from '@kbn/core/public'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { IdFormat, JobType } from '../../../../common/http_api/latest'; -import { +import type { IdFormat, JobType } from '../../../../common/http_api/latest'; +import type { ValidateLogEntryDatasetsResponsePayload, ValidationIndicesResponsePayload, } from '../../../../common/http_api'; -import { DatasetFilter } from '../../../../common/log_analysis'; -import { DeleteJobsResponsePayload } from './api/ml_cleanup'; -import { FetchJobStatusResponsePayload } from './api/ml_get_jobs_summary_api'; -import { GetMlModuleResponsePayload } from './api/ml_get_module'; -import { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; +import type { DatasetFilter } from '../../../../common/log_analysis'; +import type { DeleteJobsResponsePayload } from './api/ml_cleanup'; +import type { FetchJobStatusResponsePayload } from './api/ml_get_jobs_summary_api'; +import type { GetMlModuleResponsePayload } from './api/ml_get_module'; +import type { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; export type { JobModelSizeStats, JobSummary } from './api/ml_get_jobs_summary_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_setup_state.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_setup_state.ts index fa611194b092f..97728cc9eaf5a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_setup_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/log_analysis_setup_state.ts @@ -8,21 +8,21 @@ import { isEqual } from 'lodash'; import { useCallback, useEffect, useMemo, useState } from 'react'; import usePrevious from 'react-use/lib/usePrevious'; -import { JobType } from '../../../../common/http_api/latest'; +import type { JobType } from '../../../../common/http_api/latest'; +import type { DatasetFilter } from '../../../../common/log_analysis'; import { combineDatasetFilters, - DatasetFilter, filterDatasetFilter, isExampleDataIndex, } from '../../../../common/log_analysis'; -import { +import type { AvailableIndex, ValidationIndicesError, ValidationUIError, } from '../../../components/logging/log_analysis_setup/initial_configuration_step'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './log_analysis_module_types'; type SetupHandler = ( indices: string[], diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/module_descriptor.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/module_descriptor.ts index fbcc4d166d4b4..09dc53d65e487 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/module_descriptor.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/module_descriptor.ts @@ -8,14 +8,16 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { i18n } from '@kbn/i18n'; import type { HttpHandler } from '@kbn/core/public'; -import { IdFormat } from '../../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../../common/http_api/latest'; +import type { + DatasetFilter, + LogEntryCategoriesJobType, +} from '../../../../../../common/log_analysis'; import { bucketSpan, categoriesMessageField, - DatasetFilter, getJobId, logEntryCategoriesJobType, - LogEntryCategoriesJobType, logEntryCategoriesJobTypes, partitionField, } from '../../../../../../common/log_analysis'; @@ -25,7 +27,7 @@ import { callSetupMlModuleAPI } from '../../api/ml_setup_module_api'; import { callValidateDatasetsAPI } from '../../api/validate_datasets'; import { callValidateIndicesAPI } from '../../api/validate_indices'; import { cleanUpJobsAndDatafeeds } from '../../log_analysis_cleanup'; -import { ModuleDescriptor, ModuleSourceConfiguration } from '../../log_analysis_module_types'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from '../../log_analysis_module_types'; const moduleId = 'logs_ui_categories'; const moduleName = i18n.translate('xpack.infra.logs.analysis.logEntryCategoriesModuleName', { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_module.tsx index 98d6213ad4357..901bda6b068d4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_module.tsx @@ -8,11 +8,11 @@ import createContainer from 'constate'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { useMemo } from 'react'; -import { IdFormat } from '../../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../../common/http_api/latest'; import { useLogAnalysisModule } from '../../log_analysis_module'; import { useLogAnalysisModuleConfiguration } from '../../log_analysis_module_configuration'; import { useLogAnalysisModuleDefinition } from '../../log_analysis_module_definition'; -import { ModuleSourceConfiguration } from '../../log_analysis_module_types'; +import type { ModuleSourceConfiguration } from '../../log_analysis_module_types'; import { logEntryCategoriesModule } from './module_descriptor'; import { useLogEntryCategoriesQuality } from './use_log_entry_categories_quality'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_quality.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_quality.ts index e2f2a958dd961..9dc0c0cd2b96d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_quality.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_categories/use_log_entry_categories_quality.ts @@ -7,17 +7,15 @@ import { useMemo, useState } from 'react'; import useDeepCompareEffect from 'react-use/lib/useDeepCompareEffect'; -import { +import type { CategoryQualityWarningReason, QualityWarning, } from '../../../../../../common/log_analysis'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../../../hooks/use_tracked_promise'; -import { - callGetLatestCategoriesDatasetsStatsAPI, - LogEntryCategoriesDatasetStats, -} from '../../api/get_latest_categories_datasets_stats'; -import { JobModelSizeStats, JobSummary } from '../../log_analysis_module_types'; +import type { LogEntryCategoriesDatasetStats } from '../../api/get_latest_categories_datasets_stats'; +import { callGetLatestCategoriesDatasetsStatsAPI } from '../../api/get_latest_categories_datasets_stats'; +import type { JobModelSizeStats, JobSummary } from '../../log_analysis_module_types'; export const useLogEntryCategoriesQuality = ({ jobSummaries }: { jobSummaries: JobSummary[] }) => { const { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/module_descriptor.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/module_descriptor.ts index a0dc8e68bf9a7..84710dfa292b1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/module_descriptor.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/module_descriptor.ts @@ -8,17 +8,16 @@ import { i18n } from '@kbn/i18n'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import type { HttpHandler } from '@kbn/core/public'; -import { IdFormat } from '../../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../../common/http_api/latest'; +import type { DatasetFilter, LogEntryRateJobType } from '../../../../../../common/log_analysis'; import { bucketSpan, - DatasetFilter, getJobId, logEntryRateJobType, - LogEntryRateJobType, logEntryRateJobTypes, partitionField, } from '../../../../../../common/log_analysis'; -import { ModuleDescriptor, ModuleSourceConfiguration } from '../../log_analysis_module_types'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from '../../log_analysis_module_types'; import { cleanUpJobsAndDatafeeds } from '../../log_analysis_cleanup'; import { callJobsSummaryAPI } from '../../api/ml_get_jobs_summary_api'; import { callGetMlModuleAPI } from '../../api/ml_get_module'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/use_log_entry_rate_module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/use_log_entry_rate_module.tsx index fa3d13294a634..a867491eeadad 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/use_log_entry_rate_module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/log_analysis/modules/log_entry_rate/use_log_entry_rate_module.tsx @@ -8,8 +8,8 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import createContainer from 'constate'; import { useMemo } from 'react'; -import { IdFormat } from '../../../../../../common/http_api/latest'; -import { ModuleSourceConfiguration } from '../../log_analysis_module_types'; +import type { IdFormat } from '../../../../../../common/http_api/latest'; +import type { ModuleSourceConfiguration } from '../../log_analysis_module_types'; import { useLogAnalysisModule } from '../../log_analysis_module'; import { useLogAnalysisModuleConfiguration } from '../../log_analysis_module_configuration'; import { useLogAnalysisModuleDefinition } from '../../log_analysis_module_definition'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/view_log_in_context/view_log_in_context.ts b/x-pack/solutions/observability/plugins/infra/public/containers/logs/view_log_in_context/view_log_in_context.ts index 8327a14c28256..ecb84f3535711 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/view_log_in_context/view_log_in_context.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/view_log_in_context/view_log_in_context.ts @@ -7,7 +7,7 @@ import { useState } from 'react'; import createContainer from 'constate'; -import { LogEntry, LogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { LogEntry, LogViewReference } from '@kbn/logs-shared-plugin/common'; interface ViewLogInContextProps { logViewReference: LogViewReference; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/logs/with_log_textview.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/logs/with_log_textview.tsx index f57368709467d..7a394cd94fc13 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/logs/with_log_textview.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/logs/with_log_textview.tsx @@ -8,11 +8,8 @@ import React, { useMemo } from 'react'; import { UrlStateContainer } from '../../utils/url_state'; -import { - availableTextScales, - useLogViewConfigurationContext, - TextScale, -} from './log_view_configuration'; +import type { TextScale } from './log_view_configuration'; +import { availableTextScales, useLogViewConfigurationContext } from './log_view_configuration'; interface LogTextviewUrlState { textScale?: TextScale; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/metrics_source/source.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/metrics_source/source.tsx index 5e9a83f38ab01..4dfec43056b1d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/metrics_source/source.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/metrics_source/source.tsx @@ -8,7 +8,7 @@ import createContainer from 'constate'; import React, { useEffect, useState } from 'react'; -import { IHttpFetchError } from '@kbn/core-http-browser'; +import type { IHttpFetchError } from '@kbn/core-http-browser'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import type { MetricsSourceConfigurationResponse, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_capabilities.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_capabilities.tsx index be8dd903fb550..3c15b0248b10a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_capabilities.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_capabilities.tsx @@ -12,10 +12,8 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { identity } from 'fp-ts/lib/function'; import { throwErrors, createPlainError } from '@kbn/io-ts-utils'; import { useTrackedPromise } from '../../hooks/use_tracked_promise'; -import { - getMlCapabilitiesResponsePayloadRT, - GetMlCapabilitiesResponsePayload, -} from './api/ml_api_types'; +import type { GetMlCapabilitiesResponsePayload } from './api/ml_api_types'; +import { getMlCapabilitiesResponsePayloadRT } from './api/ml_api_types'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; export const useInfraMLCapabilities = () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_cleanup.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_cleanup.tsx index a5c89e93b0f63..449d9bc2c4886 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_cleanup.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_cleanup.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import { getJobId } from '../../../common/infra_ml'; import { callDeleteJobs, callGetJobDeletionTasks, callStopDatafeeds } from './api/ml_cleanup'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module.tsx index 3d0534935e019..f11762264b556 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module.tsx @@ -9,7 +9,7 @@ import { useCallback, useMemo } from 'react'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import { useTrackedPromise } from '../../hooks/use_tracked_promise'; import { useModuleStatus } from './infra_ml_module_status'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; export const useInfraMLModule = ({ sourceConfiguration, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_configuration.ts b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_configuration.ts index c258debdddbca..4d78c915ea375 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_configuration.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_configuration.ts @@ -6,8 +6,8 @@ */ import { useMemo } from 'react'; -import { JobSummary } from './api/ml_get_jobs_summary_api'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; +import type { JobSummary } from './api/ml_get_jobs_summary_api'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; export const useInfraMLModuleConfiguration = ({ moduleDescriptor, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_definition.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_definition.tsx index 47dd4430c739d..b7243ed52f872 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_definition.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_definition.tsx @@ -9,9 +9,9 @@ import { useCallback, useMemo, useState } from 'react'; import { getJobId } from '../../../common/infra_ml'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import { useTrackedPromise } from '../../hooks/use_tracked_promise'; -import { JobSummary } from './api/ml_get_jobs_summary_api'; -import { GetMlModuleResponsePayload, JobDefinition } from './api/ml_get_module'; -import { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; +import type { JobSummary } from './api/ml_get_jobs_summary_api'; +import type { GetMlModuleResponsePayload, JobDefinition } from './api/ml_get_module'; +import type { ModuleDescriptor, ModuleSourceConfiguration } from './infra_ml_module_types'; export const useInfraMLModuleDefinition = ({ sourceConfiguration: { spaceId, sourceId }, diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_status.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_status.tsx index 26b8a51da6d2b..9bad341dfbff6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_status.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_status.tsx @@ -7,16 +7,11 @@ import { useReducer } from 'react'; -import { - JobStatus, - getDatafeedId, - getJobId, - isJobStatusWithResults, - SetupStatus, -} from '../../../common/infra_ml'; -import { FetchJobStatusResponsePayload, JobSummary } from './api/ml_get_jobs_summary_api'; -import { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; -import { MandatoryProperty } from '../../../common/utility_types'; +import type { JobStatus, SetupStatus } from '../../../common/infra_ml'; +import { getDatafeedId, getJobId, isJobStatusWithResults } from '../../../common/infra_ml'; +import type { FetchJobStatusResponsePayload, JobSummary } from './api/ml_get_jobs_summary_api'; +import type { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; +import type { MandatoryProperty } from '../../../common/utility_types'; interface StatusReducerState { jobStatus: Record; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_types.ts b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_types.ts index 9f939a3f15ac9..0a47d6d60a56e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/infra_ml_module_types.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { HttpHandler } from '@kbn/core/public'; -import { +import type { HttpHandler } from '@kbn/core/public'; +import type { ValidateLogEntryDatasetsResponsePayload, ValidationIndicesResponsePayload, } from '../../../common/http_api'; -import { DeleteJobsResponsePayload } from './api/ml_cleanup'; -import { FetchJobStatusResponsePayload } from './api/ml_get_jobs_summary_api'; -import { GetMlModuleResponsePayload } from './api/ml_get_module'; -import { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; +import type { DeleteJobsResponsePayload } from './api/ml_cleanup'; +import type { FetchJobStatusResponsePayload } from './api/ml_get_jobs_summary_api'; +import type { GetMlModuleResponsePayload } from './api/ml_get_module'; +import type { SetupMlModuleResponsePayload } from './api/ml_setup_module_api'; export type { JobModelSizeStats, JobSummary } from './api/ml_get_jobs_summary_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module.tsx index f200ab22c043f..c49bb0be05e1b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module.tsx @@ -10,7 +10,7 @@ import { useMemo } from 'react'; import { useInfraMLModule } from '../../infra_ml_module'; import { useInfraMLModuleConfiguration } from '../../infra_ml_module_configuration'; import { useInfraMLModuleDefinition } from '../../infra_ml_module_definition'; -import { ModuleSourceConfiguration } from '../../infra_ml_module_types'; +import type { ModuleSourceConfiguration } from '../../infra_ml_module_types'; import { metricHostsModule } from './module_descriptor'; export const useMetricHostsModule = ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts index 1b7899e517999..51e137d296111 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_hosts/module_descriptor.ts @@ -6,24 +6,20 @@ */ import { i18n } from '@kbn/i18n'; -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import MemoryJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/hosts_memory_usage.json'; import MemoryDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_memory_usage.json'; import NetworkInJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/hosts_network_in.json'; import NetworkInDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_in.json'; import NetworkOutJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/hosts_network_out.json'; import NetworkOutDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_out.json'; -import { ModuleDescriptor, SetUpModuleArgs } from '../../infra_ml_module_types'; +import type { ModuleDescriptor, SetUpModuleArgs } from '../../infra_ml_module_types'; import { cleanUpJobsAndDatafeeds } from '../../infra_ml_cleanup'; import { callJobsSummaryAPI } from '../../api/ml_get_jobs_summary_api'; import { callGetMlModuleAPI } from '../../api/ml_get_module'; import { callSetupMlModuleAPI } from '../../api/ml_setup_module_api'; -import { - metricsHostsJobTypes, - getJobId, - MetricsHostsJobType, - bucketSpan, -} from '../../../../../common/infra_ml'; +import type { MetricsHostsJobType } from '../../../../../common/infra_ml'; +import { metricsHostsJobTypes, getJobId, bucketSpan } from '../../../../../common/infra_ml'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; type JobType = 'hosts_memory_usage' | 'hosts_network_in' | 'hosts_network_out'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module.tsx index 08f4f49058dbe..6c2964b57e409 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module.tsx @@ -10,7 +10,7 @@ import { useMemo } from 'react'; import { useInfraMLModule } from '../../infra_ml_module'; import { useInfraMLModuleConfiguration } from '../../infra_ml_module_configuration'; import { useInfraMLModuleDefinition } from '../../infra_ml_module_definition'; -import { ModuleSourceConfiguration } from '../../infra_ml_module_types'; +import type { ModuleSourceConfiguration } from '../../infra_ml_module_types'; import { metricHostsModule } from './module_descriptor'; export const useMetricK8sModule = ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts index 88fe64e91f3ed..739ef1fd72913 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/ml/modules/metrics_k8s/module_descriptor.ts @@ -6,24 +6,20 @@ */ import { i18n } from '@kbn/i18n'; -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import MemoryJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/k8s_memory_usage.json'; import MemoryDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_memory_usage.json'; import NetworkInJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/k8s_network_in.json'; import NetworkInDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_in.json'; import NetworkOutJob from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/k8s_network_out.json'; import NetworkOutDatafeed from '@kbn/ml-plugin/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_out.json'; -import { ModuleDescriptor, SetUpModuleArgs } from '../../infra_ml_module_types'; +import type { ModuleDescriptor, SetUpModuleArgs } from '../../infra_ml_module_types'; import { cleanUpJobsAndDatafeeds } from '../../infra_ml_cleanup'; import { callJobsSummaryAPI } from '../../api/ml_get_jobs_summary_api'; import { callGetMlModuleAPI } from '../../api/ml_get_module'; import { callSetupMlModuleAPI } from '../../api/ml_setup_module_api'; -import { - metricsK8SJobTypes, - getJobId, - MetricK8sJobType, - bucketSpan, -} from '../../../../../common/infra_ml'; +import type { MetricK8sJobType } from '../../../../../common/infra_ml'; +import { metricsK8SJobTypes, getJobId, bucketSpan } from '../../../../../common/infra_ml'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; type JobType = 'k8s_memory_usage' | 'k8s_network_in' | 'k8s_network_out'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/plugin_config_context.ts b/x-pack/solutions/observability/plugins/infra/public/containers/plugin_config_context.ts index a9b91c3f1aaa3..7313805509329 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/plugin_config_context.ts +++ b/x-pack/solutions/observability/plugins/infra/public/containers/plugin_config_context.ts @@ -6,7 +6,7 @@ */ import { createContext, useContext } from 'react'; -import { InfraPublicConfig } from '../../common/plugin_config_types'; +import type { InfraPublicConfig } from '../../common/plugin_config_types'; const PluginConfigContext = createContext(undefined); diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/react_query_provider.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/react_query_provider.tsx index cc47833ae3217..3a425aead3517 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/react_query_provider.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/react_query_provider.tsx @@ -7,7 +7,8 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { QueryClient, QueryClientConfig, QueryClientProvider } from '@tanstack/react-query'; +import type { QueryClientConfig } from '@tanstack/react-query'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import merge from 'lodash/merge'; import { EuiButtonIcon } from '@elastic/eui'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/triggers_actions_context.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/triggers_actions_context.tsx index 4851d5ddb1aa0..dd881f7441dd0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/triggers_actions_context.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/triggers_actions_context.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; -import { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; +import type { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; interface ContextProps { triggersActionsUI: TriggersAndActionsUIPublicPluginStart | null; diff --git a/x-pack/solutions/observability/plugins/infra/public/containers/with_kuery_autocompletion.tsx b/x-pack/solutions/observability/plugins/infra/public/containers/with_kuery_autocompletion.tsx index 26711bd7649b2..cbac00b379f84 100644 --- a/x-pack/solutions/observability/plugins/infra/public/containers/with_kuery_autocompletion.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/containers/with_kuery_autocompletion.tsx @@ -6,14 +6,11 @@ */ import React from 'react'; -import { - withKibana, - KibanaReactContextValue, - KibanaServices, -} from '@kbn/kibana-react-plugin/public'; +import type { KibanaReactContextValue, KibanaServices } from '@kbn/kibana-react-plugin/public'; +import { withKibana } from '@kbn/kibana-react-plugin/public'; import type { DataView } from '@kbn/data-views-plugin/public'; -import { QuerySuggestion } from '@kbn/unified-search-plugin/public'; -import { InfraClientStartDeps } from '../types'; +import type { QuerySuggestion } from '@kbn/unified-search-plugin/public'; +import type { InfraClientStartDeps } from '../types'; interface WithKueryAutocompletionLifecycleProps { kibana: KibanaReactContextValue; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.test.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.test.ts index e6f0e63c2c29b..028f18ec5559c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.test.ts @@ -9,10 +9,11 @@ import { waitFor, renderHook } from '@testing-library/react'; import { ALERT_STATUS } from '@kbn/rule-data-utils'; import { useAlertsCount } from './use_alerts_count'; -import { KibanaReactContextValue, useKibana } from '@kbn/kibana-react-plugin/public'; -import { InfraClientStartDeps } from '../types'; +import type { KibanaReactContextValue } from '@kbn/kibana-react-plugin/public'; +import { useKibana } from '@kbn/kibana-react-plugin/public'; +import type { InfraClientStartDeps } from '../types'; import { coreMock } from '@kbn/core/public/mocks'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; const mockedAlertsCountResponse = { aggregations: { diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.ts index aab542d597f92..5330d0a58755d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_alerts_count.ts @@ -9,12 +9,12 @@ import { useEffect, useRef } from 'react'; import useAsyncFn from 'react-use/lib/useAsyncFn'; import { BASE_RAC_ALERTS_API_PATH } from '@kbn/rule-registry-plugin/common/constants'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import type { HttpSetup } from '@kbn/core/public'; import { ALERT_STATUS_ACTIVE, ALERT_STATUS_RECOVERED } from '@kbn/rule-data-utils'; -import { InfraClientCoreStart } from '../types'; +import type { InfraClientCoreStart } from '../types'; interface UseAlertsCountProps { ruleTypeIds: string[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_document_title.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_document_title.tsx index 82fb5a669eb91..809052ac6fbb4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_document_title.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_document_title.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { useEffect } from 'react'; import { observabilityTitle } from '../translations'; import { useKibanaContextForPlugin } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_fetcher.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_fetcher.tsx index c0a96986098a0..de061680d6235 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_fetcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_fetcher.tsx @@ -6,10 +6,11 @@ */ import { i18n } from '@kbn/i18n'; -import React, { DependencyList, useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import { HttpFetchOptions, HttpSetup } from '@kbn/core-http-browser'; -import { BehaviorSubject } from 'rxjs'; -import { InfraHttpError } from '../types'; +import type { DependencyList } from 'react'; +import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import type { HttpFetchOptions, HttpSetup } from '@kbn/core-http-browser'; +import type { BehaviorSubject } from 'rxjs'; +import type { InfraHttpError } from '../types'; import { useKibanaContextForPlugin } from './use_kibana'; import { useSearchSessionContext } from './use_search_session'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_inventory_views.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_inventory_views.ts index d334baa0e5fdf..3a53e5ef20b57 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_inventory_views.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_inventory_views.ts @@ -10,14 +10,14 @@ import { fold } from 'fp-ts/lib/Either'; import { constant, identity } from 'fp-ts/lib/function'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { useUiTracker, useUrlState } from '@kbn/observability-shared-plugin/public'; -import { +import type { MutationContext, SavedViewResult, ServerError, UpdateViewParams, } from '../../common/saved_views'; -import { MetricsSourceConfigurationResponse } from '../../common/metrics_sources'; -import { +import type { MetricsSourceConfigurationResponse } from '../../common/metrics_sources'; +import type { CreateInventoryViewAttributesRequestPayload, UpdateInventoryViewAttributesRequestPayload, } from '../../common/http_api/latest'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_is_dark_mode.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_is_dark_mode.ts index 93260405cce59..18fde942f69e3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_is_dark_mode.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_is_dark_mode.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreTheme } from '@kbn/core/public'; +import type { CoreTheme } from '@kbn/core/public'; import useObservable from 'react-use/lib/useObservable'; import { of } from 'rxjs'; import { useKibanaContextForPlugin } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana.tsx index 5dde349e4de5b..33e1b16c76910 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana.tsx @@ -6,21 +6,12 @@ */ import type { PropsOf } from '@elastic/eui'; -import React, { - useMemo, - createElement, - createContext, - useContext, - FC, - PropsWithChildren, -} from 'react'; -import { CoreStart } from '@kbn/core/public'; -import { - createKibanaReactContext, - KibanaReactContextValue, - useKibana, -} from '@kbn/kibana-react-plugin/public'; -import { InfraClientCoreSetup, InfraClientStartDeps, InfraClientStartExports } from '../types'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useMemo, createElement, createContext, useContext } from 'react'; +import type { CoreStart } from '@kbn/core/public'; +import type { KibanaReactContextValue } from '@kbn/kibana-react-plugin/public'; +import { createKibanaReactContext, useKibana } from '@kbn/kibana-react-plugin/public'; +import type { InfraClientCoreSetup, InfraClientStartDeps, InfraClientStartExports } from '../types'; export type PluginKibanaContextValue = CoreStart & InfraClientStartDeps & InfraClientStartExports; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_index_patterns.mock.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_index_patterns.mock.tsx index 5eb3cb0e13886..cbbeeac06d052 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_index_patterns.mock.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_index_patterns.mock.tsx @@ -5,15 +5,16 @@ * 2.0. */ -import React, { useMemo, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useMemo } from 'react'; import { firstValueFrom, from, of } from 'rxjs'; import { delay } from 'rxjs'; -import { CoreStart } from '@kbn/core/public'; -import { FieldSpec } from '@kbn/data-views-plugin/common'; -import { DataView, DataViewsContract } from '@kbn/data-views-plugin/public'; +import type { CoreStart } from '@kbn/core/public'; +import type { FieldSpec } from '@kbn/data-views-plugin/common'; +import type { DataView, DataViewsContract } from '@kbn/data-views-plugin/public'; import { DataViewField } from '@kbn/data-views-plugin/common'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import { Pick2 } from '../../common/utility_types'; +import type { Pick2 } from '../../common/utility_types'; type MockIndexPattern = Pick< DataView, diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_timefilter_time.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_timefilter_time.tsx index 5e1b73b018881..bd27225e4eac1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_timefilter_time.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_kibana_timefilter_time.tsx @@ -10,7 +10,7 @@ import { useCallback, useEffect } from 'react'; import useUpdateEffect from 'react-use/lib/useUpdateEffect'; import useMount from 'react-use/lib/useMount'; import type { TimeRange } from '@kbn/es-query'; -import { TimefilterContract } from '@kbn/data-plugin/public'; +import type { TimefilterContract } from '@kbn/data-plugin/public'; import { useKibanaContextForPlugin } from './use_kibana'; export const useKibanaTimefilterTime = ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lazy_ref.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lazy_ref.ts index 371029e82cfcf..347d19812ea92 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lazy_ref.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lazy_ref.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { useRef, MutableRefObject } from 'react'; +import type { MutableRefObject } from 'react'; +import { useRef } from 'react'; export const useLazyRef = (initializer: () => Type) => { const ref = useRef(null); diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.test.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.test.ts index 5e5f00fd66139..6eb42a98d5a8b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.test.ts @@ -10,7 +10,7 @@ import { waitFor, renderHook } from '@testing-library/react'; import { useLensAttributes } from './use_lens_attributes'; import { coreMock } from '@kbn/core/public/mocks'; import { type KibanaReactContextValue, useKibana } from '@kbn/kibana-react-plugin/public'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import type { InfraClientStartDeps } from '../types'; import { dataViewPluginMocks } from '@kbn/data-views-plugin/public/mocks'; import { lensPluginMock } from '@kbn/lens-plugin/public/mocks'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.ts index b1248a1f05e1e..dc386b205e706 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_lens_attributes.ts @@ -6,7 +6,7 @@ */ import { useCallback } from 'react'; -import { AggregateQuery, Filter, Query, TimeRange } from '@kbn/es-query'; +import type { AggregateQuery, Filter, Query, TimeRange } from '@kbn/es-query'; import type { Action, ActionExecutionContext } from '@kbn/ui-actions-plugin/public'; import { i18n } from '@kbn/i18n'; import useAsync from 'react-use/lib/useAsync'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_log_view_reference.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_log_view_reference.ts index da68b88115584..db7874e57fb83 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_log_view_reference.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_log_view_reference.ts @@ -7,7 +7,8 @@ import useAsync from 'react-use/lib/useAsync'; import { v4 as uuidv4 } from 'uuid'; -import { DEFAULT_LOG_VIEW, LogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { LogViewReference } from '@kbn/logs-shared-plugin/common'; +import { DEFAULT_LOG_VIEW } from '@kbn/logs-shared-plugin/common'; import { useCallback } from 'react'; import { useLazyRef } from './use_lazy_ref'; import { useKibanaContextForPlugin } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_logs_breadcrumbs.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_logs_breadcrumbs.tsx index 2eba7845b8d24..ad4632ad8ecde 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_logs_breadcrumbs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_logs_breadcrumbs.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { useBreadcrumbs, useLinkProps } from '@kbn/observability-shared-plugin/public'; import { LOGS_APP } from '../../common/constants'; import { logsTitle } from '../translations'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_breadcrumbs.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_breadcrumbs.tsx index d5a6011a68e8e..92c580d58179e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_breadcrumbs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_breadcrumbs.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { useBreadcrumbs, useLinkProps } from '@kbn/observability-shared-plugin/public'; import { METRICS_APP } from '../../common/constants'; import { metricsTitle } from '../translations'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_explorer_views.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_explorer_views.ts index ddf27da96e1a7..9ae2cebcabbca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_explorer_views.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_metrics_explorer_views.ts @@ -11,18 +11,18 @@ import { constant, identity } from 'fp-ts/lib/function'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { useUiTracker, useUrlState } from '@kbn/observability-shared-plugin/public'; -import { +import type { MutationContext, SavedViewResult, ServerError, UpdateViewParams, } from '../../common/saved_views'; -import { MetricsSourceConfigurationResponse } from '../../common/metrics_sources'; -import { +import type { MetricsSourceConfigurationResponse } from '../../common/metrics_sources'; +import type { CreateMetricsExplorerViewAttributesRequestPayload, UpdateMetricsExplorerViewAttributesRequestPayload, } from '../../common/http_api/latest'; -import { MetricsExplorerView } from '../../common/metrics_explorer_views'; +import type { MetricsExplorerView } from '../../common/metrics_explorer_views'; import { useSavedViewsNotifier } from './use_saved_views_notifier'; import { useSourceContext } from '../containers/metrics_source'; import { useKibanaContextForPlugin } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_observable.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_observable.ts index 2634a156be986..167f55dfea546 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_observable.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_observable.ts @@ -6,14 +6,8 @@ */ import { useEffect, useRef, useState } from 'react'; -import { - BehaviorSubject, - Observable, - OperatorFunction, - PartialObserver, - ReplaySubject, - Subscription, -} from 'rxjs'; +import type { OperatorFunction, PartialObserver, Subscription } from 'rxjs'; +import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs'; import { switchMap } from 'rxjs'; export const useLatest = (value: Value) => { diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_parent_breadcrumb_resolver.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_parent_breadcrumb_resolver.ts index 532d3dbe00adb..f76bfb454d93c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_parent_breadcrumb_resolver.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_parent_breadcrumb_resolver.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common/inventory_models/types'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common/inventory_models/types'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; import { useLocation } from 'react-router-dom'; import type { LinkProps } from '@kbn/observability-shared-plugin/public/hooks/use_link_props'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_sorting.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_sorting.tsx index a11586766ab9e..f6b1702387492 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_sorting.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_sorting.tsx @@ -6,7 +6,7 @@ */ import { useState } from 'react'; -import { CriteriaWithPagination } from '@elastic/eui/src/components/basic_table/basic_table'; +import type { CriteriaWithPagination } from '@elastic/eui/src/components/basic_table/basic_table'; export function useSorting(defaultSorting: CriteriaWithPagination['sort']) { const [sorting, setSorting] = useState['sort']>(defaultSorting); diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_timeline_chart_theme.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_timeline_chart_theme.ts index 61a4206903e09..4653ffbcbfc76 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_timeline_chart_theme.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_timeline_chart_theme.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SettingsProps } from '@elastic/charts'; +import type { SettingsProps } from '@elastic/charts'; import { useEuiTheme } from '@elastic/eui'; import { useKibanaContextForPlugin } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_tracked_promise.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_tracked_promise.ts index d12749ea69fdc..2ecde4be6be2b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_tracked_promise.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_tracked_promise.ts @@ -7,7 +7,8 @@ /* eslint-disable max-classes-per-file */ -import { DependencyList, useEffect, useMemo, useRef, useState, useCallback } from 'react'; +import type { DependencyList } from 'react'; +import { useEffect, useMemo, useRef, useState, useCallback } from 'react'; import useMountedState from 'react-use/lib/useMountedState'; interface UseTrackedPromiseArgs { diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_trial_status.tsx b/x-pack/solutions/observability/plugins/infra/public/hooks/use_trial_status.tsx index 0667904393b01..b5d50a99977b3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_trial_status.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_trial_status.tsx @@ -8,7 +8,7 @@ import { boolean } from 'io-ts'; import { i18n } from '@kbn/i18n'; import { useState } from 'react'; -import { HttpStart, NotificationsStart } from '@kbn/core/public'; +import type { HttpStart, NotificationsStart } from '@kbn/core/public'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { API_BASE_PATH as LICENSE_MANAGEMENT_API_BASE_PATH } from '@kbn/license-management-plugin/common/constants'; diff --git a/x-pack/solutions/observability/plugins/infra/public/index.ts b/x-pack/solutions/observability/plugins/infra/public/index.ts index e5fbe7269050a..4054d9f7deae5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/index.ts +++ b/x-pack/solutions/observability/plugins/infra/public/index.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; +import type { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; import { Plugin } from './plugin'; -import { +import type { InfraClientSetupExports, InfraClientStartExports, InfraClientSetupDeps, diff --git a/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.test.ts b/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.test.ts index e4704c69b446b..0aa4045acd0ca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.test.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import moment from 'moment'; import { coreMock } from '@kbn/core/public/mocks'; import { createMetricsFetchData, createMetricsHasData } from './metrics_overview_fetchers'; import { createInfraPluginStartMock } from './mocks'; import { FAKE_OVERVIEW_RESPONSE } from './test_utils'; -import { InfraClientStartDeps, InfraClientStartExports } from './types'; +import type { InfraClientStartDeps, InfraClientStartExports } from './types'; function setup() { const core = coreMock.createStart(); diff --git a/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.ts b/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.ts index 9a78d72ad2413..c53481e760bd4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.ts +++ b/x-pack/solutions/observability/plugins/infra/public/metrics_overview_fetchers.ts @@ -13,10 +13,10 @@ * 2.0. */ -import { FetchDataParams, MetricsFetchDataResponse } from '@kbn/observability-plugin/public'; -import { TopNodesRequest, TopNodesResponse } from '../common/http_api/overview_api'; -import { InfraStaticSourceConfiguration } from '../common/source_configuration/source_configuration'; -import { InfraClientStartServicesAccessor } from './types'; +import type { FetchDataParams, MetricsFetchDataResponse } from '@kbn/observability-plugin/public'; +import type { TopNodesRequest, TopNodesResponse } from '../common/http_api/overview_api'; +import type { InfraStaticSourceConfiguration } from '../common/source_configuration/source_configuration'; +import type { InfraClientStartServicesAccessor } from './types'; export const createMetricsHasData = (getStartServices: InfraClientStartServicesAccessor) => async () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/mocks.tsx b/x-pack/solutions/observability/plugins/infra/public/mocks.tsx index 7a31161b2d6b7..9b343c34a19d3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/mocks.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/mocks.tsx @@ -8,7 +8,7 @@ import { createInventoryViewsServiceStartMock } from './services/inventory_views/inventory_views_service.mock'; import { createMetricsExplorerViewsServiceStartMock } from './services/metrics_explorer_views/metrics_explorer_views_service.mock'; import { createTelemetryServiceMock } from './services/telemetry/telemetry_service.mock'; -import { InfraClientStartExports } from './types'; +import type { InfraClientStartExports } from './types'; export const createInfraPluginStartMock = () => ({ inventoryViews: createInventoryViewsServiceStartMock(), diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/initial_parameters_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/initial_parameters_service.ts index 431d2df5d99a1..4f307e3a3152e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/initial_parameters_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/initial_parameters_service.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { RefreshInterval } from '@kbn/data-plugin/public'; -import { InvokeCreator, Receiver } from 'xstate'; -import { TimeKey } from '../../../../../common/time'; -import { VisiblePositions } from '../../../log_stream_position_state'; -import { ExtendedTimeRange, ParsedQuery, Timestamps } from '../../../log_stream_query_state'; -import { LogStreamPageContext, LogStreamPageEvent } from './types'; +import type { RefreshInterval } from '@kbn/data-plugin/public'; +import type { InvokeCreator, Receiver } from 'xstate'; +import type { TimeKey } from '../../../../../common/time'; +import type { VisiblePositions } from '../../../log_stream_position_state'; +import type { ExtendedTimeRange, ParsedQuery, Timestamps } from '../../../log_stream_query_state'; +import type { LogStreamPageContext, LogStreamPageEvent } from './types'; export const waitForInitialQueryParameters = (): InvokeCreator => diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/selectors.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/selectors.ts index 6f00ce32097e9..b173620892478 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/selectors.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/selectors.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { MatchedStateFromActor } from '@kbn/xstate-utils'; -import { LogStreamQueryActorRef } from '../../../log_stream_query_state'; -import { LogStreamPageActorRef } from './state_machine'; +import type { MatchedStateFromActor } from '@kbn/xstate-utils'; +import type { LogStreamQueryActorRef } from '../../../log_stream_query_state'; +import type { LogStreamPageActorRef } from './state_machine'; type LogStreamPageStateWithLogViewIndices = | MatchedStateFromActor diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/state_machine.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/state_machine.ts index e2755b29d21e3..0797d629885f6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/state_machine.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/state_machine.ts @@ -5,18 +5,19 @@ * 2.0. */ -import { RefreshInterval } from '@kbn/data-plugin/public'; -import { TimeRange } from '@kbn/es-query'; -import { actions, ActorRefFrom, createMachine, EmittedFrom } from 'xstate'; +import type { RefreshInterval } from '@kbn/data-plugin/public'; +import type { TimeRange } from '@kbn/es-query'; +import type { ActorRefFrom, EmittedFrom } from 'xstate'; +import { actions, createMachine } from 'xstate'; import { DEFAULT_REFRESH_INTERVAL } from '@kbn/logs-shared-plugin/common'; import type { LogViewNotificationChannel } from '@kbn/logs-shared-plugin/public'; -import { OmitDeprecatedState } from '@kbn/xstate-utils'; +import type { OmitDeprecatedState } from '@kbn/xstate-utils'; import { datemathToEpochMillis } from '../../../../utils/datemath'; import { createLogStreamPositionStateMachine } from '../../../log_stream_position_state/src/state_machine'; +import type { LogStreamQueryStateMachineDependencies } from '../../../log_stream_query_state'; import { createLogStreamQueryStateMachine, DEFAULT_TIMERANGE, - LogStreamQueryStateMachineDependencies, } from '../../../log_stream_query_state'; import { waitForInitialQueryParameters, diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/types.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/types.ts index 31c808d307bbe..1a705bcc5c380 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_page/state/src/types.ts @@ -5,28 +5,28 @@ * 2.0. */ -import { TimeRange } from '@kbn/es-query'; +import type { TimeRange } from '@kbn/es-query'; import type { LogViewStatus } from '@kbn/logs-shared-plugin/common'; import type { LogViewContextWithError, LogViewContextWithResolvedLogView, LogViewNotificationEvent, } from '@kbn/logs-shared-plugin/public'; -import { TimeKey } from '../../../../../common/time'; -import { +import type { TimeKey } from '../../../../../common/time'; +import type { JumpToTargetPositionEvent, LogStreamPositionContext, ReportVisiblePositionsEvent, VisiblePositions, } from '../../../log_stream_position_state'; -import { LogStreamPositionNotificationEvent } from '../../../log_stream_position_state/src/notifications'; -import { +import type { LogStreamPositionNotificationEvent } from '../../../log_stream_position_state/src/notifications'; +import type { LogStreamQueryContextWithTime, ParsedQuery, UpdateRefreshIntervalEvent, UpdateTimeRangeEvent, } from '../../../log_stream_query_state'; -import { LogStreamQueryNotificationEvent } from '../../../log_stream_query_state/src/notifications'; +import type { LogStreamQueryNotificationEvent } from '../../../log_stream_query_state/src/notifications'; export interface ReceivedInitialQueryParametersEvent { type: 'RECEIVED_INITIAL_QUERY_PARAMETERS'; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/notifications.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/notifications.ts index 59eda6dd5da5c..f036bec8cb512 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/notifications.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/notifications.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { LogStreamPositionContext, LogStreamPositionContextWithLatestPosition, LogStreamPositionContextWithTargetPosition, diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/state_machine.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/state_machine.ts index 0cc26d3e6ed35..87d0cb8e4ec69 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/state_machine.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/state_machine.ts @@ -5,12 +5,14 @@ * 2.0. */ -import { IToasts } from '@kbn/core-notifications-browser'; -import { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; +import type { IToasts } from '@kbn/core-notifications-browser'; +import type { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; import { convertISODateToNanoPrecision } from '@kbn/logs-shared-plugin/common'; import moment from 'moment'; -import { actions, ActorRefFrom, createMachine, EmittedFrom, SpecialTargets } from 'xstate'; -import { OmitDeprecatedState, sendIfDefined } from '@kbn/xstate-utils'; +import type { ActorRefFrom, EmittedFrom } from 'xstate'; +import { actions, createMachine, SpecialTargets } from 'xstate'; +import type { OmitDeprecatedState } from '@kbn/xstate-utils'; +import { sendIfDefined } from '@kbn/xstate-utils'; import { isSameTimeKey } from '../../../../common/time'; import { DESIRED_BUFFER_PAGES, RELATIVE_END_UPDATE_DELAY } from './defaults'; import { LogStreamPositionNotificationEventSelectors } from './notifications'; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/types.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/types.ts index 980ca00b7c8e9..398d7e8addbf5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { TimeKey } from '../../../../common/time'; -import { ReceivedInitialQueryParametersEvent } from '../../log_stream_page/state'; -import { TimeChangedEvent } from '../../log_stream_query_state/src/notifications'; +import type { TimeKey } from '../../../../common/time'; +import type { ReceivedInitialQueryParametersEvent } from '../../log_stream_page/state'; +import type { TimeChangedEvent } from '../../log_stream_query_state/src/notifications'; export interface VisiblePositions { startKey: TimeKey | null; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/url_state_storage_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/url_state_storage_service.ts index 181a87b3728a4..d23d708e84877 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/url_state_storage_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_position_state/src/url_state_storage_service.ts @@ -5,11 +5,12 @@ * 2.0. */ import * as rt from 'io-ts'; -import { IToasts } from '@kbn/core-notifications-browser'; -import { IKbnUrlStateStorage, withNotifyOnErrors } from '@kbn/kibana-utils-plugin/public'; +import type { IToasts } from '@kbn/core-notifications-browser'; +import type { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; +import { withNotifyOnErrors } from '@kbn/kibana-utils-plugin/public'; import * as Either from 'fp-ts/lib/Either'; import { pipe } from 'fp-ts/lib/function'; -import { InvokeCreator } from 'xstate'; +import type { InvokeCreator } from 'xstate'; import { createPlainError, formatErrors } from '@kbn/io-ts-utils'; import { minimalTimeKeyRT, pickTimeKey } from '../../../../common/time'; import type { LogStreamPositionContext, LogStreamPositionEvent } from './types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/notifications.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/notifications.ts index 51fba835c22ad..928671d4d67ca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/notifications.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/notifications.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { RefreshInterval } from '@kbn/data-plugin/public'; -import { ExtendedTimeRange, LogStreamQueryContext, ParsedQuery, Timestamps } from './types'; +import type { RefreshInterval } from '@kbn/data-plugin/public'; +import type { ExtendedTimeRange, LogStreamQueryContext, ParsedQuery, Timestamps } from './types'; export interface TimeChangedEvent { type: 'TIME_CHANGED'; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/search_bar_state_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/search_bar_state_service.ts index 592bda4a9f97f..d7bb762a63b6b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/search_bar_state_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/search_bar_state_service.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { FilterManager, QueryStringContract } from '@kbn/data-plugin/public'; +import type { FilterManager, QueryStringContract } from '@kbn/data-plugin/public'; import { map } from 'rxjs'; import type { InvokeCreator } from 'xstate'; import type { LogStreamQueryContext, LogStreamQueryEvent } from './types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/state_machine.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/state_machine.ts index 5570faf16f3f8..6ad01bd1e8598 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/state_machine.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/state_machine.ts @@ -5,17 +5,19 @@ * 2.0. */ -import { IToasts } from '@kbn/core-notifications-browser'; +import type { IToasts } from '@kbn/core-notifications-browser'; import type { FilterManager, QueryStringContract, TimefilterContract, } from '@kbn/data-plugin/public'; -import { EsQueryConfig } from '@kbn/es-query'; -import { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; -import { actions, ActorRefFrom, createMachine, SpecialTargets, send } from 'xstate'; +import type { EsQueryConfig } from '@kbn/es-query'; +import type { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; +import type { ActorRefFrom } from 'xstate'; +import { actions, createMachine, SpecialTargets, send } from 'xstate'; import { DEFAULT_REFRESH_INTERVAL } from '@kbn/logs-shared-plugin/common'; -import { OmitDeprecatedState, sendIfDefined } from '@kbn/xstate-utils'; +import type { OmitDeprecatedState } from '@kbn/xstate-utils'; +import { sendIfDefined } from '@kbn/xstate-utils'; import { logStreamQueryNotificationEventSelectors } from './notifications'; import { subscribeToFilterSearchBarChanges, diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/time_filter_state_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/time_filter_state_service.ts index c7ce0ac8b9c18..96a2aa6bbc4e6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/time_filter_state_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/time_filter_state_service.ts @@ -5,13 +5,14 @@ * 2.0. */ -import { RefreshInterval, TimefilterContract } from '@kbn/data-plugin/public'; -import { TimeRange } from '@kbn/es-query'; +import type { RefreshInterval, TimefilterContract } from '@kbn/data-plugin/public'; +import type { TimeRange } from '@kbn/es-query'; import { map, merge } from 'rxjs'; -import { actions, InvokeCreator } from 'xstate'; +import type { InvokeCreator } from 'xstate'; +import { actions } from 'xstate'; import { datemathToEpochMillis } from '../../../utils/datemath'; import { DEFAULT_REFRESH_TIME_RANGE } from './defaults'; -import { LogStreamQueryContext, LogStreamQueryEvent } from './types'; +import type { LogStreamQueryContext, LogStreamQueryEvent } from './types'; export interface TimefilterState { timeRange: TimeRange; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/types.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/types.ts index b56ce2148a17e..5e058626de9d1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/types.ts @@ -5,9 +5,16 @@ * 2.0. */ -import { RefreshInterval } from '@kbn/data-plugin/public'; -import { AggregateQuery, BoolQuery, DataViewBase, Query, Filter, TimeRange } from '@kbn/es-query'; -import { PageEndBufferReachedEvent } from '../../log_stream_position_state/src/notifications'; +import type { RefreshInterval } from '@kbn/data-plugin/public'; +import type { + AggregateQuery, + BoolQuery, + DataViewBase, + Query, + Filter, + TimeRange, +} from '@kbn/es-query'; +import type { PageEndBufferReachedEvent } from '../../log_stream_position_state/src/notifications'; export type AnyQuery = Query | AggregateQuery; diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/url_state_storage_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/url_state_storage_service.ts index 07b05f31fc35c..bfa7625a2beb1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/url_state_storage_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/url_state_storage_service.ts @@ -5,13 +5,14 @@ * 2.0. */ -import { IToasts } from '@kbn/core-notifications-browser'; -import { IKbnUrlStateStorage, withNotifyOnErrors } from '@kbn/kibana-utils-plugin/public'; +import type { IToasts } from '@kbn/core-notifications-browser'; +import type { IKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; +import { withNotifyOnErrors } from '@kbn/kibana-utils-plugin/public'; import * as Array from 'fp-ts/lib/Array'; import * as Either from 'fp-ts/lib/Either'; import { identity, pipe } from 'fp-ts/lib/function'; import * as rt from 'io-ts'; -import { InvokeCreator } from 'xstate'; +import type { InvokeCreator } from 'xstate'; import { defaultFilterStateKey, defaultPositionStateKey, diff --git a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/validate_query_service.ts b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/validate_query_service.ts index 05227ad2234fd..5834b40f838c7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/validate_query_service.ts +++ b/x-pack/solutions/observability/plugins/infra/public/observability_logs/log_stream_query_state/src/validate_query_service.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { IToasts } from '@kbn/core-notifications-browser'; -import { buildEsQuery, EsQueryConfig, isOfQueryType } from '@kbn/es-query'; +import type { IToasts } from '@kbn/core-notifications-browser'; +import type { EsQueryConfig } from '@kbn/es-query'; +import { buildEsQuery, isOfQueryType } from '@kbn/es-query'; import { i18n } from '@kbn/i18n'; import type { InvokeCreator } from 'xstate'; import { QueryParsingError, UnsupportedLanguageError } from './errors'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_logs.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_logs.tsx index 0e2e6eea6c49b..66c778d262999 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_logs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_logs.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { match as RouteMatch, Redirect } from 'react-router-dom'; +import type { match as RouteMatch } from 'react-router-dom'; +import { Redirect } from 'react-router-dom'; import { Routes, Route } from '@kbn/shared-ux-router'; import { inventoryModels } from '@kbn/metrics-data-access-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_metrics.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_metrics.tsx index 64724c210a8f4..66413b074dab2 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_metrics.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/link_to_metrics.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { match as RouteMatch, Redirect } from 'react-router-dom'; +import type { match as RouteMatch } from 'react-router-dom'; +import { Redirect } from 'react-router-dom'; import { Routes, Route } from '@kbn/shared-ux-router'; import { inventoryModels } from '@kbn/metrics-data-access-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/query_params.ts b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/query_params.ts index 45e1bc9a7991d..caa0d813b4bab 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/query_params.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/query_params.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Location } from 'history'; +import type { Location } from 'history'; import { getParamFromQueryString, getQueryStringFromLocation } from '../../utils/url_state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_host_detail_via_ip.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_host_detail_via_ip.tsx index d8522aa0f4d59..0740a456c722f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_host_detail_via_ip.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_host_detail_via_ip.tsx @@ -6,7 +6,7 @@ */ import React, { useEffect } from 'react'; -import { RouteComponentProps } from 'react-router-dom'; +import type { RouteComponentProps } from 'react-router-dom'; import { i18n } from '@kbn/i18n'; import type { SerializableRecord } from '@kbn/utility-types'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_inventory.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_inventory.tsx index 5f24a855d01df..e4f122e61d77d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_inventory.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_inventory.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import React, { useEffect } from 'react'; +import type React from 'react'; +import { useEffect } from 'react'; import { parse } from 'query-string'; -import { RouteComponentProps } from 'react-router-dom'; +import type { RouteComponentProps } from 'react-router-dom'; import type { SerializableRecord } from '@kbn/utility-types'; import { INVENTORY_LOCATOR_ID } from '@kbn/observability-shared-plugin/common'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx index 79f2dac921554..151152694f44e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx @@ -6,9 +6,10 @@ */ import { useEffect } from 'react'; -import { RouteComponentProps } from 'react-router-dom'; +import type { RouteComponentProps } from 'react-router-dom'; import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; -import { findInventoryFields, InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import { getFilterFromLocation, getTimeFromLocation } from './query_params'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/use_host_ip_to_name.ts b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/use_host_ip_to_name.ts index 29b9dd20d61ce..7d2ba219d6749 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/link_to/use_host_ip_to_name.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/link_to/use_host_ip_to_name.ts @@ -7,7 +7,7 @@ import { useState, useEffect } from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { IpToHostResponse } from '../../../common/http_api/ip_to_hostname'; +import type { IpToHostResponse } from '../../../common/http_api/ip_to_hostname'; export const useHostIpToName = (ipAddress: string | null, indexPattern: string | null) => { const fetch = useKibana().services.http?.fetch; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_providers.tsx index f7a749eb6a312..eeff62bdc2257 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_providers.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { useLogSourcesContext } from '@kbn/logs-data-access-plugin/public'; import { logEntryCategoriesJobType } from '../../../../common/log_analysis'; import { LogAnalysisSetupFlyoutStateProvider } from '../../../components/logging/log_analysis_setup/setup_flyout'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx index 337f0535e2bf0..6ac9dce90e421 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx @@ -17,7 +17,7 @@ import { MLJobsAwaitingNodeWarning, ML_PAGES, useMlHref } from '@kbn/ml-plugin/p import { useTrackPageview } from '@kbn/observability-shared-plugin/public'; import { useLogViewContext } from '@kbn/logs-shared-plugin/public'; import { logEntryCategoriesJobType } from '../../../../common/log_analysis'; -import { TimeRange } from '../../../../common/time/time_range'; +import type { TimeRange } from '../../../../common/time/time_range'; import { CategoryJobNoticesSection } from '../../../components/logging/log_analysis_job_status'; import { AnalyzeInMlButton } from '../../../components/logging/log_analysis_results'; import { DatasetsSelector } from '../../../components/logging/log_analysis_results/datasets_selector'; @@ -30,11 +30,9 @@ import { LogsPageTemplate } from '../shared/page_template'; import { PageViewLogInContext } from '../stream/page_view_log_in_context'; import { TopCategoriesSection } from './sections/top_categories'; import { useLogEntryCategoriesResults } from './use_log_entry_categories_results'; -import { - StringTimeRange, - useLogEntryCategoriesResultsUrlState, -} from './use_log_entry_categories_results_url_state'; -import { IdFormat } from '../../../../common/http_api/latest'; +import type { StringTimeRange } from './use_log_entry_categories_results_url_state'; +import { useLogEntryCategoriesResultsUrlState } from './use_log_entry_categories_results_url_state'; +import type { IdFormat } from '../../../../common/http_api/latest'; const JOB_STATUS_POLLING_INTERVAL = 30000; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/analyze_dataset_in_ml_action.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/analyze_dataset_in_ml_action.tsx index 088f54a149974..eb66f4034a9a4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/analyze_dataset_in_ml_action.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/analyze_dataset_in_ml_action.tsx @@ -12,7 +12,7 @@ import React, { useCallback } from 'react'; import { useMlHref, ML_PAGES } from '@kbn/ml-plugin/public'; import { shouldHandleLinkEvent } from '@kbn/observability-shared-plugin/public'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { partitionField } from '../../../../../../common/log_analysis/job_parameters'; export const AnalyzeCategoryDatasetInMlAction: React.FunctionComponent<{ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/anomaly_severity_indicator_list.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/anomaly_severity_indicator_list.tsx index d706189621a3e..5579e32a4ec7c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/anomaly_severity_indicator_list.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/anomaly_severity_indicator_list.tsx @@ -7,7 +7,7 @@ import React from 'react'; -import { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; +import type { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; import { getFriendlyNameForPartitionId } from '../../../../../../common/log_analysis'; import { AnomalySeverityIndicator } from '../../../../../components/logging/log_analysis_results/anomaly_severity_indicator'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_details_row.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_details_row.tsx index c6fccd3d4ff82..1301db1029954 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_details_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_details_row.tsx @@ -6,11 +6,11 @@ */ import React, { useEffect } from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { logEntryCategoriesJobType } from '../../../../../../common/log_analysis'; import { useLogEntryCategoryExamples } from '../../use_log_entry_category_examples'; import { LogEntryExampleMessages } from '../../../../../components/logging/log_entry_examples/log_entry_examples'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { CategoryExampleMessage } from './category_example_message'; import { useLogMlJobIdFormatsShimContext } from '../../../shared/use_log_ml_job_id_formats_shim'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_example_message.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_example_message.tsx index fda6dad009609..59885c7ce3b1b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_example_message.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/category_example_message.tsx @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { LogEntry, LogEntryContext } from '@kbn/logs-shared-plugin/common'; +import type { LogEntry, LogEntryContext } from '@kbn/logs-shared-plugin/common'; import { LogEntryColumn, LogEntryContextMenu, @@ -23,9 +23,9 @@ import { getFriendlyNameForPartitionId, partitionField, } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time'; +import type { TimeRange } from '../../../../../../common/time'; import { useViewLogInProviderContext } from '../../../../../containers/logs/view_log_in_context'; -import { LogColumnConfiguration } from '../../../../../utils/source_configuration'; +import type { LogColumnConfiguration } from '../../../../../utils/source_configuration'; export const exampleMessageScale = 'medium' as const; export const exampleTimestampFormat = 'dateTime' as const; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_action_list.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_action_list.tsx index 99ad8e6092a76..c19cdcef0c5cb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_action_list.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_action_list.tsx @@ -7,8 +7,8 @@ import React from 'react'; -import { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time'; +import type { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; +import type { TimeRange } from '../../../../../../common/time'; import { getFriendlyNameForPartitionId } from '../../../../../../common/log_analysis'; import { AnalyzeCategoryDatasetInMlAction } from './analyze_dataset_in_ml_action'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_list.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_list.tsx index a737a1de4a32b..12545478bee9d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_list.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/datasets_list.tsx @@ -7,7 +7,7 @@ import React from 'react'; import styled from '@emotion/styled'; -import { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; +import type { LogEntryCategoryDataset } from '../../../../../../common/log_analysis'; import { getFriendlyNameForPartitionId } from '../../../../../../common/log_analysis'; export const DatasetsList: React.FunctionComponent<{ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/log_entry_count_sparkline.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/log_entry_count_sparkline.tsx index ee3a35420ff92..6223a2ac8022e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/log_entry_count_sparkline.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/log_entry_count_sparkline.tsx @@ -7,8 +7,8 @@ import React, { useMemo } from 'react'; -import { LogEntryCategoryHistogram } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time'; +import type { LogEntryCategoryHistogram } from '../../../../../../common/log_analysis'; +import type { TimeRange } from '../../../../../../common/time'; import { SingleMetricComparison } from './single_metric_comparison'; import { SingleMetricSparkline } from './single_metric_sparkline'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/single_metric_sparkline.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/single_metric_sparkline.tsx index 5c38c0055cf38..56fcfb6794853 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/single_metric_sparkline.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/single_metric_sparkline.tsx @@ -9,7 +9,7 @@ import React, { useMemo } from 'react'; import { Chart, Settings, AreaSeries, ScaleType, TooltipType, Tooltip } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import { useKibanaTimeZoneSetting } from '../../../../../hooks/use_kibana_time_zone_setting'; -import { TimeRange } from '../../../../../../common/time'; +import type { TimeRange } from '../../../../../../common/time'; import { useChartThemes } from '../../../../../hooks/use_chart_themes'; interface TimeSeriesPoint { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_section.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_section.tsx index 6dd07a80c8652..7b9f662326e5c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_section.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_section.tsx @@ -9,12 +9,12 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { LogEntryCategory } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { LogEntryCategory } from '../../../../../../common/log_analysis'; +import type { TimeRange } from '../../../../../../common/time'; import { LoadingOverlayWrapper } from '../../../../../components/loading_overlay_wrapper'; import { TopCategoriesTable } from './top_categories_table'; -import { SortOptions, ChangeSortOptions } from '../../use_log_entry_categories_results'; +import type { SortOptions, ChangeSortOptions } from '../../use_log_entry_categories_results'; export const TopCategoriesSection: React.FunctionComponent<{ isLoadingTopCategories?: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_table.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_table.tsx index 377738ff00821..6fa7c716455a8 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/sections/top_categories/top_categories_table.tsx @@ -5,20 +5,21 @@ * 2.0. */ -import { Criteria, EuiBasicTable, EuiBasicTableColumn } from '@elastic/eui'; +import type { Criteria, EuiBasicTableColumn } from '@elastic/eui'; +import { EuiBasicTable } from '@elastic/eui'; import numeral from '@elastic/numeral'; import { i18n } from '@kbn/i18n'; import React, { useMemo, useCallback } from 'react'; import useSet from 'react-use/lib/useSet'; import styled from '@emotion/styled'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { - categoriesSortRT, +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { LogEntryCategory, LogEntryCategoryDataset, LogEntryCategoryHistogram, } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time'; +import { categoriesSortRT } from '../../../../../../common/log_analysis'; +import type { TimeRange } from '../../../../../../common/time'; import { RowExpansionButton } from '../../../../../components/basic_table'; import { AnomalySeverityIndicatorList } from './anomaly_severity_indicator_list'; import { CategoryDetailsRow } from './category_details_row'; @@ -26,7 +27,7 @@ import { RegularExpressionRepresentation } from '../../../../../components/loggi import { DatasetActionsList } from './datasets_action_list'; import { DatasetsList } from './datasets_list'; import { LogEntryCountSparkline } from './log_entry_count_sparkline'; -import { SortOptions, ChangeSortOptions } from '../../use_log_entry_categories_results'; +import type { SortOptions, ChangeSortOptions } from '../../use_log_entry_categories_results'; export const TopCategoriesTable = styled( ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_datasets.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_datasets.ts index 34752f5792e03..ebcfbbefba2ae 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_datasets.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_datasets.ts @@ -6,9 +6,9 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../common/http_api/latest'; import { getLogEntryCategoryDatasetsRequestPayloadRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_examples.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_examples.ts index bdf5c80079c1e..8a1eeaf9f2cb0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_examples.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_log_entry_category_examples.ts @@ -6,9 +6,9 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../common/http_api/latest'; import { getLogEntryCategoryExamplesRequestPayloadRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_top_log_entry_categories.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_top_log_entry_categories.ts index 14cd49a5d8f83..8c04ce1ec1581 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_top_log_entry_categories.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/service_calls/get_top_log_entry_categories.ts @@ -6,16 +6,16 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../common/http_api/latest'; import { getLogEntryCategoriesRequestPayloadRT, getLogEntryCategoriesSuccessReponsePayloadRT, LOG_ANALYSIS_GET_LOG_ENTRY_CATEGORIES_PATH, } from '../../../../../common/http_api'; -import { CategoriesSort } from '../../../../../common/log_analysis'; +import type { CategoriesSort } from '../../../../../common/log_analysis'; interface RequestArgs { logViewReference: PersistedLogViewReference; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_categories_results.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_categories_results.ts index e3b42ee2519cc..3207dc305bbca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_categories_results.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_categories_results.ts @@ -7,13 +7,13 @@ import { useMemo, useState } from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { IdFormat } from '../../../../common/http_api/latest'; -import { +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { IdFormat } from '../../../../common/http_api/latest'; +import type { GetLogEntryCategoriesSuccessResponsePayload, GetLogEntryCategoryDatasetsSuccessResponsePayload, } from '../../../../common/http_api'; -import { CategoriesSort } from '../../../../common/log_analysis'; +import type { CategoriesSort } from '../../../../common/log_analysis'; import { useTrackedPromise, CanceledPromiseError } from '../../../hooks/use_tracked_promise'; import { callGetTopLogEntryCategoriesAPI } from './service_calls/get_top_log_entry_categories'; import { callGetLogEntryCategoryDatasetsAPI } from './service_calls/get_log_entry_category_datasets'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_category_examples.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_category_examples.tsx index 7e51c66b53c0d..e795ae460deef 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_category_examples.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_categories/use_log_entry_category_examples.tsx @@ -6,10 +6,10 @@ */ import { useMemo, useState } from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { IdFormat } from '../../../../common/http_api/latest'; -import { LogEntryCategoryExample } from '../../../../common/http_api'; +import type { IdFormat } from '../../../../common/http_api/latest'; +import type { LogEntryCategoryExample } from '../../../../common/http_api'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; import { callGetLogEntryCategoryExamplesAPI } from './service_calls/get_log_entry_category_examples'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_providers.tsx index a57eac0a16cd8..0974a94c185a4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_providers.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { useLogSourcesContext } from '@kbn/logs-data-access-plugin/public'; import { logEntryCategoriesJobType, logEntryRateJobType } from '../../../../common/log_analysis'; import { LogAnalysisSetupFlyoutStateProvider } from '../../../components/logging/log_analysis_setup/setup_flyout'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_results_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_results_content.tsx index 21eb5aacb2cec..b7216888b116f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_results_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/page_results_content.tsx @@ -15,13 +15,13 @@ import { useKibana } from '@kbn/kibana-react-plugin/public'; import { MLJobsAwaitingNodeWarning } from '@kbn/ml-plugin/public'; import { useTrackPageview } from '@kbn/observability-shared-plugin/public'; import { useLogViewContext, LogEntryFlyout } from '@kbn/logs-shared-plugin/public'; -import { IdFormatByJobType } from '../../../../common/http_api/latest'; +import type { IdFormatByJobType } from '../../../../common/http_api/latest'; import { isJobStatusWithResults, logEntryCategoriesJobType, logEntryRateJobType, } from '../../../../common/log_analysis'; -import { TimeKey } from '../../../../common/time'; +import type { TimeKey } from '../../../../common/time'; import { CategoryJobNoticesSection, LogAnalysisJobProblemIndicator, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/anomalies_swimlane_visualisation.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/anomalies_swimlane_visualisation.tsx index 92499cf3af44e..2247887abaa5e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/anomalies_swimlane_visualisation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/anomalies_swimlane_visualisation.tsx @@ -10,9 +10,9 @@ import React, { useMemo } from 'react'; import { ANOMALY_SWIMLANE_EMBEDDABLE_TYPE } from '@kbn/ml-plugin/public'; import { MissingEmbeddableFactoryCallout } from '../../../../../components/missing_embeddable_factory_callout'; import { partitionField } from '../../../../../../common/infra_ml'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; -import { AutoRefresh } from '../../use_log_entry_rate_results_url_state'; +import type { AutoRefresh } from '../../use_log_entry_rate_results_url_state'; interface Props { timeRange: TimeRange; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/expanded_row.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/expanded_row.tsx index 49d539a6783ca..43dfb32796301 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/expanded_row.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/expanded_row.tsx @@ -12,12 +12,9 @@ import React from 'react'; import useMount from 'react-use/lib/useMount'; import styled from '@emotion/styled'; import { useLogViewContext } from '@kbn/logs-shared-plugin/public'; -import { - isCategoryAnomaly, - LogEntryAnomaly, - logEntryRateJobType, -} from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { LogEntryAnomaly } from '../../../../../../common/log_analysis'; +import { isCategoryAnomaly, logEntryRateJobType } from '../../../../../../common/log_analysis'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { LogEntryExampleMessages } from '../../../../../components/logging/log_entry_examples/log_entry_examples'; import { useLogEntryExamples } from '../../use_log_entry_examples'; import { LogEntryExampleMessage, LogEntryExampleMessageHeaders } from './log_entry_example'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/index.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/index.tsx index 7741414f79046..51e037f92e743 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/index.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/index.tsx @@ -14,10 +14,10 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { AnomaliesSwimlaneVisualisation } from './anomalies_swimlane_visualisation'; import { AnomaliesTable } from './table'; -import { +import type { ChangePaginationOptions, ChangeSortOptions, FetchNextPage, @@ -28,7 +28,7 @@ import { SortOptions, } from '../../use_log_entry_anomalies_results'; import { LoadingOverlayWrapper } from '../../../../../components/loading_overlay_wrapper'; -import { AutoRefresh } from '../../use_log_entry_rate_results_url_state'; +import type { AutoRefresh } from '../../use_log_entry_rate_results_url_state'; export const AnomaliesResults: React.FunctionComponent<{ isLoadingAnomaliesResults: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx index 60399d70f2826..61b1685cf36e7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx @@ -12,6 +12,7 @@ import { i18n } from '@kbn/i18n'; import { useMlHref, ML_PAGES } from '@kbn/ml-plugin/public'; import styled from '@emotion/styled'; import { useLinkProps, shouldHandleLinkEvent } from '@kbn/observability-shared-plugin/public'; +import type { LogEntryColumnWidths } from '@kbn/logs-shared-plugin/public'; import { LogEntryColumn, LogEntryFieldColumn, @@ -19,24 +20,24 @@ import { LogEntryRowWrapper, LogEntryTimestampColumn, LogEntryContextMenu, - LogEntryColumnWidths, iconColumnId, LogColumnHeadersWrapper, LogColumnHeader, } from '@kbn/logs-shared-plugin/public'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; import { getFriendlyNameForPartitionId } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { partitionField } from '../../../../../../common/log_analysis/job_parameters'; -import { LogEntryExample, isCategoryAnomaly } from '../../../../../../common/log_analysis'; +import type { LogEntryExample } from '../../../../../../common/log_analysis'; +import { isCategoryAnomaly } from '../../../../../../common/log_analysis'; +import type { LogColumnConfiguration } from '../../../../../utils/source_configuration'; import { - LogColumnConfiguration, isTimestampLogColumnConfiguration, isFieldLogColumnConfiguration, isMessageLogColumnConfiguration, } from '../../../../../utils/source_configuration'; import { localizedDate } from '../../../../../../common/formatters/datetime'; -import { LogEntryAnomaly } from '../../../../../../common/log_analysis'; +import type { LogEntryAnomaly } from '../../../../../../common/log_analysis'; import { useLogEntryFlyoutContext } from '../../../../../containers/logs/log_flyout'; export const exampleMessageScale = 'medium' as const; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx index a0c8eb762e9f1..9cf1bb0964638 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx @@ -5,10 +5,9 @@ * 2.0. */ +import type { Criteria, EuiBasicTableColumn } from '@elastic/eui'; import { - Criteria, EuiBasicTable, - EuiBasicTableColumn, EuiButtonIcon, EuiFlexGroup, EuiFlexItem, @@ -20,20 +19,20 @@ import { i18n } from '@kbn/i18n'; import moment from 'moment'; import React, { useCallback, useMemo } from 'react'; import useSet from 'react-use/lib/useSet'; +import type { AnomalyType } from '../../../../../../common/log_analysis'; import { anomaliesSortRT, - AnomalyType, formatOneDecimalPlace, getFriendlyNameForPartitionId, isCategoryAnomaly, } from '../../../../../../common/log_analysis'; -import { TimeRange } from '../../../../../../common/time/time_range'; +import type { TimeRange } from '../../../../../../common/time/time_range'; import { RowExpansionButton } from '../../../../../components/basic_table'; import { LoadingOverlayWrapper } from '../../../../../components/loading_overlay_wrapper'; import { AnomalySeverityIndicator } from '../../../../../components/logging/log_analysis_results/anomaly_severity_indicator'; import { RegularExpressionRepresentation } from '../../../../../components/logging/log_analysis_results/category_expression'; import { useKibanaUiSetting } from '../../../../../hooks/use_kibana_ui_setting'; -import { +import type { ChangePaginationOptions, ChangeSortOptions, FetchNextPage, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies.ts index f474059b84bab..c170dcddf4d1f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies.ts @@ -6,15 +6,15 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormatByJobType } from '../../../../../common/http_api/latest'; +import type { IdFormatByJobType } from '../../../../../common/http_api/latest'; import { getLogEntryAnomaliesRequestPayloadRT, getLogEntryAnomaliesSuccessReponsePayloadRT, LOG_ANALYSIS_GET_LOG_ENTRY_ANOMALIES_PATH, } from '../../../../../common/http_api'; -import { AnomaliesSort, Pagination } from '../../../../../common/log_analysis'; +import type { AnomaliesSort, Pagination } from '../../../../../common/log_analysis'; interface RequestArgs { logViewReference: PersistedLogViewReference; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies_datasets.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies_datasets.ts index 8bb1d1ab2fe30..3dd9cd226e36d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies_datasets.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_anomalies_datasets.ts @@ -6,9 +6,9 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormatByJobType } from '../../../../../common/http_api/latest'; +import type { IdFormatByJobType } from '../../../../../common/http_api/latest'; import { getLogEntryAnomaliesDatasetsRequestPayloadRT, getLogEntryAnomaliesDatasetsSuccessReponsePayloadRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_examples.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_examples.ts index 9733ab9c934be..9a39ebb73a011 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_examples.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/service_calls/get_log_entry_examples.ts @@ -6,9 +6,9 @@ */ import type { HttpHandler } from '@kbn/core/public'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../../../common/http_api/latest'; +import type { IdFormat } from '../../../../../common/http_api/latest'; import { getLogEntryExamplesRequestPayloadRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts index 6f19fb1c0549c..ad44af02befc5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_dataset_filtering.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Filter } from '@kbn/es-query'; +import type { Filter } from '@kbn/es-query'; import { useEffect, useReducer, useCallback } from 'react'; import { CONTROLLED_BY_SWIM_LANE_FILTER } from '@kbn/ml-plugin/public'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_anomalies_results.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_anomalies_results.ts index 82f447966955c..adea891bbe507 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_anomalies_results.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_anomalies_results.ts @@ -7,13 +7,13 @@ import { useMemo, useState, useCallback, useEffect, useReducer } from 'react'; import useMount from 'react-use/lib/useMount'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { IdFormatByJobType } from '../../../../common/http_api/latest'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { IdFormatByJobType } from '../../../../common/http_api/latest'; import { useTrackedPromise, CanceledPromiseError } from '../../../hooks/use_tracked_promise'; import { callGetLogEntryAnomaliesAPI } from './service_calls/get_log_entry_anomalies'; import { callGetLogEntryAnomaliesDatasetsAPI } from './service_calls/get_log_entry_anomalies_datasets'; -import { GetLogEntryAnomaliesDatasetsSuccessResponsePayload } from '../../../../common/http_api'; -import { +import type { GetLogEntryAnomaliesDatasetsSuccessResponsePayload } from '../../../../common/http_api'; +import type { AnomaliesSort, Pagination, PaginationCursor, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_examples.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_examples.ts index 8f67d826cdb50..b2def24be30d1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_examples.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_examples.ts @@ -6,10 +6,10 @@ */ import { useMemo, useState } from 'react'; -import { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference } from '@kbn/logs-shared-plugin/common'; -import { IdFormat } from '../../../../common/http_api/latest'; -import { LogEntryExample } from '../../../../common/log_analysis'; +import type { IdFormat } from '../../../../common/http_api/latest'; +import type { LogEntryExample } from '../../../../common/log_analysis'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; import { callGetLogEntryExamplesAPI } from './service_calls/get_log_entry_examples'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_rate_results_url_state.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_rate_results_url_state.tsx index f669d82f76f0f..c622061e54db5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_rate_results_url_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/log_entry_rate/use_log_entry_rate_results_url_state.tsx @@ -13,7 +13,7 @@ import * as rt from 'io-ts'; import type { TimeRange as KibanaTimeRange } from '@kbn/es-query'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { useUrlState } from '@kbn/observability-shared-plugin/public'; -import { TimeRange } from '../../../../common/time/time_range'; +import type { TimeRange } from '../../../../common/time/time_range'; import { useKibanaTimefilterTime, useSyncKibanaTimeFilterTime, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page.tsx index ef3acfe6787c3..3f4e308ef7ed7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page.tsx @@ -7,7 +7,7 @@ import { EuiErrorBoundary } from '@elastic/eui'; import React from 'react'; -import { RouteComponentProps } from 'react-router-dom'; +import type { RouteComponentProps } from 'react-router-dom'; import { LogsPageContent } from './page_content'; import { LogsPageProviders } from './page_providers'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_content.tsx index bdb738c33315c..cd28fe24c390c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_content.tsx @@ -11,11 +11,13 @@ import React, { useContext } from 'react'; import { Routes, Route } from '@kbn/shared-ux-router'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { HeaderMenuPortal, useLinkProps } from '@kbn/observability-shared-plugin/public'; -import { SharePublicStart } from '@kbn/share-plugin/public/plugin'; -import { +import type { SharePublicStart } from '@kbn/share-plugin/public/plugin'; +import type { ObservabilityOnboardingLocatorParams, - OBSERVABILITY_ONBOARDING_LOCATOR, AllDatasetsLocatorParams, +} from '@kbn/deeplinks-observability'; +import { + OBSERVABILITY_ONBOARDING_LOCATOR, ALL_DATASETS_LOCATOR_ID, } from '@kbn/deeplinks-observability'; import { dynamic } from '@kbn/shared-ux-utility'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_providers.tsx index a0cd7f8639b24..ae525cc199c01 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/page_providers.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { useState, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useState } from 'react'; import { LogViewProvider, initializeFromUrl as createInitializeFromUrl, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/add_log_column_popover.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/add_log_column_popover.tsx index bb0b55cbbabf3..1b0fe39429609 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/add_log_column_popover.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/add_log_column_popover.tsx @@ -5,19 +5,13 @@ * 2.0. */ -import { - EuiBadge, - EuiButton, - EuiPopover, - EuiPopoverTitle, - EuiSelectable, - EuiSelectableOption, -} from '@elastic/eui'; +import type { EuiSelectableOption } from '@elastic/eui'; +import { EuiBadge, EuiButton, EuiPopover, EuiPopoverTitle, EuiSelectable } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useMemo } from 'react'; import { v4 as uuidv4 } from 'uuid'; import styled from '@emotion/styled'; -import { LogColumnConfiguration } from '../../../utils/source_configuration'; +import type { LogColumnConfiguration } from '../../../utils/source_configuration'; import { useVisibilityState } from '../../../hooks/use_visibility_state'; interface SelectableColumnOption { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_elements.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_elements.tsx index 8058a10bcd269..151a070a328b0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_elements.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_elements.tsx @@ -8,8 +8,8 @@ import equal from 'fast-deep-equal'; import { useCallback, useMemo, useState } from 'react'; import useAsync from 'react-use/lib/useAsync'; -import { ObjectEntries } from '../../../../common/utility_types'; -import { ChildFormValidationError, GenericValidationError } from './validation_errors'; +import type { ObjectEntries } from '../../../../common/utility_types'; +import type { ChildFormValidationError, GenericValidationError } from './validation_errors'; const unsetValue = Symbol('unset form value'); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_field_props.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_field_props.tsx index 81711f7464da8..27f8c50db74f9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_field_props.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/form_field_props.tsx @@ -5,9 +5,9 @@ * 2.0. */ import React from 'react'; -import { FormElement } from './form_elements'; +import type { FormElement } from './form_elements'; import { LogSourceConfigurationFormError } from './source_configuration_form_errors'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const getFormRowProps = (formElement: FormElement) => ({ error: diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_names_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_names_configuration_panel.tsx index 0b6a9b1a5e86e..cf6629df42215 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_names_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_names_configuration_panel.tsx @@ -9,10 +9,10 @@ import { EuiCode, EuiDescribedFormGroup, EuiFieldText, EuiFormRow } from '@elast import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import { useTrackPageview } from '@kbn/observability-shared-plugin/public'; -import { LogIndexNameReference } from '@kbn/logs-shared-plugin/common'; -import { FormElement } from './form_elements'; +import type { LogIndexNameReference } from '@kbn/logs-shared-plugin/common'; +import type { FormElement } from './form_elements'; import { getFormRowProps, getInputFieldProps } from './form_field_props'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const IndexNamesConfigurationPanel: React.FC<{ isLoading: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_configuration_panel.tsx index 5f10fcbf6688a..caca8bcf72594 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_configuration_panel.tsx @@ -10,11 +10,11 @@ import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useMemo } from 'react'; import { useTrackPageview } from '@kbn/observability-shared-plugin/public'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; -import { LogDataViewReference } from '@kbn/logs-shared-plugin/common'; -import { FormElement } from './form_elements'; +import type { LogDataViewReference } from '@kbn/logs-shared-plugin/common'; +import type { FormElement } from './form_elements'; import { getFormRowProps } from './form_field_props'; import { IndexPatternSelector } from './index_pattern_selector'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const IndexPatternConfigurationPanel: React.FC<{ isLoading: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_selector.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_selector.tsx index c63b27f6d0ce1..7283cbeea47bb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_selector.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/index_pattern_selector.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useEffect, useMemo } from 'react'; import { useKibanaIndexPatternTitles } from '../../../hooks/use_kibana_index_patterns'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_form_state.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_form_state.ts index 581d8d3011cd6..46f3980c95323 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_form_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_form_state.ts @@ -8,17 +8,19 @@ import { useMemo } from 'react'; import { SavedObjectNotFound } from '@kbn/kibana-utils-plugin/common'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; -import { +import type { LogDataViewReference, LogIndexNameReference, - logIndexNameReferenceRT, LogSourcesKibanaAdvancedSettingReference, +} from '@kbn/logs-shared-plugin/common'; +import { + logIndexNameReferenceRT, logSourcesKibanaAdvancedSettingRT, } from '@kbn/logs-shared-plugin/common'; import { useKibanaIndexPatternService } from '../../../hooks/use_kibana_index_patterns'; import { useFormElement } from './form_elements'; +import type { FormValidationError } from './validation_errors'; import { - FormValidationError, validateIndexPattern, validateStringNotEmpty, validateStringNoSpaces, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.stories.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.stories.tsx index 4c4638d495a31..864797635312e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.stories.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.stories.tsx @@ -5,17 +5,17 @@ * 2.0. */ -import { EuiCodeBlock, EuiPage, EuiPageBody, EuiPanel, PropsOf } from '@elastic/eui'; +import type { PropsOf } from '@elastic/eui'; +import { EuiCodeBlock, EuiPage, EuiPageBody, EuiPanel } from '@elastic/eui'; import { I18nProvider } from '@kbn/i18n-react'; -import { Meta, Story } from '@storybook/react/types-6-0'; +import type { Meta, Story } from '@storybook/react/types-6-0'; import React from 'react'; import { KBN_FIELD_TYPES } from '@kbn/data-plugin/public'; -import { - MockIndexPatternsKibanaContextProvider, - MockIndexPatternSpec, -} from '../../../hooks/use_kibana_index_patterns.mock'; +import type { MockIndexPatternSpec } from '../../../hooks/use_kibana_index_patterns.mock'; +import { MockIndexPatternsKibanaContextProvider } from '../../../hooks/use_kibana_index_patterns.mock'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; -import { LogIndicesFormState, useLogIndicesFormElement } from './indices_configuration_form_state'; +import type { LogIndicesFormState } from './indices_configuration_form_state'; +import { useLogIndicesFormElement } from './indices_configuration_form_state'; import { IndicesConfigurationPanel } from './indices_configuration_panel'; export default { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.tsx index 0e16a404cbd54..70c59259a2c52 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/indices_configuration_panel.tsx @@ -9,11 +9,10 @@ import { EuiCheckableCard, EuiFormFieldset, EuiSpacer, EuiTitle } from '@elastic import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback, useEffect, useState } from 'react'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; +import type { LogDataViewReference, LogIndexReference } from '@kbn/logs-shared-plugin/common'; import { logIndexNameReferenceRT, - LogDataViewReference, logDataViewReferenceRT, - LogIndexReference, logSourcesKibanaAdvancedSettingRT, } from '@kbn/logs-shared-plugin/common'; import { EuiCallOut } from '@elastic/eui'; @@ -21,13 +20,15 @@ import { i18n } from '@kbn/i18n'; import { loadRuleAggregations } from '@kbn/triggers-actions-ui-plugin/public'; import { AlertConsumers, LOG_THRESHOLD_ALERT_TYPE_ID } from '@kbn/rule-data-utils'; -import { rulesLocatorID, RulesParams } from '@kbn/observability-plugin/public'; +import type { RulesParams } from '@kbn/observability-plugin/public'; +import { rulesLocatorID } from '@kbn/observability-plugin/public'; import { EuiLink } from '@elastic/eui'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; -import { FormElement, isFormElementForType } from './form_elements'; +import type { FormElement } from './form_elements'; +import { isFormElementForType } from './form_elements'; import { IndexNamesConfigurationPanel } from './index_names_configuration_panel'; import { IndexPatternConfigurationPanel } from './index_pattern_configuration_panel'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; import { KibanaAdvancedSettingConfigurationPanel } from './kibana_advanced_setting_configuration_panel'; export const IndicesConfigurationPanel = React.memo<{ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_form_state.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_form_state.tsx index 80eb44de9da9d..79526ec853055 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_form_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_form_state.tsx @@ -6,9 +6,10 @@ */ import { useMemo } from 'react'; -import { LogColumnConfiguration } from '../../../utils/source_configuration'; +import type { LogColumnConfiguration } from '../../../utils/source_configuration'; import { useFormElement } from './form_elements'; -import { FormValidationError, validateColumnListNotEmpty } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; +import { validateColumnListNotEmpty } from './validation_errors'; export const useLogColumnsFormElement = (initialValue: LogColumnConfiguration[]) => { const logColumnsFormElement = useFormElement({ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_panel.tsx index 0b884f5529a66..4e0139c9d78c7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/log_columns_configuration_panel.tsx @@ -23,19 +23,21 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useCallback } from 'react'; import type { DropResult, DragHandleProps } from '../../../types'; -import { +import type { FieldLogColumnConfiguration, - getLogColumnConfigurationId, - isMessageLogColumnConfiguration, - isTimestampLogColumnConfiguration, LogColumnConfiguration, MessageLogColumnConfiguration, TimestampLogColumnConfiguration, } from '../../../utils/source_configuration'; +import { + getLogColumnConfigurationId, + isMessageLogColumnConfiguration, + isTimestampLogColumnConfiguration, +} from '../../../utils/source_configuration'; import { AddLogColumnButtonAndPopover } from './add_log_column_popover'; -import { FormElement } from './form_elements'; +import type { FormElement } from './form_elements'; import { LogSourceConfigurationFormError } from './source_configuration_form_errors'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const LogColumnsConfigurationPanel = React.memo<{ availableFields: string[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_form_state.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_form_state.tsx index f97ece074c4a3..ae653f8d06f6a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_form_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_form_state.tsx @@ -7,7 +7,8 @@ import { useMemo } from 'react'; import { useFormElement } from './form_elements'; -import { FormValidationError, validateStringNotEmpty } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; +import { validateStringNotEmpty } from './validation_errors'; export const useNameFormElement = (initialValue: string) => { const nameFormElement = useFormElement({ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_panel.tsx index 11758dd32077d..d319753d49f49 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/name_configuration_panel.tsx @@ -15,9 +15,9 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useMemo } from 'react'; -import { FormElement } from './form_elements'; +import type { FormElement } from './form_elements'; import { getFormRowProps, getStringInputFieldProps } from './form_field_props'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const NameConfigurationPanel = React.memo<{ isLoading: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_errors.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_errors.tsx index d046173f4461e..2ed1237ca786a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_errors.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_errors.tsx @@ -9,7 +9,7 @@ import { EuiCallOut, EuiCode } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { FormValidationError } from './validation_errors'; +import type { FormValidationError } from './validation_errors'; export const LogSourceConfigurationFormErrors: React.FC<{ errors: FormValidationError[] }> = ({ errors, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_state.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_state.tsx index 01035f8259a0f..eee7dd8f516e7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/source_configuration_form_state.tsx @@ -6,7 +6,7 @@ */ import { useMemo } from 'react'; -import { LogViewAttributes } from '@kbn/logs-shared-plugin/common'; +import type { LogViewAttributes } from '@kbn/logs-shared-plugin/common'; import { useCompositeFormElement } from './form_elements'; import { useLogIndicesFormElement } from './indices_configuration_form_state'; import { useLogColumnsFormElement } from './log_columns_configuration_form_state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/validation_errors.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/validation_errors.ts index b769bb68f8d2a..b2671601bde45 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/validation_errors.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/settings/validation_errors.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { DataView } from '@kbn/data-views-plugin/public'; +import type { DataView } from '@kbn/data-views-plugin/public'; import { KBN_FIELD_TYPES } from '@kbn/data-plugin/public'; export interface GenericValidationError { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/call_get_log_analysis_id_formats.ts b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/call_get_log_analysis_id_formats.ts index dd2e15d415b69..53f641f7653e6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/call_get_log_analysis_id_formats.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/call_get_log_analysis_id_formats.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { HttpHandler } from '@kbn/core/public'; +import type { HttpHandler } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { getLogAnalysisIdFormatsRequestPayloadRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_log_view_error.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_log_view_error.tsx index 64a307f1bdd6c..8914eb36f8c20 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_log_view_error.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_log_view_error.tsx @@ -7,7 +7,8 @@ import { EuiButton, EuiButtonEmpty, EuiCallOut, EuiEmptyPrompt, EuiSpacer } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import React, { useCallback, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useCallback } from 'react'; import { SavedObjectNotFound } from '@kbn/kibana-utils-plugin/common'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; import { useSelector } from '@xstate/react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_template.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_template.tsx index c0dfc79641dde..f98ed8a53242c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_template.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/page_template.tsx @@ -9,7 +9,7 @@ import React, { useEffect } from 'react'; import { i18n } from '@kbn/i18n'; import type { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; -import { NoDataConfig } from '@kbn/shared-ux-page-kibana-template'; +import type { NoDataConfig } from '@kbn/shared-ux-page-kibana-template'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; export interface LogsPageTemplateProps extends LazyObservabilityPageTemplateProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/use_log_ml_job_id_formats_shim.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/use_log_ml_job_id_formats_shim.tsx index ee581763225a3..dac93b656d81f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/use_log_ml_job_id_formats_shim.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/shared/use_log_ml_job_id_formats_shim.tsx @@ -8,7 +8,7 @@ import createContainer from 'constate'; import { useState, useEffect, useCallback } from 'react'; import { useLogViewContext } from '@kbn/logs-shared-plugin/public'; -import { IdFormatByJobType, JobType } from '../../../../common/http_api/latest'; +import type { IdFormatByJobType, JobType } from '../../../../common/http_api/latest'; import { useActiveKibanaSpace } from '../../../hooks/use_kibana_space'; import { useTrackedPromise } from '../../../hooks/use_tracked_promise'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/components/stream_page_template.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/components/stream_page_template.tsx index 5ea865351ef38..fbe7a34837031 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/components/stream_page_template.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/components/stream_page_template.tsx @@ -12,7 +12,8 @@ import { useLogViewContext } from '@kbn/logs-shared-plugin/public'; import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiBadge, EuiToolTip } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { fullHeightContentStyles } from '../../../../page_template.styles'; -import { LogsPageTemplate, LogsPageTemplateProps } from '../../shared/page_template'; +import type { LogsPageTemplateProps } from '../../shared/page_template'; +import { LogsPageTemplate } from '../../shared/page_template'; export const LogStreamPageTemplate: React.FC = (props) => { const { logView, isInlineLogView, revertToDefaultLogView } = useLogViewContext(); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_content.tsx index e14d52fe1693b..8ec0031f535c1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_content.tsx @@ -5,17 +5,17 @@ * 2.0. */ -import { TimeRange } from '@kbn/es-query'; +import type { TimeRange } from '@kbn/es-query'; import { useActor } from '@xstate/react'; import React, { useMemo } from 'react'; -import { VisiblePositions } from '../../../observability_logs/log_stream_position_state'; -import { TimeKey } from '../../../../common/time'; +import type { VisiblePositions } from '../../../observability_logs/log_stream_position_state'; +import type { TimeKey } from '../../../../common/time'; import { SourceLoadingPage } from '../../../components/source_loading_page'; -import { +import type { LogStreamPageCallbacks, LogStreamPageState, - useLogStreamPageStateContext, } from '../../../observability_logs/log_stream_page/state'; +import { useLogStreamPageStateContext } from '../../../observability_logs/log_stream_page/state'; import { InvalidStateCallout } from '../../../observability_logs/xstate_helpers'; import { ConnectedLogViewErrorPage } from '../shared/page_log_view_error'; import { LogStreamPageTemplate } from './components/stream_page_template'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_logs_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_logs_content.tsx index 7ab709b837cc9..ad12c1f719a21 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_logs_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_logs_content.tsx @@ -8,27 +8,30 @@ import { EuiSpacer } from '@elastic/eui'; import type { Query } from '@kbn/es-query'; import styled from '@emotion/styled'; -import { LogEntry, convertISODateToNanoPrecision } from '@kbn/logs-shared-plugin/common'; +import type { LogEntry } from '@kbn/logs-shared-plugin/common'; +import { convertISODateToNanoPrecision } from '@kbn/logs-shared-plugin/common'; +import type { + LogEntryStreamItem, + UpdatedDateRange, + VisibleInterval, + WithSummaryProps, +} from '@kbn/logs-shared-plugin/public'; import { LogEntryFlyout, - LogEntryStreamItem, ScrollableLogTextStreamView, - UpdatedDateRange, useLogHighlightsStateContext, useLogPositionStateContext, useLogStreamContext, useLogViewContext, - VisibleInterval, WithSummary, - WithSummaryProps, } from '@kbn/logs-shared-plugin/public'; import { useSelector } from '@xstate/react'; import stringify from 'json-stable-stringify'; import React, { useCallback, useEffect, useMemo } from 'react'; import usePrevious from 'react-use/lib/usePrevious'; -import { MatchedStateFromActor } from '@kbn/xstate-utils'; +import type { MatchedStateFromActor } from '@kbn/xstate-utils'; import { LogsDeprecationCallout } from '../../../components/logs_deprecation_callout'; -import { TimeKey } from '../../../../common/time'; +import type { TimeKey } from '../../../../common/time'; import { AutoSizer } from '../../../components/auto_sizer'; import { LogMinimap } from '../../../components/logging/log_minimap'; import { PageContent } from '../../../components/page'; @@ -40,11 +43,11 @@ import { useLogViewConfigurationContext } from '../../../containers/logs/log_vie import { useViewLogInProviderContext } from '../../../containers/logs/view_log_in_context'; import { WithLogTextviewUrlState } from '../../../containers/logs/with_log_textview'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; -import { +import type { LogStreamPageActorRef, LogStreamPageCallbacks, - useLogStreamPageStateContext, } from '../../../observability_logs/log_stream_page/state'; +import { useLogStreamPageStateContext } from '../../../observability_logs/log_stream_page/state'; import { type ParsedQuery } from '../../../observability_logs/log_stream_query_state'; import { datemathToEpochMillis, isValidDatemath } from '../../../utils/datemath'; import { LogsToolbar } from './page_toolbar'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_providers.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_providers.tsx index 497329782d879..cbeb08e3c4f38 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_providers.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_providers.tsx @@ -6,7 +6,8 @@ */ import stringify from 'json-stable-stringify'; -import React, { useMemo, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useMemo } from 'react'; import { LogHighlightsStateProvider, LogPositionStateProvider, @@ -15,8 +16,8 @@ import { useLogStreamContext, useLogViewContext, } from '@kbn/logs-shared-plugin/public'; -import { MatchedStateFromActor } from '@kbn/xstate-utils'; -import { +import type { MatchedStateFromActor } from '@kbn/xstate-utils'; +import type { LogStreamPageActorRef, LogStreamPageCallbacks, } from '../../../observability_logs/log_stream_page/state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_view_log_in_context.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_view_log_in_context.tsx index 0b458e925c082..c32b7ff9005b7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_view_log_in_context.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/logs/stream/page_view_log_in_context.tsx @@ -17,7 +17,7 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { isEmpty } from 'lodash'; import React, { useCallback, useMemo } from 'react'; import styled from '@emotion/styled'; -import { LogEntry } from '@kbn/logs-shared-plugin/common'; +import type { LogEntry } from '@kbn/logs-shared-plugin/common'; import { LogStream } from '@kbn/logs-shared-plugin/public'; import { useViewLogInProviderContext } from '../../../containers/logs/view_log_in_context'; import { useViewportDimensions } from '../../../hooks/use_viewport_dimensions'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/chart/metric_chart_wrapper.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/chart/metric_chart_wrapper.tsx index 39f4b99e808f1..6103f76a07369 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/chart/metric_chart_wrapper.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/chart/metric_chart_wrapper.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { useEffect, useRef, CSSProperties } from 'react'; +import type { CSSProperties } from 'react'; +import React, { useEffect, useRef } from 'react'; import { Chart, Metric, Settings, type MetricWNumber, type MetricWTrend } from '@elastic/charts'; import { EuiPanel, EuiToolTip, useEuiTheme } from '@elastic/eui'; import { css } from '@emotion/react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/hosts_table.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/hosts_table.tsx index 703f58aa84cc4..ac782beb012d4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/hosts_table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/hosts_table.tsx @@ -10,7 +10,8 @@ import { usePerformanceContext } from '@kbn/ebt-tools'; import { EuiBasicTable } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { EuiEmptyPrompt } from '@elastic/eui'; -import { HostNodeRow, useHostsTableContext } from '../hooks/use_hosts_table'; +import type { HostNodeRow } from '../hooks/use_hosts_table'; +import { useHostsTableContext } from '../hooks/use_hosts_table'; import { useHostsViewContext } from '../hooks/use_hosts_view'; import { useHostCountContext } from '../hooks/use_host_count'; import { FlyoutWrapper } from './host_details_flyout/flyout_wrapper'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/control_panels_config.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/control_panels_config.ts index 75e2469974768..67a0702b288de 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/control_panels_config.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/control_panels_config.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ControlPanels } from '@kbn/observability-shared-plugin/public'; +import type { ControlPanels } from '@kbn/observability-shared-plugin/public'; export const availableControlsPanels = { HOST_OS_NAME: 'host.os.name', diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/controls_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/controls_content.tsx index f0b9b2b0c3b76..cabb89bf68b81 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/controls_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/controls_content.tsx @@ -5,13 +5,13 @@ * 2.0. */ -import { - ControlGroupRenderer, +import type { ControlGroupRendererApi, ControlGroupRuntimeState, DataControlApi, } from '@kbn/controls-plugin/public'; -import { DataView } from '@kbn/data-views-plugin/public'; +import { ControlGroupRenderer } from '@kbn/controls-plugin/public'; +import type { DataView } from '@kbn/data-views-plugin/public'; import type { Filter, Query, TimeRange } from '@kbn/es-query'; import styled from '@emotion/styled'; import { useControlPanels } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/limit_options.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/limit_options.tsx index 8969ed97e2aff..f87cae84621ff 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/limit_options.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/limit_options.tsx @@ -6,9 +6,9 @@ */ import React, { useCallback, useState } from 'react'; +import type { EuiButtonGroupOptionProps } from '@elastic/eui'; import { EuiButtonGroup, - EuiButtonGroupOptionProps, EuiFlexGroup, EuiFlexItem, EuiIcon, @@ -18,7 +18,7 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { HOST_LIMIT_OPTIONS } from '../../constants'; -import { HostLimitOptions } from '../../types'; +import type { HostLimitOptions } from '../../types'; interface Props { limit: HostLimitOptions; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/unified_search_bar.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/unified_search_bar.tsx index 084584c37c147..426cc275d52d0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/unified_search_bar.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/search_bar/unified_search_bar.tsx @@ -15,7 +15,7 @@ import { useUnifiedSearchContext } from '../../hooks/use_unified_search'; import { ControlsContent } from './controls_content'; import { useMetricsDataViewContext } from '../../../../../containers/metrics_source'; import { LimitOptions } from './limit_options'; -import { HostLimitOptions } from '../../types'; +import type { HostLimitOptions } from '../../types'; export const UnifiedSearchBar = () => { const { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/table/add_data_troubleshooting_popover.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/table/add_data_troubleshooting_popover.tsx index 419f78a892352..c5f51ddb7b66c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/table/add_data_troubleshooting_popover.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/table/add_data_troubleshooting_popover.tsx @@ -18,10 +18,8 @@ import { EuiText, } from '@elastic/eui'; -import { - ObservabilityOnboardingLocatorParams, - OBSERVABILITY_ONBOARDING_LOCATOR, -} from '@kbn/deeplinks-observability'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; import { i18n } from '@kbn/i18n'; import { useBoolean } from '@kbn/react-hooks'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/alerts/alerts_tab_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/alerts/alerts_tab_content.tsx index 34726a68ab2dd..077a0b3ba284d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/alerts/alerts_tab_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/alerts/alerts_tab_content.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { AlertConsumers, OBSERVABILITY_RULE_TYPE_IDS } from '@kbn/rule-data-utils'; -import { BrushEndListener, type XYBrushEvent } from '@elastic/charts'; +import type { BrushEndListener } from '@elastic/charts'; +import { type XYBrushEvent } from '@elastic/charts'; import { useSummaryTimeRange } from '@kbn/observability-plugin/public'; import { useBoolean } from '@kbn/react-hooks'; import type { TimeRange } from '@kbn/es-query'; @@ -17,7 +18,7 @@ import { HeightRetainer } from '../../../../../../components/height_retainer'; import { useUnifiedSearchContext } from '../../../hooks/use_unified_search'; import { useAlertsQuery } from '../../../hooks/use_alerts_query'; import type { HostsState } from '../../../hooks/use_unified_search_url_state'; -import { AlertsEsQuery } from '../../../../../../utils/filters/create_alerts_es_query'; +import type { AlertsEsQuery } from '../../../../../../utils/filters/create_alerts_es_query'; import { ALERTS_PER_PAGE, ALERTS_TABLE_ID, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_link_to_stream.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_link_to_stream.tsx index 7dc615517f827..d594f02d36ce5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_link_to_stream.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_link_to_stream.tsx @@ -5,7 +5,8 @@ * 2.0. */ import React from 'react'; -import { getLogsLocatorsFromUrlService, LogViewReference } from '@kbn/logs-shared-plugin/common'; +import type { LogViewReference } from '@kbn/logs-shared-plugin/common'; +import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { OpenInLogsExplorerButton } from '@kbn/logs-shared-plugin/public'; import { useKibanaContextForPlugin } from '../../../../../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_tab_content.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_tab_content.tsx index 68a5db6d4d484..577fcf0dfe528 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_tab_content.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/components/tabs/logs/logs_tab_content.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/constants.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/constants.ts index acd7e1e36cd81..a38441629e219 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/constants.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/constants.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { HostLimitOptions } from './types'; +import type { HostLimitOptions } from './types'; export const DEFAULT_HOST_LIMIT: HostLimitOptions = 100; export const DEFAULT_PAGE_SIZE = 10; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_host_count.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_host_count.test.ts index 641194c82888a..bf1d6ada26ec2 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_host_count.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_host_count.test.ts @@ -8,7 +8,7 @@ import { renderHook } from '@testing-library/react'; import { useFetcher } from '../../../../hooks/use_fetcher'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; -import * as useKibanaContextForPluginHook from '../../../../hooks/use_kibana'; +import type * as useKibanaContextForPluginHook from '../../../../hooks/use_kibana'; import * as useUnifiedSearchHooks from './use_unified_search'; import { useHostCount } from './use_host_count'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.test.ts index abae2d5cadbff..309f6929d5085 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.test.ts @@ -7,7 +7,7 @@ import { type HostNodeRow, useHostsTable } from './use_hosts_table'; import { renderHook } from '@testing-library/react'; -import { InfraAssetMetricsItem } from '../../../../../common/http_api'; +import type { InfraAssetMetricsItem } from '../../../../../common/http_api'; import * as useUnifiedSearchHooks from './use_unified_search'; import * as useHostsViewHooks from './use_hosts_view'; import * as useKibanaContextForPluginHook from '../../../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx index 95f951fd82ff3..cc05ae2002197 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx @@ -6,18 +6,17 @@ */ import React, { useCallback, useMemo, useState } from 'react'; -import { +import type { EuiBasicTableColumn, CriteriaWithPagination, EuiTableSelectionType, - EuiText, - EuiLink, } from '@elastic/eui'; +import { EuiText, EuiLink } from '@elastic/eui'; import createContainer from 'constate'; import useAsync from 'react-use/lib/useAsync'; import { isEqual } from 'lodash'; import { isNumber } from 'lodash/fp'; -import { CloudProvider } from '@kbn/custom-icons'; +import type { CloudProvider } from '@kbn/custom-icons'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import { EuiToolTip } from '@elastic/eui'; import { EuiBadge } from '@elastic/eui'; @@ -33,7 +32,8 @@ import type { InfraAssetMetricsItem, InfraAssetMetricType, } from '../../../../../common/http_api'; -import { Sorting, useHostsTableUrlState } from './use_hosts_table_url_state'; +import type { Sorting } from './use_hosts_table_url_state'; +import { useHostsTableUrlState } from './use_hosts_table_url_state'; import { useHostsViewContext } from './use_hosts_view'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; import { ColumnHeader } from '../components/table/column_header'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_view.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_view.ts index 941c537acc13c..f176beb626191 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_view.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_view.ts @@ -14,16 +14,16 @@ import { useMemo } from 'react'; import createContainer from 'constate'; -import { BoolQuery } from '@kbn/es-query'; +import type { BoolQuery } from '@kbn/es-query'; import { isPending, useFetcher } from '../../../../hooks/use_fetcher'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; import { useUnifiedSearchContext } from './use_unified_search'; -import { +import type { GetInfraMetricsRequestBodyPayloadClient, GetInfraMetricsResponsePayload, InfraAssetMetricType, } from '../../../../../common/http_api'; -import { StringDateRange } from './use_unified_search_url_state'; +import type { StringDateRange } from './use_unified_search_url_state'; const HOST_TABLE_METRICS: InfraAssetMetricType[] = [ 'cpuV2', diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search.ts index 291f95554e89c..cfbb8aeb7ee80 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search.ts @@ -6,7 +6,8 @@ */ import createContainer from 'constate'; import { useCallback, useEffect, useState } from 'react'; -import { buildEsQuery, Filter, fromKueryExpression, TimeRange, type Query } from '@kbn/es-query'; +import type { Filter, TimeRange } from '@kbn/es-query'; +import { buildEsQuery, fromKueryExpression, type Query } from '@kbn/es-query'; import { Subscription, map, tap } from 'rxjs'; import deepEqual from 'fast-deep-equal'; import useEffectOnce from 'react-use/lib/useEffectOnce'; @@ -16,11 +17,11 @@ import { useSearchSessionContext } from '../../../../hooks/use_search_session'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; import { telemetryTimeRangeFormatter } from '../../../../../common/formatters/telemetry_time_range'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; +import type { StringDateRange } from './use_unified_search_url_state'; import { useHostsUrlState, type HostsState, type StringDateRangeTimestamp, - StringDateRange, } from './use_unified_search_url_state'; import { retrieveFieldsFromFilter } from '../../../../utils/filters/build'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search_url_state.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search_url_state.ts index c7bcf09271a3e..5b45a24b389e3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search_url_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_unified_search_url_state.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { Dispatch, useReducer } from 'react'; +import type { Dispatch } from 'react'; +import { useReducer } from 'react'; import deepEqual from 'fast-deep-equal'; import * as rt from 'io-ts'; import { pipe } from 'fp-ts/lib/pipeable'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/types.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/types.ts index d4267f198ebf7..7b04eb9767518 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/types.ts @@ -4,6 +4,6 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { HOST_LIMIT_OPTIONS } from './constants'; +import type { HOST_LIMIT_OPTIONS } from './constants'; export type HostLimitOptions = (typeof HOST_LIMIT_OPTIONS)[number]; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/index.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/index.tsx index 7a0289d461af7..aab707003b224 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/index.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/index.tsx @@ -19,11 +19,9 @@ import { } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { HeaderMenuPortal, useLinkProps } from '@kbn/observability-shared-plugin/public'; -import { SharePublicStart } from '@kbn/share-plugin/public/plugin'; -import { - ObservabilityOnboardingLocatorParams, - OBSERVABILITY_ONBOARDING_LOCATOR, -} from '@kbn/deeplinks-observability'; +import type { SharePublicStart } from '@kbn/share-plugin/public/plugin'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; import { dynamic } from '@kbn/shared-ux-utility'; import { HelpCenterContent } from '../../components/help_center_content'; import { useReadOnlyBadge } from '../../hooks/use_readonly_badge'; @@ -120,7 +118,7 @@ export const InfrastructurePage = () => { )} - + {config.featureFlags.metricsExplorerEnabled && ( diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/bottom_drawer.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/bottom_drawer.tsx index 6ac2c09bc81b9..53636878d8f26 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/bottom_drawer.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/bottom_drawer.tsx @@ -11,10 +11,10 @@ import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, EuiPanel } from '@elastic/eu import styled from '@emotion/styled'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import useLocalStorage from 'react-use/lib/useLocalStorage'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { TryItButton } from '../../../../components/try_it_button'; import { useWaffleOptionsContext } from '../hooks/use_waffle_options'; -import { InfraFormatter } from '../../../../common/inventory/types'; +import type { InfraFormatter } from '../../../../common/inventory/types'; import { Timeline } from './timeline/timeline'; const showHistory = i18n.translate('xpack.infra.showHistory', { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/dropdown_button.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/dropdown_button.tsx index 50b69b94c803e..bdc4a183a2c52 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/dropdown_button.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/dropdown_button.tsx @@ -5,15 +5,16 @@ * 2.0. */ +import type { WithEuiThemeProps } from '@elastic/eui'; import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, withEuiTheme, - WithEuiThemeProps, type EuiThemeComputed, } from '@elastic/eui'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { KubernetesTour } from './kubernetes_tour'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/kubernetes_tour.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/kubernetes_tour.tsx index 787aa9f416266..786ed2bc75c16 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/kubernetes_tour.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/kubernetes_tour.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactElement } from 'react'; +import type { ReactElement } from 'react'; +import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiTourStep, EuiText, EuiButtonEmpty } from '@elastic/eui'; import useLocalStorage from 'react-use/lib/useLocalStorage'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout.tsx index 304b44840a042..e36057c0ee5e9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout.tsx @@ -10,20 +10,18 @@ import useInterval from 'react-use/lib/useInterval'; import { css } from '@emotion/react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import styled from '@emotion/styled'; -import { InventoryView } from '../../../../../common/inventory_views'; -import { SnapshotNode } from '../../../../../common/http_api'; +import type { InventoryView } from '../../../../../common/inventory_views'; +import type { SnapshotNode } from '../../../../../common/http_api'; import { AutoSizer } from '../../../../components/auto_sizer'; import { NodesOverview } from './nodes_overview'; import { calculateBoundsFromNodes } from '../lib/calculate_bounds_from_nodes'; import { PageContent } from '../../../../components/page'; import { useWaffleTimeContext } from '../hooks/use_waffle_time'; import { useWaffleFiltersContext } from '../hooks/use_waffle_filters'; -import { - DEFAULT_LEGEND, - useWaffleOptionsContext, - WaffleLegendOptions, -} from '../hooks/use_waffle_options'; -import { InfraFormatterType, InfraWaffleMapBounds } from '../../../../common/inventory/types'; +import type { WaffleLegendOptions } from '../hooks/use_waffle_options'; +import { DEFAULT_LEGEND, useWaffleOptionsContext } from '../hooks/use_waffle_options'; +import type { InfraWaffleMapBounds } from '../../../../common/inventory/types'; +import { InfraFormatterType } from '../../../../common/inventory/types'; import { Toolbar } from './toolbars/toolbar'; import { ViewSwitcher } from './waffle/view_switcher'; import { createInventoryMetricFormatter } from '../lib/create_inventory_metric_formatter'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout_view.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout_view.tsx index a6e1ba67174c9..74e39b4b40331 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout_view.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/layout_view.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { useInventoryViews } from '../../../../hooks/use_inventory_views'; -import { SnapshotNode } from '../../../../../common/http_api'; +import type { SnapshotNode } from '../../../../../common/http_api'; import { Layout } from './layout'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/nodes_overview.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/nodes_overview.tsx index d012aeb532491..af800a2478e65 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/nodes_overview.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/nodes_overview.tsx @@ -10,8 +10,8 @@ import { usePerformanceContext } from '@kbn/ebt-tools'; import React, { useCallback, useMemo } from 'react'; import { useCurrentEuiBreakpoint } from '@elastic/eui'; import styled from '@emotion/styled'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InfraWaffleMapBounds, InfraWaffleMapOptions, InfraFormatter, @@ -20,7 +20,7 @@ import { NoData } from '../../../../components/empty_states'; import { InfraLoadingPanel } from '../../../../components/loading'; import { Map } from './waffle/map'; import { TableView } from './table_view'; -import { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; import { calculateBoundsFromNodes } from '../lib/calculate_bounds_from_nodes'; import { Legend } from './waffle/legend'; import { useAssetDetailsFlyoutState } from '../hooks/use_asset_details_flyout_url_state'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/table_view.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/table_view.tsx index e41bf377e40e1..0de30f273a0f2 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/table_view.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/table_view.tsx @@ -5,18 +5,19 @@ * 2.0. */ -import { EuiButtonEmpty, EuiInMemoryTable, EuiToolTip, EuiBasicTableColumn } from '@elastic/eui'; +import type { EuiBasicTableColumn } from '@elastic/eui'; +import { EuiButtonEmpty, EuiInMemoryTable, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { last, first } from 'lodash'; import React, { useState, useMemo } from 'react'; import { EuiPopover } from '@elastic/eui'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { createWaffleMapNode } from '../lib/nodes_to_wafflemap'; -import { InfraWaffleMapNode, InfraWaffleMapOptions } from '../../../../common/inventory/types'; +import type { InfraWaffleMapNode, InfraWaffleMapOptions } from '../../../../common/inventory/types'; import { fieldToName } from '../lib/field_to_display_name'; import { NodeContextMenu } from './waffle/node_context_menu'; -import { SnapshotNode, SnapshotNodePath } from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotNode, SnapshotNodePath } from '../../../../../common/http_api/snapshot_api'; import { useAssetDetailsFlyoutState } from '../hooks/use_asset_details_flyout_url_state'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/timeline/timeline.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/timeline/timeline.tsx index a40bab58d70fa..170cad2fb4024 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/timeline/timeline.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/timeline/timeline.tsx @@ -11,27 +11,29 @@ import { FormattedMessage } from '@kbn/i18n-react'; import moment from 'moment'; import { first, last } from 'lodash'; import { EuiLoadingChart, EuiText, EuiEmptyPrompt, EuiButton, useEuiTheme } from '@elastic/eui'; +import type { + ElementClickListener, + RectAnnotationDatum, + XYChartElementEvent, + TooltipProps, +} from '@elastic/charts'; import { Axis, Chart, Settings, Position, niceTimeFormatter, - ElementClickListener, RectAnnotation, - RectAnnotationDatum, - XYChartElementEvent, - TooltipProps, Tooltip, } from '@elastic/charts'; import { EuiFlexItem } from '@elastic/eui'; import { EuiFlexGroup } from '@elastic/eui'; import { EuiIcon } from '@elastic/eui'; import styled from '@emotion/styled'; -import { Metric } from '../../../../../../common/http_api/infra_ml'; +import type { Metric } from '../../../../../../common/http_api/infra_ml'; import { useTimelineChartTheme } from '../../../../../hooks/use_timeline_chart_theme'; import { toMetricOpt } from '../../../../../../common/snapshot_metric_i18n'; -import { MetricsExplorerAggregation } from '../../../../../../common/http_api'; +import type { MetricsExplorerAggregation } from '../../../../../../common/http_api'; import { colorTransformer, Color } from '../../../../../../common/color_palette'; import { useSourceContext } from '../../../../../containers/metrics_source'; import { useTimeline } from '../../hooks/use_timeline'; @@ -41,7 +43,7 @@ import { useWaffleFiltersContext } from '../../hooks/use_waffle_filters'; import { MetricExplorerSeriesChart } from '../../../metrics_explorer/components/series_chart'; import { MetricsExplorerChartType } from '../../../metrics_explorer/hooks/use_metrics_explorer_options'; import { calculateDomain } from '../../../metrics_explorer/components/helpers/calculate_domain'; -import { InfraFormatter } from '../../../../../common/inventory/types'; +import type { InfraFormatter } from '../../../../../common/inventory/types'; import { useMetricsHostsAnomaliesResults } from '../../hooks/use_metrics_hosts_anomalies'; import { useMetricsK8sAnomaliesResults } from '../../hooks/use_metrics_k8s_anomalies'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/aws_ec2_toolbar_items.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/aws_ec2_toolbar_items.tsx index 3a5697aebcbcf..18dfe1b396076 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/aws_ec2_toolbar_items.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/aws_ec2_toolbar_items.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { awsEC2SnapshotMetricTypes } from '@kbn/metrics-data-access-plugin/common'; import { MetricsAndGroupByToolbarItems } from './metrics_and_groupby_toolbar_items'; import { CloudToolbarItems } from './cloud_toolbar_items'; -import { ToolbarProps } from './types'; +import type { ToolbarProps } from './types'; export const ec2groupByFields = [ 'cloud.availability_zone', diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/metrics_and_groupby_toolbar_items.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/metrics_and_groupby_toolbar_items.tsx index 81a82bd93f766..aca957b42dc1e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/metrics_and_groupby_toolbar_items.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/metrics_and_groupby_toolbar_items.tsx @@ -7,7 +7,7 @@ import { EuiFlexItem } from '@elastic/eui'; import React, { useMemo } from 'react'; -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { toMetricOpt } from '../../../../../../common/snapshot_metric_i18n'; import { WaffleMetricControls } from '../waffle/metric_control'; import { WaffleGroupByControls } from '../waffle/waffle_group_by_controls'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx index 44afa9cecc2da..49ea4902f1d10 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar.tsx @@ -7,7 +7,7 @@ import { EuiFlexItem } from '@elastic/eui'; import React from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { InventoryMetaResponseRT } from '../../../../../../common/http_api/inventory_meta_api'; import { useFetcher } from '../../../../../hooks/use_fetcher'; @@ -20,7 +20,7 @@ import { ContainerToolbarItems } from './container_toolbar_items'; import { HostToolbarItems } from './host_toolbar_items'; import { PodToolbarItems } from './pod_toolbar_items'; import { ToolbarWrapper } from './toolbar_wrapper'; -import { ToolbarProps } from './types'; +import type { ToolbarProps } from './types'; interface Props { nodeType: InventoryItemType; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar_wrapper.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar_wrapper.tsx index e1ff4674d9e8d..6bc892e7c4b27 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar_wrapper.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/toolbar_wrapper.tsx @@ -10,7 +10,7 @@ import { EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; import { fieldToName } from '../../lib/field_to_display_name'; import { useWaffleOptionsContext } from '../../hooks/use_waffle_options'; import { WaffleInventorySwitcher } from '../waffle/waffle_inventory_switcher'; -import { ToolbarProps } from './types'; +import type { ToolbarProps } from './types'; interface Props { children: (props: Omit) => React.ReactElement; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/types.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/types.ts index 19e032366885f..0671660653ca0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/toolbars/types.ts @@ -4,14 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { InventoryCloudAccount } from '../../../../../../common/http_api/inventory_meta_api'; -import { +import type { InventoryCloudAccount } from '../../../../../../common/http_api/inventory_meta_api'; +import type { SnapshotCustomMetricInput, SnapshotGroupBy, SnapshotMetricInput, } from '../../../../../../common/http_api/snapshot_api'; -import { InfraGroupByOptions } from '../../../../../common/inventory/types'; -import { WaffleOptionsState, WaffleSortOption } from '../../hooks/use_waffle_options'; +import type { InfraGroupByOptions } from '../../../../../common/inventory/types'; +import type { WaffleOptionsState, WaffleSortOption } from '../../hooks/use_waffle_options'; export interface ToolbarProps extends Omit { changeMetric: (payload: SnapshotMetricInput) => void; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.test.tsx index a4d18eba34aef..200dfb3f41cf4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.test.tsx @@ -8,15 +8,16 @@ import React from 'react'; import { mount } from 'enzyme'; import { ConditionalToolTip } from './conditional_tooltip'; -import { SnapshotNodeResponse } from '../../../../../../common/http_api'; -import { InfraWaffleMapNode } from '../../../../../common/inventory/types'; +import type { SnapshotNodeResponse } from '../../../../../../common/http_api'; +import type { InfraWaffleMapNode } from '../../../../../common/inventory/types'; jest.mock('../../../../../containers/metrics_source', () => ({ useSourceContext: () => ({ sourceId: 'default' }), })); jest.mock('../../hooks/use_snaphot'); -import { useSnapshot, UseSnapshotRequest } from '../../hooks/use_snaphot'; +import type { UseSnapshotRequest } from '../../hooks/use_snaphot'; +import { useSnapshot } from '../../hooks/use_snaphot'; jest.mock('../../hooks/use_waffle_options'); import { useWaffleOptionsContext } from '../../hooks/use_waffle_options'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.tsx index 1d35503cf66f9..bb0f92278c39e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/conditional_tooltip.tsx @@ -9,15 +9,12 @@ import React, { useRef } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, useEuiTheme } from '@elastic/eui'; import { first } from 'lodash'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; -import { - InventoryItemType, - SnapshotMetricType, - SnapshotMetricTypeRT, -} from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import { SnapshotMetricTypeRT } from '@kbn/metrics-data-access-plugin/common'; import { getCustomMetricLabel } from '../../../../../../common/formatters/get_custom_metric_label'; -import { SnapshotCustomMetricInput } from '../../../../../../common/http_api'; +import type { SnapshotCustomMetricInput } from '../../../../../../common/http_api'; import { useSourceContext } from '../../../../../containers/metrics_source'; -import { InfraWaffleMapNode } from '../../../../../common/inventory/types'; +import type { InfraWaffleMapNode } from '../../../../../common/inventory/types'; import { useSnapshot } from '../../hooks/use_snaphot'; import { createInventoryMetricFormatter } from '../../lib/create_inventory_metric_formatter'; import { getSnapshotMetricTranslations } from '../../../../../../common/inventory_models/intl_strings'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx index 30950c0439229..8ed306c068856 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/custom_field_panel.tsx @@ -9,7 +9,7 @@ import { EuiButton, EuiComboBox, EuiForm, EuiFormRow } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { useMetricsDataViewContext } from '../../../../../containers/metrics_source'; -import { InfraGroupByOptions } from '../../../../../common/inventory/types'; +import type { InfraGroupByOptions } from '../../../../../common/inventory/types'; interface Props { onSubmit: (field: string) => void; currentOptions: InfraGroupByOptions[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/gradient_legend.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/gradient_legend.tsx index f76f1af711970..f80cc50cd3ec0 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/gradient_legend.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/gradient_legend.tsx @@ -8,7 +8,7 @@ import React from 'react'; import styled from '@emotion/styled'; import { useEuiFontSize } from '@elastic/eui'; -import { +import type { InfraFormatter, InfraWaffleMapBounds, InfraWaffleMapGradientLegend, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_name.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_name.tsx index eeafce9a7ae49..75d409695d33e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_name.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_name.tsx @@ -8,7 +8,10 @@ import { EuiLink, EuiToolTip, useEuiFontSize } from '@elastic/eui'; import React from 'react'; import styled from '@emotion/styled'; -import { InfraWaffleMapGroup, InfraWaffleMapOptions } from '../../../../../common/inventory/types'; +import type { + InfraWaffleMapGroup, + InfraWaffleMapOptions, +} from '../../../../../common/inventory/types'; interface Props { onDrilldown: (filter: string) => void; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_groups.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_groups.tsx index bb09b568ceb9a..b136ea7d781d9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_groups.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_groups.tsx @@ -7,8 +7,8 @@ import React from 'react'; import styled from '@emotion/styled'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InfraWaffleMapBounds, InfraWaffleMapGroupOfGroups, InfraWaffleMapOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_nodes.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_nodes.tsx index 07185ad58f26b..95437c21b7b01 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_nodes.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/group_of_nodes.tsx @@ -9,8 +9,8 @@ import React from 'react'; import { EuiLoadingSpinner } from '@elastic/eui'; import { isEqual } from 'lodash'; import styled from '@emotion/styled'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InfraWaffleMapBounds, InfraWaffleMapGroupOfNodes, InfraWaffleMapOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend.tsx index 6544bb7c81eb2..8a982f26a5604 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend.tsx @@ -7,10 +7,12 @@ import React from 'react'; import styled from '@emotion/styled'; -import { +import type { InfraFormatter, InfraWaffleMapBounds, InfraWaffleMapLegend, +} from '../../../../../common/inventory/types'; +import { SteppedGradientLegendRT, StepLegendRT, GradientLegendRT, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend_controls.tsx index ce66c788bd1b2..6b1cb1a02676f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/legend_controls.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { EuiSwitchEvent } from '@elastic/eui'; import { EuiButtonEmpty, EuiButton, @@ -16,7 +17,6 @@ import { EuiPopoverTitle, EuiSpacer, EuiSwitch, - EuiSwitchEvent, EuiSelect, EuiRange, EuiFlexGroup, @@ -25,9 +25,10 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import styled from '@emotion/styled'; -import React, { SyntheticEvent, useState, useCallback, useEffect } from 'react'; +import type { SyntheticEvent } from 'react'; +import React, { useState, useCallback, useEffect } from 'react'; import { first, last } from 'lodash'; -import { EuiRangeProps, EuiSelectProps } from '@elastic/eui'; +import type { EuiRangeProps, EuiSelectProps } from '@elastic/eui'; import type { WaffleLegendOptions } from '../../hooks/use_waffle_options'; import { type InfraWaffleMapBounds, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/map.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/map.tsx index 27fb0e501639b..4d45a36df981e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/map.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/map.tsx @@ -7,15 +7,18 @@ import React from 'react'; import styled from '@emotion/styled'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { nodesToWaffleMap } from '../../lib/nodes_to_wafflemap'; import { isWaffleMapGroupWithGroups, isWaffleMapGroupWithNodes } from '../../lib/type_guards'; -import { InfraWaffleMapBounds, InfraWaffleMapOptions } from '../../../../../common/inventory/types'; +import type { + InfraWaffleMapBounds, + InfraWaffleMapOptions, +} from '../../../../../common/inventory/types'; import { AutoSizer } from '../../../../../components/auto_sizer'; import { GroupOfGroups } from './group_of_groups'; import { GroupOfNodes } from './group_of_nodes'; import { applyWaffleMapLayout } from '../../lib/apply_wafflemap_layout'; -import { SnapshotNode } from '../../../../../../common/http_api/snapshot_api'; +import type { SnapshotNode } from '../../../../../../common/http_api/snapshot_api'; import { sortNodes } from '../../lib/sort_nodes'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx index 4d866dd474a23..77e082d161d86 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx @@ -7,6 +7,7 @@ import React, { useState, useCallback } from 'react'; import { v4 as uuidv4 } from 'uuid'; +import type { WithEuiThemeProps } from '@elastic/eui'; import { EuiForm, EuiButton, @@ -19,14 +20,15 @@ import { EuiFlexItem, EuiText, EuiPopoverTitle, - WithEuiThemeProps, withEuiTheme, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; -import { +import type { SnapshotCustomAggregation, SnapshotCustomMetricInput, +} from '../../../../../../../common/http_api/snapshot_api'; +import { SNAPSHOT_CUSTOM_AGGREGATIONS, SnapshotCustomAggregationRT, } from '../../../../../../../common/http_api/snapshot_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx index 4f366094e4d60..588fd916a5bbb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx @@ -8,19 +8,19 @@ import { EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useState, useCallback } from 'react'; -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { SNAPSHOT_API_MAX_METRICS } from '../../../../../../../common/constants'; import { getCustomMetricLabel } from '../../../../../../../common/formatters/get_custom_metric_label'; -import { +import type { SnapshotMetricInput, SnapshotCustomMetricInput, - SnapshotCustomMetricInputRT, } from '../../../../../../../common/http_api/snapshot_api'; +import { SnapshotCustomMetricInputRT } from '../../../../../../../common/http_api/snapshot_api'; import { CustomMetricForm } from './custom_metric_form'; import { MetricsContextMenu } from './metrics_context_menu'; import { ModeSwitcher } from './mode_switcher'; import { MetricsEditMode } from './metrics_edit_mode'; -import { CustomMetricMode } from './types'; +import type { CustomMetricMode } from './types'; import { DropdownButton } from '../../dropdown_button'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_context_menu.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_context_menu.tsx index 3ce49b08d0e2a..e518e36763d78 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_context_menu.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_context_menu.tsx @@ -6,14 +6,16 @@ */ import React, { useCallback } from 'react'; -import { EuiContextMenuPanelDescriptor, EuiContextMenu } from '@elastic/eui'; -import { SnapshotMetricTypeRT, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiContextMenu } from '@elastic/eui'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import { SnapshotMetricTypeRT } from '@kbn/metrics-data-access-plugin/common'; import { getCustomMetricLabel } from '../../../../../../../common/formatters/get_custom_metric_label'; -import { +import type { SnapshotMetricInput, SnapshotCustomMetricInput, - SnapshotCustomMetricInputRT, } from '../../../../../../../common/http_api/snapshot_api'; +import { SnapshotCustomMetricInputRT } from '../../../../../../../common/http_api/snapshot_api'; interface Props { options: Array<{ text: string; value: string }>; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_edit_mode.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_edit_mode.tsx index afff11a467b27..c984ab805a196 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_edit_mode.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/metrics_edit_mode.tsx @@ -15,7 +15,7 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { getCustomMetricLabel } from '../../../../../../../common/formatters/get_custom_metric_label'; -import { SnapshotCustomMetricInput } from '../../../../../../../common/http_api/snapshot_api'; +import type { SnapshotCustomMetricInput } from '../../../../../../../common/http_api/snapshot_api'; interface Props { customMetrics: SnapshotCustomMetricInput[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/mode_switcher.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/mode_switcher.tsx index 256d7827bc773..e3062947569d3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/mode_switcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/mode_switcher.tsx @@ -17,8 +17,8 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { SNAPSHOT_API_MAX_METRICS } from '../../../../../../../common/constants'; -import { CustomMetricMode } from './types'; -import { SnapshotCustomMetricInput } from '../../../../../../../common/http_api/snapshot_api'; +import type { CustomMetricMode } from './types'; +import type { SnapshotCustomMetricInput } from '../../../../../../../common/http_api/snapshot_api'; interface Props { onEdit: () => void; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx index 02e4e634d30d1..c55e360af5747 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node.tsx @@ -9,9 +9,9 @@ import React from 'react'; import { first } from 'lodash'; import { EuiPopover, EuiToolTip } from '@elastic/eui'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { useBoolean } from '@kbn/react-hooks'; -import { +import type { InfraWaffleMapBounds, InfraWaffleMapNode, InfraWaffleMapOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx index c1fa99a6e652b..d88f147432d5c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_context_menu.tsx @@ -10,9 +10,9 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React, { useMemo, useState } from 'react'; +import type { SectionLinkProps } from '@kbn/observability-shared-plugin/public'; import { Section, - SectionLinkProps, SectionTitle, SectionSubtitle, SectionLinks, @@ -30,7 +30,10 @@ import { getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { uptimeOverviewLocatorID } from '@kbn/observability-plugin/common'; import { useKibanaContextForPlugin } from '../../../../../hooks/use_kibana'; import { AlertFlyout } from '../../../../../alerting/inventory/components/alert_flyout'; -import { InfraWaffleMapNode, InfraWaffleMapOptions } from '../../../../../common/inventory/types'; +import type { + InfraWaffleMapNode, + InfraWaffleMapOptions, +} from '../../../../../common/inventory/types'; import { navigateToUptime } from '../../lib/navigate_to_uptime'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_square.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_square.tsx index ef6747b059b84..385219311397c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_square.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/node_square.tsx @@ -6,10 +6,11 @@ */ import { darken, readableColor } from 'polished'; -import React, { CSSProperties } from 'react'; +import type { CSSProperties } from 'react'; +import React from 'react'; import { i18n } from '@kbn/i18n'; import { css } from '@emotion/react'; -import { UseBooleanHandlers } from '@kbn/react-hooks'; +import type { UseBooleanHandlers } from '@kbn/react-hooks'; import { useEuiTheme } from '@elastic/eui'; type NodeProps = React.DetailedHTMLProps, T> & { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/stepped_gradient_legend.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/stepped_gradient_legend.tsx index dbbe8afe00b5f..1c410003c3611 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/stepped_gradient_legend.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/stepped_gradient_legend.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiText } from '@elastic/eui'; import styled from '@emotion/styled'; -import { +import type { InfraWaffleMapBounds, InfraFormatter, InfraWaffleMapSteppedGradientLegend, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/steps_legend.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/steps_legend.tsx index 2c4ab09fa82d3..2e990647fef7c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/steps_legend.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/steps_legend.tsx @@ -9,12 +9,12 @@ import { darken } from 'polished'; import React from 'react'; import styled from '@emotion/styled'; import { useEuiFontSize } from '@elastic/eui'; -import { +import type { InfraFormatter, - InfraWaffleMapRuleOperator, InfraWaffleMapStepLegend, InfraWaffleMapStepRule, } from '../../../../../common/inventory/types'; +import { InfraWaffleMapRuleOperator } from '../../../../../common/inventory/types'; const OPERATORS = { [InfraWaffleMapRuleOperator.gte]: '>=', diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/view_switcher.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/view_switcher.tsx index 8e911f7f82917..6b8d44fe8ff31 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/view_switcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/view_switcher.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButtonGroup, EuiButtonGroupProps } from '@elastic/eui'; +import type { EuiButtonGroupProps } from '@elastic/eui'; +import { EuiButtonGroup } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_accounts_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_accounts_controls.tsx index 422bedb0a7275..e5f24515136f1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_accounts_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_accounts_controls.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiContextMenuPanelDescriptor, EuiPopover, EuiContextMenu } from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiPopover, EuiContextMenu } from '@elastic/eui'; import React, { useCallback, useState, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; -import { InventoryCloudAccount } from '../../../../../../common/http_api/inventory_meta_api'; +import type { InventoryCloudAccount } from '../../../../../../common/http_api/inventory_meta_api'; import { DropdownButton } from '../dropdown_button'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx index bca1a3858f5c9..f63a0856df2bf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_group_by_controls.tsx @@ -5,22 +5,20 @@ * 2.0. */ -import { - EuiBadge, - EuiContextMenu, +import type { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor, - EuiPopover, } from '@elastic/eui'; +import { EuiBadge, EuiContextMenu, EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { css } from '@emotion/react'; import { useBoolean } from '@kbn/react-hooks'; -import { InfraGroupByOptions } from '../../../../../common/inventory/types'; +import type { InfraGroupByOptions } from '../../../../../common/inventory/types'; import { CustomFieldPanel } from './custom_field_panel'; -import { SnapshotGroupBy } from '../../../../../../common/http_api/snapshot_api'; +import type { SnapshotGroupBy } from '../../../../../../common/http_api/snapshot_api'; import { DropdownButton } from '../dropdown_button'; const maxGroupByTooltip = i18n.translate('xpack.infra.waffle.maxGroupByTooltip', { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_inventory_switcher.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_inventory_switcher.tsx index d7b88870b6450..0c66b65677caf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_inventory_switcher.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_inventory_switcher.tsx @@ -5,12 +5,13 @@ * 2.0. */ -import { EuiPopover, EuiContextMenu, EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiPopover, EuiContextMenu } from '@elastic/eui'; import React, { useCallback, useState, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { useWaffleOptionsContext } from '../../hooks/use_waffle_options'; import { DropdownButton } from '../dropdown_button'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_region_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_region_controls.tsx index 1ab2bd17b250c..62733a8699643 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_region_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_region_controls.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiContextMenuPanelDescriptor, EuiPopover, EuiContextMenu } from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiPopover, EuiContextMenu } from '@elastic/eui'; import React, { useCallback, useState, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { DropdownButton } from '../dropdown_button'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_sort_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_sort_controls.tsx index a2ec9dcccfe56..9f5444bd97b60 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_sort_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_sort_controls.tsx @@ -5,17 +5,12 @@ * 2.0. */ -import React, { useCallback, useMemo, useState, ReactNode } from 'react'; -import { - EuiSwitch, - EuiContextMenuPanelDescriptor, - EuiPopover, - EuiContextMenu, - withEuiTheme, - WithEuiThemeProps, -} from '@elastic/eui'; +import type { ReactNode } from 'react'; +import React, { useCallback, useMemo, useState } from 'react'; +import type { EuiContextMenuPanelDescriptor, WithEuiThemeProps } from '@elastic/eui'; +import { EuiSwitch, EuiPopover, EuiContextMenu, withEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { WaffleSortOption } from '../../hooks/use_waffle_options'; +import type { WaffleSortOption } from '../../hooks/use_waffle_options'; import { DropdownButton } from '../dropdown_button'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_time_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_time_controls.tsx index a723958246c10..342cf9efa2ea4 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_time_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/components/waffle/waffle_time_controls.tsx @@ -5,17 +5,18 @@ * 2.0. */ +import type { WithEuiThemeProps } from '@elastic/eui'; import { EuiButton, EuiDatePicker, EuiFlexGroup, EuiFlexItem, EuiToolTip, - WithEuiThemeProps, withEuiTheme, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import moment, { Moment } from 'moment'; +import type { Moment } from 'moment'; +import moment from 'moment'; import React, { useCallback } from 'react'; import { convertIntervalToString } from '../../../../../utils/convert_interval_to_string'; import { useWaffleTimeContext } from '../../hooks/use_waffle_time'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_hosts_anomalies.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_hosts_anomalies.ts index 06eead35a32f4..b8695c1ce8949 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_hosts_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_hosts_anomalies.ts @@ -6,19 +6,21 @@ */ import { useState, useCallback, useEffect, useReducer } from 'react'; -import { BehaviorSubject } from 'rxjs'; +import type { BehaviorSubject } from 'rxjs'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { isPending, isFailure, useFetcher } from '../../../../hooks/use_fetcher'; -import { - INFA_ML_GET_METRICS_HOSTS_ANOMALIES_PATH, +import type { Sort, Pagination, PaginationCursor, - getMetricsHostsAnomaliesRequestPayloadRT, MetricsHostsAnomaly, - getMetricsHostsAnomaliesSuccessReponsePayloadRT, Metric, } from '../../../../../common/http_api/infra_ml'; +import { + INFA_ML_GET_METRICS_HOSTS_ANOMALIES_PATH, + getMetricsHostsAnomaliesRequestPayloadRT, + getMetricsHostsAnomaliesSuccessReponsePayloadRT, +} from '../../../../../common/http_api/infra_ml'; export type SortOptions = Sort; export type PaginationOptions = Pick; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_k8s_anomalies.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_k8s_anomalies.ts index 812e6b76bfe58..eb8f56d28d2e1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_k8s_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_metrics_k8s_anomalies.ts @@ -6,18 +6,20 @@ */ import { useState, useCallback, useEffect, useReducer } from 'react'; -import { BehaviorSubject } from 'rxjs'; +import type { BehaviorSubject } from 'rxjs'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { isFailure, isPending, useFetcher } from '../../../../hooks/use_fetcher'; -import { +import type { Sort, Pagination, PaginationCursor, + MetricsK8sAnomaly, + Metric, +} from '../../../../../common/http_api/infra_ml'; +import { INFA_ML_GET_METRICS_K8S_ANOMALIES_PATH, getMetricsK8sAnomaliesSuccessReponsePayloadRT, getMetricsK8sAnomaliesRequestPayloadRT, - MetricsK8sAnomaly, - Metric, } from '../../../../../common/http_api/infra_ml'; export type SortOptions = Sort; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_snaphot.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_snaphot.ts index 0f16700b14932..9e0ee6e5c5414 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_snaphot.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_snaphot.ts @@ -8,11 +8,11 @@ import { useMemo } from 'react'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { isPending, useFetcher } from '../../../../hooks/use_fetcher'; -import { +import type { InfraTimerangeInput, - SnapshotNodeResponseRT, SnapshotRequest, } from '../../../../../common/http_api/snapshot_api'; +import { SnapshotNodeResponseRT } from '../../../../../common/http_api/snapshot_api'; export interface UseSnapshotRequest extends Omit { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_timeline.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_timeline.ts index 1733c648afeac..b7577ad031353 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_timeline.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_timeline.ts @@ -9,7 +9,7 @@ import { first } from 'lodash'; import { useEffect, useMemo } from 'react'; import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { getIntervalInSeconds } from '../../../../../common/utils/get_interval_in_seconds'; -import { InfraTimerangeInput } from '../../../../../common/http_api/snapshot_api'; +import type { InfraTimerangeInput } from '../../../../../common/http_api/snapshot_api'; import { useSnapshot } from './use_snaphot'; const ONE_MINUTE = 60; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.test.ts index 533857130b114..04933f7769792 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_filters.test.ts @@ -6,10 +6,11 @@ */ import { renderHook, act } from '@testing-library/react'; -import { DataView } from '@kbn/data-views-plugin/common'; -import { useWaffleFilters, WaffleFiltersState } from './use_waffle_filters'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import type { WaffleFiltersState } from './use_waffle_filters'; +import { useWaffleFilters } from './use_waffle_filters'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; -import { ResolvedDataView } from '../../../../utils/data_view'; +import type { ResolvedDataView } from '../../../../utils/data_view'; // Mock useUrlState hook jest.mock('react-router-dom', () => ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.test.ts index 757a0e955b4df..d6acdf107ea69 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.test.ts @@ -7,7 +7,8 @@ import { renderHook, act } from '@testing-library/react'; -import { useWaffleOptions, WaffleOptionsState } from './use_waffle_options'; +import type { WaffleOptionsState } from './use_waffle_options'; +import { useWaffleOptions } from './use_waffle_options'; // Mock useUrlState hook jest.mock('react-router-dom', () => ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.ts index 41b91bce9c4ee..ab8be52fbec38 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_options.ts @@ -12,7 +12,7 @@ import { constant, identity } from 'fp-ts/lib/function'; import createContainer from 'constate'; import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { useUrlState } from '@kbn/observability-shared-plugin/public'; -import { InventoryViewOptions } from '../../../../../common/inventory_views/types'; +import type { InventoryViewOptions } from '../../../../../common/inventory_views/types'; import { type InventoryLegendOptions, type InventoryOptionsState, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_view_state.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_view_state.ts index c1ff4c67addbb..c524f8d9ccba5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_view_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/hooks/use_waffle_view_state.ts @@ -6,7 +6,7 @@ */ import { useCallback } from 'react'; -import { InventoryViewAttributes } from '../../../../../common/inventory_views'; +import type { InventoryViewAttributes } from '../../../../../common/inventory_views'; import { useWaffleOptionsContext, DEFAULT_WAFFLE_OPTIONS_STATE } from './use_waffle_options'; import { useWaffleTimeContext, DEFAULT_WAFFLE_TIME_STATE } from './use_waffle_time'; import { useWaffleFiltersContext, DEFAULT_WAFFLE_FILTERS_STATE } from './use_waffle_filters'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/apply_wafflemap_layout.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/apply_wafflemap_layout.ts index bd3978687ca28..9f0cc75904dca 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/apply_wafflemap_layout.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/apply_wafflemap_layout.ts @@ -7,7 +7,7 @@ import { first, sortBy } from 'lodash'; import { isWaffleMapGroupWithGroups, isWaffleMapGroupWithNodes } from './type_guards'; -import { InfraWaffleMapGroup } from '../../../../common/inventory/types'; +import type { InfraWaffleMapGroup } from '../../../../common/inventory/types'; import { sizeOfSquares } from './size_of_squares'; export function getColumns(n: number, w = 1, h = 1) { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.test.ts index 15b4b70bd391f..a8913fa22046a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.test.ts @@ -6,7 +6,7 @@ */ import { calculateBoundsFromNodes } from './calculate_bounds_from_nodes'; -import { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; const nodes: SnapshotNode[] = [ { name: 'host-01', diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.ts index 8b6f3e734cb41..bad76d846a3b9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/calculate_bounds_from_nodes.ts @@ -6,8 +6,8 @@ */ import { first, min, max, isFinite } from 'lodash'; -import { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; -import { InfraWaffleMapBounds } from '../../../../common/inventory/types'; +import type { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { InfraWaffleMapBounds } from '../../../../common/inventory/types'; export const calculateBoundsFromNodes = (nodes: SnapshotNode[]): InfraWaffleMapBounds => { const values = nodes.map((node) => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/color_from_value.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/color_from_value.ts index e9be23a064320..f821778171655 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/color_from_value.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/color_from_value.ts @@ -7,15 +7,17 @@ import { isEqual, first, gt, gte, last, lt, lte, sortBy } from 'lodash'; import { mix, parseToRgb, toColorString } from 'polished'; -import { +import type { InfraWaffleMapBounds, InfraWaffleMapLegend, + InfraWaffleMapStepRule, + InfraWaffleMapGradientRule, +} from '../../../../common/inventory/types'; +import { InfraWaffleMapRuleOperator, GradientLegendRT, SteppedGradientLegendRT, StepLegendRT, - InfraWaffleMapStepRule, - InfraWaffleMapGradientRule, } from '../../../../common/inventory/types'; const OPERATOR_TO_FN = { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/convert_bounds_to_percents.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/convert_bounds_to_percents.ts index 660719d2f6e0b..28bf126324fd5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/convert_bounds_to_percents.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/convert_bounds_to_percents.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraWaffleMapBounds } from '../../../../common/inventory/types'; +import type { InfraWaffleMapBounds } from '../../../../common/inventory/types'; export const convertBoundsToPercents = (bounds: InfraWaffleMapBounds) => ({ min: bounds.min * 100, max: (bounds.max || 1) * 100, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/create_inventory_metric_formatter.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/create_inventory_metric_formatter.ts index ce7b0a5561e4e..98d93847ba389 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/create_inventory_metric_formatter.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/create_inventory_metric_formatter.ts @@ -6,12 +6,10 @@ */ import { get, isNumber } from 'lodash'; -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { InfraFormatterType } from '../../../../common/inventory/types'; -import { - SnapshotMetricInput, - SnapshotCustomMetricInputRT, -} from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotMetricInput } from '../../../../../common/http_api/snapshot_api'; +import { SnapshotCustomMetricInputRT } from '../../../../../common/http_api/snapshot_api'; import { createFormatterForMetric } from '../../metrics_explorer/components/helpers/create_formatter_for_metric'; import { createFormatter } from '../../../../../common/formatters'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/get_color_palette.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/get_color_palette.ts index 402ad907ee057..fd58c732b30cf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/get_color_palette.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/get_color_palette.ts @@ -13,7 +13,7 @@ import { euiPaletteGreen, euiPaletteWarm, } from '@elastic/eui'; -import { InventoryColorPalette } from '../../../../common/inventory/types'; +import type { InventoryColorPalette } from '../../../../common/inventory/types'; const createColorPalette = (name: InventoryColorPalette = 'cool', steps: number = 10) => { switch (name) { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/navigate_to_uptime.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/navigate_to_uptime.ts index 8fe9c06ce3a15..3762bc4f8e102 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/navigate_to_uptime.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/navigate_to_uptime.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { LocatorPublic } from '@kbn/share-plugin/common/url_service/locators'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { SerializableRecord } from '@kbn/utility-types'; -import { InfraWaffleMapNode } from '../../../../common/inventory/types'; +import type { LocatorPublic } from '@kbn/share-plugin/common/url_service/locators'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { SerializableRecord } from '@kbn/utility-types'; +import type { InfraWaffleMapNode } from '../../../../common/inventory/types'; export const navigateToUptime = ({ uptimeLocator, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/nodes_to_wafflemap.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/nodes_to_wafflemap.ts index 2f01025c2198e..ff7efee7af702 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/nodes_to_wafflemap.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/nodes_to_wafflemap.ts @@ -7,14 +7,14 @@ import { i18n } from '@kbn/i18n'; import { first, last } from 'lodash'; -import { +import type { InfraWaffleMapGroup, InfraWaffleMapGroupOfGroups, InfraWaffleMapGroupOfNodes, InfraWaffleMapNode, } from '../../../../common/inventory/types'; import { isWaffleMapGroupWithGroups, isWaffleMapGroupWithNodes } from './type_guards'; -import { SnapshotNodePath, SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotNodePath, SnapshotNode } from '../../../../../common/http_api/snapshot_api'; export function createId(path: SnapshotNodePath[]) { return path.map((p) => p.value).join('/'); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.test.ts index e22cdc1cc8c22..efd6a89624d47 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.test.ts @@ -6,7 +6,7 @@ */ import { sortNodes } from './sort_nodes'; -import { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; const nodes: SnapshotNode[] = [ { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.ts index 745703f2e4f54..b4d7714997a64 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/sort_nodes.ts @@ -6,8 +6,8 @@ */ import { sortBy, last, first } from 'lodash'; -import { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; -import { WaffleSortOption } from '../hooks/use_waffle_options'; +import type { SnapshotNode } from '../../../../../common/http_api/snapshot_api'; +import type { WaffleSortOption } from '../hooks/use_waffle_options'; const SORT_PATHS = { name: (node: SnapshotNode) => last(node.path), diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/type_guards.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/type_guards.ts index 4e94d56ed4d60..b36f36589bbac 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/type_guards.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/inventory_view/lib/type_guards.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { InfraWaffleMapGroupOfGroups, InfraWaffleMapGroupOfNodes, InfraWaffleMapGradientLegend, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/chart_section_vis.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/chart_section_vis.tsx index fd8811f90adbc..5019a43250ef7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/chart_section_vis.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/chart_section_vis.tsx @@ -8,14 +8,13 @@ import React, { useCallback, useMemo } from 'react'; import moment from 'moment'; import { i18n } from '@kbn/i18n'; +import type { BrushEndListener, TooltipProps } from '@elastic/charts'; import { Axis, Chart, niceTimeFormatter, Position, Settings, - BrushEndListener, - TooltipProps, Tooltip, LegendValue, } from '@elastic/charts'; @@ -32,7 +31,7 @@ import { } from './helpers'; import { ErrorMessage } from './error_message'; import { useKibanaUiSetting } from '../../../../hooks/use_kibana_ui_setting'; -import { VisSectionProps } from '../types'; +import type { VisSectionProps } from '../types'; export const ChartSectionVis = ({ id, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/gauges_section_vis.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/gauges_section_vis.tsx index 673b57ab037ce..669eb88551529 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/gauges_section_vis.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/gauges_section_vis.tsx @@ -15,11 +15,12 @@ import { EuiTitle, } from '@elastic/eui'; import { get, last, max } from 'lodash'; -import React, { ReactText } from 'react'; +import type { ReactText } from 'react'; +import React from 'react'; import styled from '@emotion/styled'; -import { InventoryFormatterType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryFormatterType } from '@kbn/metrics-data-access-plugin/common'; import { createFormatter } from '../../../../../common/formatters'; -import { SeriesOverrides, VisSectionProps } from '../types'; +import type { SeriesOverrides, VisSectionProps } from '../types'; import { getChartName } from './helpers'; const getFormatter = diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/helpers.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/helpers.ts index 84bd07dee5c47..ac768a0081968 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/helpers.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/helpers.ts @@ -5,17 +5,17 @@ * 2.0. */ -import { ReactText } from 'react'; +import type { ReactText } from 'react'; import Color from 'color'; import { get, first, last, min, max } from 'lodash'; -import { - InventoryVisTypeRT, +import type { InventoryFormatterType, InventoryVisType, } from '@kbn/metrics-data-access-plugin/common'; +import { InventoryVisTypeRT } from '@kbn/metrics-data-access-plugin/common'; import { createFormatter } from '../../../../../common/formatters'; -import { SeriesOverrides } from '../types'; -import { +import type { SeriesOverrides } from '../types'; +import type { NodeDetailsDataSeries, NodeDetailsMetricData, } from '../../../../../common/http_api/node_details_api'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/layout.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/layout.tsx index 041d8b81da756..a9c2d1ba7812a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/layout.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/layout.tsx @@ -6,8 +6,8 @@ */ import React from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { LayoutProps } from '../types'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { LayoutProps } from '../types'; import { AwsEC2Layout } from './layouts/aws_ec2_layout'; import { AwsRDSLayout } from './layouts/aws_rds_layout'; import { AwsS3Layout } from './layouts/aws_s3_layout'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/metadata_details.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/metadata_details.tsx index 0309d2a47bff0..c0ef2ca28c457 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/metadata_details.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/metadata_details.tsx @@ -10,7 +10,7 @@ import { get } from 'lodash'; import { EuiButtonIcon, EuiFlexGrid, EuiFlexItem, EuiTitle, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import styled from '@emotion/styled'; -import { InfraMetadata } from '../../../../../common/http_api'; +import type { InfraMetadata } from '../../../../../common/http_api'; import { MetadataContext } from '../containers/metadata_context'; interface FieldDef { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/node_details_page.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/node_details_page.tsx index 0de2ae8f6fbe7..166c4243cd731 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/node_details_page.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/node_details_page.tsx @@ -9,7 +9,7 @@ import React from 'react'; import dateMath from '@kbn/datemath'; import moment from 'moment'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { InventoryMetric, InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryMetric, InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { OnboardingFlow } from '../../../../components/shared/templates/no_data_config'; import { InfraPageTemplate } from '../../../../components/shared/templates/infra_page_template'; @@ -18,10 +18,11 @@ import { isPending, useFetcher } from '../../../../hooks/use_fetcher'; import { useTemplateHeaderBreadcrumbs } from '../../../../components/asset_details/hooks/use_page_header'; import { MetricsSideNav } from './side_nav'; import { MetricsTimeControls } from './time_controls'; -import { SideNavContext, NavItem } from '../lib/side_nav_context'; +import type { NavItem } from '../lib/side_nav_context'; +import { SideNavContext } from '../lib/side_nav_context'; import { PageBody } from './page_body'; -import { MetricsTimeInput } from '../hooks/use_metrics_time'; -import { InfraMetadata } from '../../../../../common/http_api/metadata_api'; +import type { MetricsTimeInput } from '../hooks/use_metrics_time'; +import type { InfraMetadata } from '../../../../../common/http_api/metadata_api'; import { PageError } from './page_error'; import { MetadataContext } from '../containers/metadata_context'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_body.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_body.tsx index 51933e753bd68..992f6a2561ea6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_body.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_body.tsx @@ -7,11 +7,11 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { NodeDetailsMetricData } from '../../../../../common/http_api/node_details_api'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { NodeDetailsMetricData } from '../../../../../common/http_api/node_details_api'; import { NoData } from '../../../../components/empty_states'; import { InfraLoadingPanel } from '../../../../components/loading'; -import { MetricsTimeInput } from '../hooks/use_metrics_time'; +import type { MetricsTimeInput } from '../hooks/use_metrics_time'; import { Layout } from './layout'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.test.tsx index 25ae3b3717bd6..410781476f116 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.test.tsx @@ -10,7 +10,7 @@ import { render } from '@testing-library/react'; import { PageError } from './page_error'; import { errorTitle } from '../../../../translations'; -import { InfraHttpError } from '../../../../types'; +import type { InfraHttpError } from '../../../../types'; import { useDocumentTitle } from '../../../../hooks/use_document_title'; import { I18nProvider } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.tsx index b4cdb47399e98..a1949c448158c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/page_error.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { useDocumentTitle } from '../../../../hooks/use_document_title'; import { InvalidNodeError } from './invalid_node'; import { ErrorPageBody } from '../../../error'; -import { InfraHttpError } from '../../../../types'; +import type { InfraHttpError } from '../../../../types'; import { errorTitle } from '../../../../translations'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/section.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/section.tsx index 3ef9684b4cd56..3b1745ca201ce 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/section.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/section.tsx @@ -6,16 +6,12 @@ */ import { EuiTitle } from '@elastic/eui'; -import React, { - Children, - cloneElement, - FunctionComponent, - isValidElement, - useContext, -} from 'react'; +import type { FunctionComponent } from 'react'; +import React, { Children, cloneElement, isValidElement, useContext } from 'react'; -import { SideNavContext, SubNavItem } from '../lib/side_nav_context'; -import { LayoutProps } from '../types'; +import type { SubNavItem } from '../lib/side_nav_context'; +import { SideNavContext } from '../lib/side_nav_context'; +import type { LayoutProps } from '../types'; type SectionProps = LayoutProps & { navLabel: string; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/series_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/series_chart.tsx index 8d8d28e3abd52..e4cc447d6ede5 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/series_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/series_chart.tsx @@ -6,16 +6,10 @@ */ import React from 'react'; -import { - AreaSeries, - BarSeries, - ScaleType, - RecursivePartial, - BarSeriesStyle, - AreaSeriesStyle, -} from '@elastic/charts'; -import { InventoryVisType } from '@kbn/metrics-data-access-plugin/common'; -import { NodeDetailsDataSeries } from '../../../../../common/http_api/node_details_api'; +import type { RecursivePartial, BarSeriesStyle, AreaSeriesStyle } from '@elastic/charts'; +import { AreaSeries, BarSeries, ScaleType } from '@elastic/charts'; +import type { InventoryVisType } from '@kbn/metrics-data-access-plugin/common'; +import type { NodeDetailsDataSeries } from '../../../../../common/http_api/node_details_api'; import { useKibanaTimeZoneSetting } from '../../../../hooks/use_kibana_time_zone_setting'; interface Props { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/side_nav.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/side_nav.tsx index c4445984de9a3..b3c315d55ae49 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/side_nav.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/side_nav.tsx @@ -7,7 +7,7 @@ import { EuiHideFor, EuiPageSidebar, EuiShowFor, EuiSideNav } from '@elastic/eui'; import React, { useState, useCallback } from 'react'; -import { NavItem } from '../lib/side_nav_context'; +import type { NavItem } from '../lib/side_nav_context'; interface Props { loading: boolean; name: string; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/sub_section.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/sub_section.tsx index eab6988904833..57d92fdf67a7b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/sub_section.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/sub_section.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import React, { isValidElement, cloneElement, FunctionComponent, Children, useMemo } from 'react'; +import type { FunctionComponent } from 'react'; +import React, { isValidElement, cloneElement, Children, useMemo } from 'react'; import { EuiTitle } from '@elastic/eui'; -import { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; -import { LayoutProps } from '../types'; +import type { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; +import type { LayoutProps } from '../types'; type SubSectionProps = LayoutProps & { id: InventoryMetric; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.test.tsx index 70dc780efe590..122e7deff2e69 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.test.tsx @@ -21,7 +21,7 @@ jest.mock('../../../../hooks/use_kibana_ui_setting', () => ({ import React from 'react'; import { MetricsTimeControls } from './time_controls'; import { mount } from 'enzyme'; -import { MetricsTimeInput } from '../hooks/use_metrics_time'; +import type { MetricsTimeInput } from '../hooks/use_metrics_time'; describe('MetricsTimeControls', () => { it('should set a valid from and to value for Today', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.tsx index 0b0df22840406..ca1a8c78493bb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/components/time_controls.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import { EuiSuperDatePicker, OnRefreshChangeProps, OnTimeChangeProps } from '@elastic/eui'; +import type { OnRefreshChangeProps, OnTimeChangeProps } from '@elastic/eui'; +import { EuiSuperDatePicker } from '@elastic/eui'; import React, { useCallback } from 'react'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; import styled from '@emotion/styled'; -import { MetricsTimeInput } from '../hooks/use_metrics_time'; +import type { MetricsTimeInput } from '../hooks/use_metrics_time'; import { useKibanaUiSetting } from '../../../../hooks/use_kibana_ui_setting'; import { mapKibanaQuickRangesToDatePickerRanges } from '../../../../utils/map_timepicker_quickranges_to_datepicker_ranges'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/containers/metadata_context.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/containers/metadata_context.ts index e580efad43429..27b9cdb121e0f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/containers/metadata_context.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/containers/metadata_context.ts @@ -6,5 +6,5 @@ */ import React from 'react'; -import { InfraMetadata } from '../../../../../common/http_api'; +import type { InfraMetadata } from '../../../../../common/http_api'; export const MetadataContext = React.createContext(null); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/hooks/metrics_time.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/hooks/metrics_time.test.tsx index 139d318618f73..3f75b48350f34 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/hooks/metrics_time.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/hooks/metrics_time.test.tsx @@ -6,7 +6,8 @@ */ import { createMemoryHistory } from 'history'; -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { Router } from '@kbn/shared-ux-router'; import { mountHook } from '@kbn/test-jest-helpers'; import { CoreScopedHistory } from '@kbn/core/public'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/lib/get_filtered_metrics.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/lib/get_filtered_metrics.ts index a6cfd30eaa26d..7b395e2831dfa 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/lib/get_filtered_metrics.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/lib/get_filtered_metrics.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; import { metrics } from '@kbn/metrics-data-access-plugin/common'; -import { InfraMetadataFeature } from '../../../../../common/http_api/metadata_api'; +import type { InfraMetadataFeature } from '../../../../../common/http_api/metadata_api'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; export const getFilteredMetrics = ( diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/types.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/types.ts index 62a8e01bf6dcf..aff8934714b9f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metric_detail/types.ts @@ -6,11 +6,11 @@ */ import rt from 'io-ts'; -import { PropsWithChildren } from 'react'; +import type { PropsWithChildren } from 'react'; import type { WithEuiThemeProps } from '@elastic/eui'; import { InventoryFormatterTypeRT } from '@kbn/metrics-data-access-plugin/common'; -import { MetricsTimeInput } from './hooks/use_metrics_time'; -import { NodeDetailsMetricData } from '../../../../common/http_api/node_details_api'; +import type { MetricsTimeInput } from './hooks/use_metrics_time'; +import type { NodeDetailsMetricData } from '../../../../common/http_api/node_details_api'; export interface LayoutProps { metrics?: NodeDetailsMetricData[]; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/aggregation.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/aggregation.tsx index 3b37c2aa36938..1ec0b5a1c956f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/aggregation.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/aggregation.tsx @@ -10,9 +10,9 @@ import { i18n } from '@kbn/i18n'; import React, { useCallback } from 'react'; import { xor } from 'lodash'; -import { EuiSelectProps } from '@elastic/eui'; -import { MetricsExplorerAggregation } from '../../../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; +import type { EuiSelectProps } from '@elastic/eui'; +import type { MetricsExplorerAggregation } from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; import { metricsExplorerAggregationRT, METRIC_EXPLORER_AGGREGATIONS, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart.tsx index 347283ca1f51a..26994e35c88c9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart.tsx @@ -5,16 +5,8 @@ * 2.0. */ -import { - Axis, - BrushEndListener, - Chart, - niceTimeFormatter, - Position, - Settings, - TooltipProps, - Tooltip, -} from '@elastic/charts'; +import type { BrushEndListener, TooltipProps } from '@elastic/charts'; +import { Axis, Chart, niceTimeFormatter, Position, Settings, Tooltip } from '@elastic/charts'; import { EuiFlexGroup, EuiFlexItem, EuiTitle, EuiToolTip } from '@elastic/eui'; import styled from '@emotion/styled'; import { first, last } from 'lodash'; @@ -23,14 +15,14 @@ import React, { useCallback, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { useTimelineChartTheme } from '../../../../hooks/use_timeline_chart_theme'; import { useKibanaContextForPlugin } from '../../../../hooks/use_kibana'; -import { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; import { useKibanaUiSetting } from '../../../../hooks/use_kibana_ui_setting'; -import { +import type { MetricsExplorerChartOptions, MetricsExplorerOptions, MetricsExplorerTimeOptions, - MetricsExplorerYAxisMode, } from '../hooks/use_metrics_explorer_options'; +import { MetricsExplorerYAxisMode } from '../hooks/use_metrics_explorer_options'; import { MetricsExplorerChartContextMenu } from './chart_context_menu'; import { ChartTitle } from './chart_title'; import { MetricsExplorerEmptyChart } from './empty_chart'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.test.tsx index 12f5df8eb38ef..0e54b6fe3f6ab 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.test.tsx @@ -6,16 +6,18 @@ */ import React from 'react'; -import { MetricsExplorerChartContextMenu, Props } from './chart_context_menu'; -import { ReactWrapper, mount } from 'enzyme'; +import type { Props } from './chart_context_menu'; +import { MetricsExplorerChartContextMenu } from './chart_context_menu'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { options, timeRange, chartOptions } from '../../../../utils/fixtures/metrics_explorer'; -import { Capabilities } from '@kbn/core/public'; +import type { Capabilities } from '@kbn/core/public'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { coreMock } from '@kbn/core/public/mocks'; import { MetricsDataViewProvider, SourceProvider } from '../../../../containers/metrics_source'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; -import { DataView } from '@kbn/data-views-plugin/common'; -import { ResolvedDataView } from '../../../../utils/data_view'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import type { ResolvedDataView } from '../../../../utils/data_view'; const coreStartMock = coreMock.createStart(); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.tsx index dbf58dc21685e..2196308b2f7e7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_context_menu.tsx @@ -8,21 +8,17 @@ import React, { useCallback, useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { - EuiButtonEmpty, - EuiContextMenu, - EuiContextMenuPanelDescriptor, - EuiPopover, -} from '@elastic/eui'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; +import { EuiButtonEmpty, EuiContextMenu, EuiPopover } from '@elastic/eui'; import DateMath from '@kbn/datemath'; -import { Capabilities } from '@kbn/core/public'; +import type { Capabilities } from '@kbn/core/public'; import { useLinkProps } from '@kbn/observability-shared-plugin/public'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { useAssetDetailsRedirect } from '@kbn/metrics-data-access-plugin/public'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; import { AlertFlyout } from '../../../../alerting/metric_threshold/components/alert_flyout'; -import { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; -import { +import type { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions, MetricsExplorerTimeOptions, MetricsExplorerChartOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_options.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_options.tsx index 01471fab526ae..3951c8d442c89 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_options.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_options.tsx @@ -8,6 +8,7 @@ import React, { useState, useCallback } from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; +import type { EuiSwitchProps } from '@elastic/eui'; import { EuiRadioGroup, EuiButtonEmpty, @@ -15,10 +16,9 @@ import { EuiForm, EuiFormRow, EuiSwitch, - EuiSwitchProps, } from '@elastic/eui'; +import type { MetricsExplorerChartOptions as ChartOptions } from '../hooks/use_metrics_explorer_options'; import { - MetricsExplorerChartOptions as ChartOptions, MetricsExplorerYAxisMode, MetricsExplorerChartType, } from '../hooks/use_metrics_explorer_options'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx index a7989cffeffba..04de2c401c1dd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx @@ -8,7 +8,7 @@ import React, { Fragment } from 'react'; import { EuiText, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { MetricsExplorerSeries } from '../../../../../common/http_api'; +import type { MetricsExplorerSeries } from '../../../../../common/http_api'; interface Props { series: MetricsExplorerSeries; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/charts.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/charts.tsx index 12ddb26164174..9d0894c0a7c1e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/charts.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/charts.tsx @@ -10,8 +10,8 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import { first, last, sumBy } from 'lodash'; -import { MetricsExplorerResponse } from '../../../../../common/http_api/metrics_explorer'; -import { +import type { MetricsExplorerResponse } from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions, MetricsExplorerTimeOptions, MetricsExplorerChartOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/group_by.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/group_by.tsx index 0dacb7653d159..bbac8cdbe3c20 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/group_by.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/group_by.tsx @@ -9,7 +9,7 @@ import { EuiComboBox } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback } from 'react'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; -import { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; interface Props { options: MetricsExplorerOptions; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domain.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domain.ts index 8572af2e54aa9..c038871089030 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domain.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domain.ts @@ -6,8 +6,8 @@ */ import { min, max, sum, isNumber } from 'lodash'; -import { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; import { getMetricId } from './get_metric_id'; const getMin = (values: Array) => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domian.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domian.test.ts index b94f5dac89ddd..51e194518ba6b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domian.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/calculate_domian.test.ts @@ -6,8 +6,8 @@ */ import { calculateDomain } from './calculate_domain'; -import { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; import { Color } from '../../../../../../common/color_palette'; describe('calculateDomain()', () => { const series: MetricsExplorerSeries = { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metric.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metric.ts index 22ae6b651eb45..21288233b4bb3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metric.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metric.ts @@ -6,7 +6,7 @@ */ import numeral from '@elastic/numeral'; -import { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; import { createFormatter } from '../../../../../../common/formatters'; import { InfraFormatterType } from '../../../../../common/inventory/types'; import { metricToFormat } from './metric_to_format'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metrics.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metrics.test.ts index 954a1b184b4a9..027fca22089eb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metrics.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_formatter_for_metrics.test.ts @@ -6,7 +6,7 @@ */ import { createFormatterForMetric } from './create_formatter_for_metric'; -import { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; describe('createFormatterForMetric()', () => { it('should just work for count', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.test.ts index 0beeb1083683e..23c47ee5a9e23 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.test.ts @@ -6,7 +6,7 @@ */ import { createMetricLabel } from './create_metric_label'; -import { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; describe('createMetricLabel()', () => { it('should work with metrics with fields', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.ts index 4aced70f206a9..7df6eff87b349 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_metric_label.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; export const createMetricLabel = (metric: MetricsExplorerOptionsMetric) => { if (metric.label) { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.test.ts index 4c29f8921947d..da3305313e3cc 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.test.ts @@ -11,7 +11,7 @@ import { MetricsExplorerYAxisMode, MetricsExplorerChartType, } from '../../hooks/use_metrics_explorer_options'; -import { MetricsExplorerOptions } from '../../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptions } from '../../hooks/use_metrics_explorer_options'; jest.mock('uuid', () => ({ v4: jest.fn().mockReturnValue('test-id'), diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.ts index e41d191549c5a..23c98d778a0fd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.ts @@ -8,15 +8,17 @@ import { encode } from '@kbn/rison'; import { v4 as uuidv4 } from 'uuid'; import { set } from '@kbn/safer-lodash-set'; -import { LinkDescriptor } from '@kbn/observability-shared-plugin/public'; +import type { LinkDescriptor } from '@kbn/observability-shared-plugin/public'; import { TIMESTAMP_FIELD } from '../../../../../../common/constants'; import { colorTransformer, Color } from '../../../../../../common/color_palette'; -import { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; -import { +import type { MetricsExplorerSeries } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions, MetricsExplorerOptionsMetric, MetricsExplorerTimeOptions, MetricsExplorerChartOptions, +} from '../../hooks/use_metrics_explorer_options'; +import { MetricsExplorerYAxisMode, MetricsExplorerChartType, } from '../../hooks/use_metrics_explorer_options'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/get_metric_id.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/get_metric_id.ts index 8ec909600be05..f9cf14f2760be 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/get_metric_id.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/get_metric_id.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptionsMetric } from '../../hooks/use_metrics_explorer_options'; export const getMetricId = (metric: MetricsExplorerOptionsMetric, index: string | number) => { return `metric_${index}`; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.test.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.test.ts index 7f8f9b9dc18cb..b31f77ffb1ea7 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.test.ts @@ -6,7 +6,7 @@ */ import { metricToFormat } from './metric_to_format'; -import { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; import { InfraFormatterType } from '../../../../../common/inventory/types'; describe('metricToFormat()', () => { it('should just work for numeric metrics', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.ts index cbb25fb96871d..9eff42490984f 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/helpers/metric_to_format.ts @@ -6,7 +6,7 @@ */ import { last } from 'lodash'; -import { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerMetric } from '../../../../../../common/http_api/metrics_explorer'; import { InfraFormatterType } from '../../../../../common/inventory/types'; export const metricToFormat = (metric?: MetricsExplorerMetric) => { if (metric && metric.field) { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx index a75940714dec6..fd29aa34ec34e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/kuery_bar.tsx @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { fromKueryExpression } from '@kbn/es-query'; import React, { useEffect, useState } from 'react'; -import { QuerySuggestion } from '@kbn/unified-search-plugin/public'; +import type { QuerySuggestion } from '@kbn/unified-search-plugin/public'; import { AutocompleteField } from '@kbn/observability-plugin/public'; import { useEuiTheme } from '@elastic/eui'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/metrics.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/metrics.tsx index c493d2922359b..839abd9c43797 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/metrics.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/metrics.tsx @@ -5,21 +5,15 @@ * 2.0. */ -import { - EuiComboBox, - EuiFlexGroup, - EuiFlexItem, - EuiText, - EuiIcon, - EuiComboBoxOptionOption, -} from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox, EuiFlexGroup, EuiFlexItem, EuiText, EuiIcon } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useState, useMemo } from 'react'; import { METRICS_EXPLORER_API_MAX_METRICS } from '@kbn/metrics-data-access-plugin/common'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; import { colorTransformer, Color } from '../../../../../common/color_palette'; -import { MetricsExplorerMetric } from '../../../../../common/http_api/metrics_explorer'; -import { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerMetric } from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerOptions } from '../hooks/use_metrics_explorer_options'; interface Props { autoFocus?: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/saved_views.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/saved_views.tsx index bf1d914463c96..69e2793a30172 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/saved_views.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/saved_views.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { useMetricsExplorerViews } from '../../../../hooks/use_metrics_explorer_views'; import { SavedViewsToolbarControls } from '../../../../components/saved_views/toolbar_control'; -import { MetricsExplorerViewState } from '../hooks/use_metric_explorer_state'; +import type { MetricsExplorerViewState } from '../hooks/use_metric_explorer_state'; interface Props { viewState: MetricsExplorerViewState; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/series_chart.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/series_chart.tsx index 12db775e243f8..25bb9d158d67b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/series_chart.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/series_chart.tsx @@ -6,21 +6,13 @@ */ import React from 'react'; -import { - ScaleType, - AreaSeries, - BarSeries, - RecursivePartial, - AreaSeriesStyle, - BarSeriesStyle, -} from '@elastic/charts'; -import { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; +import type { RecursivePartial, AreaSeriesStyle, BarSeriesStyle } from '@elastic/charts'; +import { ScaleType, AreaSeries, BarSeries } from '@elastic/charts'; +import type { MetricsExplorerSeries } from '../../../../../common/http_api/metrics_explorer'; import { colorTransformer, Color } from '../../../../../common/color_palette'; import { createMetricLabel } from './helpers/create_metric_label'; -import { - MetricsExplorerOptionsMetric, - MetricsExplorerChartType, -} from '../hooks/use_metrics_explorer_options'; +import type { MetricsExplorerOptionsMetric } from '../hooks/use_metrics_explorer_options'; +import { MetricsExplorerChartType } from '../hooks/use_metrics_explorer_options'; import { useKibanaTimeZoneSetting } from '../../../../hooks/use_kibana_time_zone_setting'; import { getMetricId } from './helpers/get_metric_id'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/toolbar.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/toolbar.tsx index c6724397bd1d0..0f5efc8a6efbb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/toolbar.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/components/toolbar.tsx @@ -9,11 +9,11 @@ import { EuiFlexGroup, EuiFlexItem, EuiSuperDatePicker, EuiText } from '@elastic import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import { UI_SETTINGS } from '@kbn/data-plugin/public'; -import { +import type { MetricsExplorerMetric, MetricsExplorerAggregation, } from '../../../../../common/http_api/metrics_explorer'; -import { +import type { MetricsExplorerOptions, MetricsExplorerTimeOptions, MetricsExplorerChartOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metric_explorer_state.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metric_explorer_state.ts index 0bcb182879d1f..019936f66be85 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metric_explorer_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metric_explorer_state.ts @@ -14,7 +14,7 @@ import type { MetricsExplorerView, MetricsExplorerViewState, } from '../../../../../common/metrics_explorer_views'; -import { +import type { MetricsExplorerMetric, MetricsExplorerAggregation, } from '../../../../../common/http_api/metrics_explorer'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.test.tsx index 8cc6bff922d92..a6a2e70ebf610 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.test.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import React, { FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React from 'react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { useMetricsExplorerData } from './use_metrics_explorer_data'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { waitFor, act, renderHook } from '@testing-library/react'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; @@ -20,11 +21,14 @@ import { resp, createSeries, } from '../../../../utils/fixtures/metrics_explorer'; -import { MetricsExplorerOptions, MetricsExplorerTimestamp } from './use_metrics_explorer_options'; -import { DataViewBase } from '@kbn/es-query'; -import { MetricsSourceConfigurationProperties } from '../../../../../common/metrics_sources'; +import type { + MetricsExplorerOptions, + MetricsExplorerTimestamp, +} from './use_metrics_explorer_options'; +import type { DataViewBase } from '@kbn/es-query'; +import type { MetricsSourceConfigurationProperties } from '../../../../../common/metrics_sources'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; -import { ResolvedDataView } from '../../../../utils/data_view'; +import type { ResolvedDataView } from '../../../../utils/data_view'; const mockedFetch = jest.fn(); diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts index b3ec0dd1f0b1d..9acb7593d15bc 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_data.ts @@ -8,14 +8,15 @@ import { useInfiniteQuery } from '@tanstack/react-query'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { InfraHttpError } from '../../../../types'; +import type { InfraHttpError } from '../../../../types'; import { useMetricsDataViewContext } from '../../../../containers/metrics_source'; -import { - MetricsExplorerResponse, - metricsExplorerResponseRT, -} from '../../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerResponse } from '../../../../../common/http_api/metrics_explorer'; +import { metricsExplorerResponseRT } from '../../../../../common/http_api/metrics_explorer'; import { convertKueryToElasticSearchQuery } from '../../../../utils/kuery'; -import { MetricsExplorerOptions, MetricsExplorerTimestamp } from './use_metrics_explorer_options'; +import type { + MetricsExplorerOptions, + MetricsExplorerTimestamp, +} from './use_metrics_explorer_options'; export function useMetricsExplorerData({ options, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.test.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.test.tsx index f5c257e1f86ac..7e6a565fcf623 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.test.tsx @@ -6,10 +6,12 @@ */ import { renderHook, act } from '@testing-library/react'; -import { - useMetricsExplorerOptions, +import type { MetricsExplorerOptions, MetricsExplorerTimeOptions, +} from './use_metrics_explorer_options'; +import { + useMetricsExplorerOptions, DEFAULT_OPTIONS, DEFAULT_TIMERANGE, } from './use_metrics_explorer_options'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.ts index 6eabfb407731c..96682d13517c8 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options.ts @@ -9,7 +9,8 @@ import DateMath from '@kbn/datemath'; import * as t from 'io-ts'; import createContainer from 'constate'; import type { TimeRange } from '@kbn/es-query'; -import { useState, useEffect, useMemo, Dispatch, SetStateAction } from 'react'; +import type { Dispatch, SetStateAction } from 'react'; +import { useState, useEffect, useMemo } from 'react'; import { type MetricsExplorerChartOptions, type MetricsExplorerOptions, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/features_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/features_configuration_panel.tsx index df8b78b5ef64b..0f2c9f560bdce 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/features_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/features_configuration_panel.tsx @@ -14,10 +14,10 @@ import { enableInfrastructureProfilingIntegration, enableInfrastructureAssetCustomDashboards, } from '@kbn/observability-plugin/common'; -import { useEditableSettings } from '@kbn/observability-shared-plugin/public'; +import type { useEditableSettings } from '@kbn/observability-shared-plugin/public'; import { withSuspense } from '@kbn/shared-ux-utility'; import { FieldRowProvider } from '@kbn/management-settings-components-field-row'; -import { ValueValidation } from '@kbn/core-ui-settings-browser/src/types'; +import type { ValueValidation } from '@kbn/core-ui-settings-browser/src/types'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { usePluginConfig } from '../../../containers/plugin_config_context'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_form_state.ts b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_form_state.ts index 04f7b91118d90..511f0e1097675 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_form_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_form_state.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { ReactNode, useCallback, useMemo, useState } from 'react'; +import type { ReactNode } from 'react'; +import { useCallback, useMemo, useState } from 'react'; import { aggregateValidationErrors, diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_panel.tsx index bbef9e58f35d4..fac34034caf93 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/indices_configuration_panel.tsx @@ -19,13 +19,14 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { rulesLocatorID, RulesParams } from '@kbn/observability-plugin/public'; +import type { RulesParams } from '@kbn/observability-plugin/public'; +import { rulesLocatorID } from '@kbn/observability-plugin/public'; import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, METRIC_THRESHOLD_ALERT_TYPE_ID, } from '@kbn/rule-data-utils'; import { METRICS_INDEX_PATTERN } from '../../../../common/constants'; -import { InputFieldProps } from './input_fields'; +import type { InputFieldProps } from './input_fields'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; interface IndicesConfigurationPanelProps { diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/input_fields.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/input_fields.tsx index 72e71143e2c84..e0e2b033e97cb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/input_fields.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/input_fields.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactText } from 'react'; +import type { ReactText } from 'react'; +import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/ml_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/ml_configuration_panel.tsx index 18da5470acc41..2a8fd21fd7e8d 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/ml_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/ml_configuration_panel.tsx @@ -15,7 +15,7 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { InputRangeFieldProps } from './input_fields'; +import type { InputRangeFieldProps } from './input_fields'; interface MLConfigurationPanelProps { isLoading: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/name_configuration_panel.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/name_configuration_panel.tsx index b662e9298c0f2..de6efa5bf42cb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/name_configuration_panel.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/name_configuration_panel.tsx @@ -15,7 +15,7 @@ import { } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; -import { InputFieldProps } from './input_fields'; +import type { InputFieldProps } from './input_fields'; interface NameConfigurationPanelProps { isLoading: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_form_state.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_form_state.tsx index d52e2c70d31f3..c945627bed96a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_form_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_form_state.tsx @@ -6,7 +6,7 @@ */ import { useCallback, useMemo } from 'react'; -import { MetricsSourceConfigurationProperties } from '../../../../common/metrics_sources'; +import type { MetricsSourceConfigurationProperties } from '../../../../common/metrics_sources'; import { useIndicesConfigurationFormState } from './indices_configuration_form_state'; export const useSourceConfigurationFormState = ( diff --git a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_settings.tsx b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_settings.tsx index 328ef4680680e..a4316b7440727 100644 --- a/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_settings.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/pages/metrics/settings/source_configuration_settings.tsx @@ -18,7 +18,7 @@ import { enableInfrastructureAssetCustomDashboards, } from '@kbn/observability-plugin/common'; import { loadRuleAggregations } from '@kbn/triggers-actions-ui-plugin/public'; -import { HttpSetup } from '@kbn/core-http-browser'; +import type { HttpSetup } from '@kbn/core-http-browser'; import { AlertConsumers, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, diff --git a/x-pack/solutions/observability/plugins/infra/public/plugin.ts b/x-pack/solutions/observability/plugins/infra/public/plugin.ts index a9e5f2326fe73..31770f7f25873 100644 --- a/x-pack/solutions/observability/plugins/infra/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/infra/public/plugin.ts @@ -5,21 +5,18 @@ * 2.0. */ +import type { PluginInitializerContext, AppDeepLinkLocations } from '@kbn/core/public'; import { type AppMountParameters, type AppUpdater, type CoreStart, type AppDeepLink, DEFAULT_APP_CATEGORIES, - PluginInitializerContext, - AppDeepLinkLocations, AppStatus, } from '@kbn/core/public'; import { i18n } from '@kbn/i18n'; -import { - METRICS_EXPLORER_LOCATOR_ID, - MetricsExplorerLocatorParams, -} from '@kbn/observability-shared-plugin/common'; +import type { MetricsExplorerLocatorParams } from '@kbn/observability-shared-plugin/common'; +import { METRICS_EXPLORER_LOCATOR_ID } from '@kbn/observability-shared-plugin/common'; import { BehaviorSubject, combineLatest, @@ -36,7 +33,7 @@ import { type AssetDetailsLocatorParams, type InventoryLocatorParams, } from '@kbn/observability-shared-plugin/common'; -import { NavigationEntry } from '@kbn/observability-shared-plugin/public'; +import type { NavigationEntry } from '@kbn/observability-shared-plugin/public'; import { OBSERVABILITY_LOGS_EXPLORER_APP_ID } from '@kbn/deeplinks-observability/constants'; import type { InfraPublicConfig } from '../common/plugin_config_types'; import { createInventoryMetricRuleType } from './alerting/inventory'; @@ -64,7 +61,8 @@ import { metricsExplorerTitle, metricsTitle, } from './translations'; -import { LogsAppRoutes, LogsRoute, getLogsAppRoutes } from './pages/logs/routes'; +import type { LogsAppRoutes, LogsRoute } from './pages/logs/routes'; +import { getLogsAppRoutes } from './pages/logs/routes'; export class Plugin implements InfraClientPluginClass { public config: InfraPublicConfig; diff --git a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.mock.ts b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.mock.ts index 9f483c9834b02..7498182e40888 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.mock.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IInventoryViewsClient } from './types'; +import type { IInventoryViewsClient } from './types'; export const createInventoryViewsClientMock = (): jest.Mocked => ({ findInventoryViews: jest.fn(), diff --git a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.ts b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.ts index 89a54e2705847..72d1b33fb8385 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_client.ts @@ -5,26 +5,28 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { +import type { CreateInventoryViewAttributesRequestPayload, - createInventoryViewRequestPayloadRT, CreateInventoryViewResponsePayload, FindInventoryViewResponsePayload, - findInventoryViewResponsePayloadRT, GetInventoryViewResposePayload, - getInventoryViewUrl, - inventoryViewResponsePayloadRT, UpdateInventoryViewAttributesRequestPayload, UpdateInventoryViewResponsePayload, } from '../../../common/http_api/latest'; +import { + createInventoryViewRequestPayloadRT, + findInventoryViewResponsePayloadRT, + getInventoryViewUrl, + inventoryViewResponsePayloadRT, +} from '../../../common/http_api/latest'; import { DeleteInventoryViewError, FetchInventoryViewError, UpsertInventoryViewError, } from '../../../common/inventory_views'; -import { IInventoryViewsClient } from './types'; +import type { IInventoryViewsClient } from './types'; export class InventoryViewsClient implements IInventoryViewsClient { constructor(private readonly http: HttpStart) {} diff --git a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_service.mock.ts b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_service.mock.ts index 0ad75a866ca85..c8befa3c533f1 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_service.mock.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/inventory_views/inventory_views_service.mock.ts @@ -6,7 +6,7 @@ */ import { createInventoryViewsClientMock } from './inventory_views_client.mock'; -import { InventoryViewsServiceStart } from './types'; +import type { InventoryViewsServiceStart } from './types'; export const createInventoryViewsServiceStartMock = () => ({ getClient: () => Promise.resolve(createInventoryViewsClientMock()), diff --git a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.mock.ts b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.mock.ts index a612a22fe5758..be96d86e995fe 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.mock.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IMetricsExplorerViewsClient } from './types'; +import type { IMetricsExplorerViewsClient } from './types'; export const createMetricsExplorerViewsClientMock = (): jest.Mocked => ({ diff --git a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.ts b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.ts index 6e77b8184669c..e7456f1a5a2d9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_client.ts @@ -5,26 +5,28 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; +import type { HttpStart } from '@kbn/core/public'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { +import type { CreateMetricsExplorerViewResponsePayload, - createMetricsExplorerViewRequestPayloadRT, FindMetricsExplorerViewResponsePayload, - findMetricsExplorerViewResponsePayloadRT, GetMetricsExplorerViewResponsePayload, - getMetricsExplorerViewUrl, - metricsExplorerViewResponsePayloadRT, UpdateMetricsExplorerViewResponsePayload, CreateMetricsExplorerViewAttributesRequestPayload, UpdateMetricsExplorerViewAttributesRequestPayload, } from '../../../common/http_api/latest'; +import { + createMetricsExplorerViewRequestPayloadRT, + findMetricsExplorerViewResponsePayloadRT, + getMetricsExplorerViewUrl, + metricsExplorerViewResponsePayloadRT, +} from '../../../common/http_api/latest'; import { DeleteMetricsExplorerViewError, FetchMetricsExplorerViewError, UpsertMetricsExplorerViewError, } from '../../../common/metrics_explorer_views'; -import { IMetricsExplorerViewsClient } from './types'; +import type { IMetricsExplorerViewsClient } from './types'; export class MetricsExplorerViewsClient implements IMetricsExplorerViewsClient { constructor(private readonly http: HttpStart) {} diff --git a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_service.mock.ts b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_service.mock.ts index a012588c344c8..f2c80a474e4c9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_service.mock.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/metrics_explorer_views/metrics_explorer_views_service.mock.ts @@ -6,7 +6,7 @@ */ import { createMetricsExplorerViewsClientMock } from './metrics_explorer_views_client.mock'; -import { MetricsExplorerViewsServiceStart } from './types'; +import type { MetricsExplorerViewsServiceStart } from './types'; export const createMetricsExplorerViewsServiceStartMock = () => ({ getClient: () => Promise.resolve(createMetricsExplorerViewsClientMock()), diff --git a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.mock.ts b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.mock.ts index 2f68c4f5501c6..0f2df45d91e06 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.mock.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ITelemetryClient } from './types'; +import type { ITelemetryClient } from './types'; export const createTelemetryClientMock = (): jest.Mocked => ({ reportHostEntryClicked: jest.fn(), diff --git a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.ts b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.ts index 0adf6a04dea7f..af840d38844bf 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_client.ts @@ -7,7 +7,7 @@ import type { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; import { reportPerformanceMetricEvent } from '@kbn/ebt-tools'; -import { +import type { AddMetricsCalloutEventParams, AnomalyDetectionDateFieldChangeParams, AnomalyDetectionFilterFieldChangeParams, @@ -20,10 +20,10 @@ import { HostFlyoutFilterActionParams, HostsViewQueryHostsCountRetrievedParams, HostsViewQuerySubmittedParams, - InfraTelemetryEventTypes, ITelemetryClient, PerformanceMetricInnerEvents, } from './types'; +import { InfraTelemetryEventTypes } from './types'; /** * Client which aggregate all the available telemetry tracking functions diff --git a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_events.ts b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_events.ts index 7f025c1051755..3be34cc79ee0b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_events.ts +++ b/x-pack/solutions/observability/plugins/infra/public/services/telemetry/telemetry_events.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { InfraTelemetryEventTypes, InfraTelemetryEvent } from './types'; +import type { InfraTelemetryEvent } from './types'; +import { InfraTelemetryEventTypes } from './types'; const hostsViewQuerySubmittedEvent: InfraTelemetryEvent = { eventType: InfraTelemetryEventTypes.HOSTS_VIEW_QUERY_SUBMITTED, diff --git a/x-pack/solutions/observability/plugins/infra/public/test_utils/entries.ts b/x-pack/solutions/observability/plugins/infra/public/test_utils/entries.ts index 7042a6538dceb..bbd6a15cdc221 100644 --- a/x-pack/solutions/observability/plugins/infra/public/test_utils/entries.ts +++ b/x-pack/solutions/observability/plugins/infra/public/test_utils/entries.ts @@ -6,7 +6,7 @@ */ import { faker } from '@faker-js/faker'; -import { LogEntry, LogViewColumnConfiguration } from '@kbn/logs-shared-plugin/common'; +import type { LogEntry, LogViewColumnConfiguration } from '@kbn/logs-shared-plugin/common'; export function generateFakeEntries( count: number, diff --git a/x-pack/solutions/observability/plugins/infra/public/test_utils/index.ts b/x-pack/solutions/observability/plugins/infra/public/test_utils/index.ts index 2c88bfecf0c5d..ed1c6b21904bd 100644 --- a/x-pack/solutions/observability/plugins/infra/public/test_utils/index.ts +++ b/x-pack/solutions/observability/plugins/infra/public/test_utils/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TopNodesResponse } from '../../common/http_api/overview_api'; +import type { TopNodesResponse } from '../../common/http_api/overview_api'; export const FAKE_SNAPSHOT_RESPONSE = { nodes: [ diff --git a/x-pack/solutions/observability/plugins/infra/public/test_utils/use_global_storybook_theme.tsx b/x-pack/solutions/observability/plugins/infra/public/test_utils/use_global_storybook_theme.tsx index 482602c87fd06..32d7b9df51223 100644 --- a/x-pack/solutions/observability/plugins/infra/public/test_utils/use_global_storybook_theme.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/test_utils/use_global_storybook_theme.tsx @@ -6,7 +6,8 @@ */ import type { DecoratorFn } from '@storybook/react'; -import React, { useEffect, useMemo, useState, FC, PropsWithChildren } from 'react'; +import type { FC, PropsWithChildren } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { BehaviorSubject } from 'rxjs'; import type { CoreTheme } from '@kbn/core/public'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/public/types.ts b/x-pack/solutions/observability/plugins/infra/public/types.ts index f5e1eb4354921..50c223668f405 100644 --- a/x-pack/solutions/observability/plugins/infra/public/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/types.ts @@ -22,7 +22,7 @@ import type { TriggersAndActionsUIPublicPluginSetup, TriggersAndActionsUIPublicPluginStart, } from '@kbn/triggers-actions-ui-plugin/public'; -import { MlPluginSetup, MlPluginStart } from '@kbn/ml-plugin/public'; +import type { MlPluginSetup, MlPluginStart } from '@kbn/ml-plugin/public'; import type { ObservabilityPublicSetup, ObservabilityPublicStart, @@ -33,27 +33,27 @@ import type { } from '@kbn/observability-shared-plugin/public'; import type { SpacesPluginStart } from '@kbn/spaces-plugin/public'; import type { IStorageWrapper } from '@kbn/kibana-utils-plugin/public'; -import { LensPublicStart } from '@kbn/lens-plugin/public'; +import type { LensPublicStart } from '@kbn/lens-plugin/public'; import type { ChartsPluginStart } from '@kbn/charts-plugin/public'; -import { CasesPublicStart } from '@kbn/cases-plugin/public'; -import { DiscoverStart } from '@kbn/discover-plugin/public'; -import { UiActionsSetup, UiActionsStart } from '@kbn/ui-actions-plugin/public'; -import { +import type { CasesPublicStart } from '@kbn/cases-plugin/public'; +import type { DiscoverStart } from '@kbn/discover-plugin/public'; +import type { UiActionsSetup, UiActionsStart } from '@kbn/ui-actions-plugin/public'; +import type { LogsSharedClientSetupExports, LogsSharedClientStartExports, } from '@kbn/logs-shared-plugin/public'; -import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public'; -import { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/public'; -import { ObservabilityAIAssistantPublicStart } from '@kbn/observability-ai-assistant-plugin/public'; +import type { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public'; +import type { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/public'; +import type { ObservabilityAIAssistantPublicStart } from '@kbn/observability-ai-assistant-plugin/public'; import type { CloudSetup } from '@kbn/cloud-plugin/public'; import type { LicenseManagementUIPluginSetup } from '@kbn/license-management-plugin/public'; import type { ServerlessPluginStart } from '@kbn/serverless/public'; import type { DashboardStart } from '@kbn/dashboard-plugin/public'; -import { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; +import type { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/public'; import type { UnwrapPromise } from '../common/utility_types'; -import { InventoryViewsServiceStart } from './services/inventory_views'; -import { MetricsExplorerViewsServiceStart } from './services/metrics_explorer_views'; -import { TelemetryServiceStart } from './services/telemetry'; +import type { InventoryViewsServiceStart } from './services/inventory_views'; +import type { MetricsExplorerViewsServiceStart } from './services/metrics_explorer_views'; +import type { TelemetryServiceStart } from './services/telemetry'; // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface InfraClientSetupExports {} diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/flatten_data_search_response.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/flatten_data_search_response.ts index 5d59183b8634e..082808e1c0b33 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/flatten_data_search_response.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/flatten_data_search_response.ts @@ -7,7 +7,7 @@ import { map } from 'rxjs'; import type { IKibanaSearchRequest } from '@kbn/search-types'; -import { ParsedDataSearchRequestDescriptor } from './types'; +import type { ParsedDataSearchRequestDescriptor } from './types'; export const flattenDataSearchResponseDescriptor = < Request extends IKibanaSearchRequest, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/normalize_data_search_responses.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/normalize_data_search_responses.ts index c7c894f211e06..e5907cc7bcef9 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/normalize_data_search_responses.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/normalize_data_search_responses.ts @@ -5,12 +5,13 @@ * 2.0. */ -import { Observable, of } from 'rxjs'; +import type { Observable } from 'rxjs'; +import { of } from 'rxjs'; import { catchError, map, startWith } from 'rxjs'; import type { IKibanaSearchResponse } from '@kbn/search-types'; import { AbortError } from '@kbn/kibana-utils-plugin/public'; -import { SearchStrategyError } from '../../../common/search_strategies/common/errors'; -import { ParsedKibanaSearchResponse } from './types'; +import type { SearchStrategyError } from '../../../common/search_strategies/common/errors'; +import type { ParsedKibanaSearchResponse } from './types'; export type RawResponseParser = (rawResponse: RawResponse) => { data: Response; diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/types.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/types.ts index e2cfa8cca94f3..81efb2a333287 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/types.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/types.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { Observable } from 'rxjs'; +import type { Observable } from 'rxjs'; import type { IKibanaSearchResponse, IKibanaSearchRequest, ISearchOptions, } from '@kbn/search-types'; -import { SearchStrategyError } from '../../../common/search_strategies/common/errors'; +import type { SearchStrategyError } from '../../../common/search_strategies/common/errors'; export interface DataSearchRequestDescriptor { request: Request; diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.test.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.test.tsx index 08907b1627086..9b6e668cff285 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.test.tsx @@ -9,10 +9,10 @@ import { renderHook, act } from '@testing-library/react'; import React from 'react'; import { firstValueFrom, Observable, of, Subject } from 'rxjs'; import type { ISearchGeneric, IKibanaSearchResponse } from '@kbn/search-types'; -import { DataPublicPluginStart, ISearchStart } from '@kbn/data-plugin/public'; +import type { DataPublicPluginStart, ISearchStart } from '@kbn/data-plugin/public'; import { dataPluginMock } from '@kbn/data-plugin/public/mocks'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; -import { PluginKibanaContextValue } from '../../hooks/use_kibana'; +import type { PluginKibanaContextValue } from '../../hooks/use_kibana'; import { normalizeDataSearchResponses } from './normalize_data_search_responses'; import { useDataSearch } from './use_data_search_request'; diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.ts index 4675a932c86c0..e7627dbeddd8b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_request.ts @@ -6,7 +6,8 @@ */ import { useCallback } from 'react'; -import { OperatorFunction, ReplaySubject } from 'rxjs'; +import type { OperatorFunction } from 'rxjs'; +import { ReplaySubject } from 'rxjs'; import { share, tap } from 'rxjs'; import type { IKibanaSearchResponse, @@ -15,7 +16,7 @@ import type { } from '@kbn/search-types'; import { useKibanaContextForPlugin } from '../../hooks/use_kibana'; import { tapUnsubscribe, useObservable } from '../../hooks/use_observable'; -import { ParsedDataSearchRequestDescriptor, ParsedKibanaSearchResponse } from './types'; +import type { ParsedDataSearchRequestDescriptor, ParsedKibanaSearchResponse } from './types'; export type DataSearchRequestFactory = ( ...args: Args diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_response_state.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_response_state.ts index e26121e492072..b413a9e4ca57c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_response_state.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_data_search_response_state.ts @@ -6,10 +6,10 @@ */ import { useCallback } from 'react'; -import { Observable } from 'rxjs'; +import type { Observable } from 'rxjs'; import type { IKibanaSearchRequest } from '@kbn/search-types'; import { useObservableState } from '../../hooks/use_observable'; -import { ParsedDataSearchResponseDescriptor } from './types'; +import type { ParsedDataSearchResponseDescriptor } from './types'; export const useDataSearchResponseState = < Request extends IKibanaSearchRequest, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.test.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.test.tsx index 24433f23bc677..0c6a1d03ecc41 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.test.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.test.tsx @@ -7,8 +7,8 @@ import { renderHook, act } from '@testing-library/react'; import { BehaviorSubject, Observable, of, Subject } from 'rxjs'; -import { IKibanaSearchRequest } from '@kbn/search-types'; -import { ParsedDataSearchRequestDescriptor, ParsedKibanaSearchResponse } from './types'; +import type { IKibanaSearchRequest } from '@kbn/search-types'; +import type { ParsedDataSearchRequestDescriptor, ParsedKibanaSearchResponse } from './types'; import { useLatestPartialDataSearchResponse } from './use_latest_partial_data_search_response'; describe('useLatestPartialDataSearchResponse hook', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.ts index c01d2db829b54..b9da9f5edd6e6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_search/use_latest_partial_data_search_response.ts @@ -5,12 +5,15 @@ * 2.0. */ -import { Observable } from 'rxjs'; +import type { Observable } from 'rxjs'; import { switchMap } from 'rxjs'; -import { IKibanaSearchRequest } from '@kbn/search-types'; +import type { IKibanaSearchRequest } from '@kbn/search-types'; import { useOperator } from '../../hooks/use_observable'; import { flattenDataSearchResponseDescriptor } from './flatten_data_search_response'; -import { ParsedDataSearchRequestDescriptor, ParsedDataSearchResponseDescriptor } from './types'; +import type { + ParsedDataSearchRequestDescriptor, + ParsedDataSearchResponseDescriptor, +} from './types'; import { useDataSearchResponseState } from './use_data_search_response_state'; export const useLatestPartialDataSearchResponse = ( diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/data_view.ts b/x-pack/solutions/observability/plugins/infra/public/utils/data_view.ts index 73d3e8c930ecb..d99633d0ef7e6 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/data_view.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/data_view.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { DataView, DataViewsContract, type FieldSpec } from '@kbn/data-views-plugin/common'; +import type { DataView, DataViewsContract } from '@kbn/data-views-plugin/common'; +import { type FieldSpec } from '@kbn/data-views-plugin/common'; import { TIMESTAMP_FIELD } from '../../common/constants'; export interface ResolvedDataView { diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/datemath.ts b/x-pack/solutions/observability/plugins/infra/public/utils/datemath.ts index 7845fea4afaaa..92cbc68149b4a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/datemath.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/datemath.ts @@ -5,8 +5,9 @@ * 2.0. */ -import dateMath, { Unit } from '@kbn/datemath'; -import { TimeRange } from '@kbn/es-query'; +import type { Unit } from '@kbn/datemath'; +import dateMath from '@kbn/datemath'; +import type { TimeRange } from '@kbn/es-query'; import { chain } from 'fp-ts/lib/Either'; import { pipe } from 'fp-ts/lib/pipeable'; import * as rt from 'io-ts'; diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/filters/create_alerts_es_query.ts b/x-pack/solutions/observability/plugins/infra/public/utils/filters/create_alerts_es_query.ts index 5184151619e67..a13b01bf65b35 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/filters/create_alerts_es_query.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/filters/create_alerts_es_query.ts @@ -6,7 +6,8 @@ */ import { getTime } from '@kbn/data-plugin/common'; import { ALERT_TIME_RANGE } from '@kbn/rule-data-utils'; -import { BoolQuery, buildEsQuery, Filter, type TimeRange } from '@kbn/es-query'; +import type { BoolQuery, Filter } from '@kbn/es-query'; +import { buildEsQuery, type TimeRange } from '@kbn/es-query'; import type { AlertStatus } from '@kbn/observability-plugin/common/typings'; import { findInventoryFields, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/fixtures/metrics_explorer.ts b/x-pack/solutions/observability/plugins/infra/public/utils/fixtures/metrics_explorer.ts index 92fed7ce8fd20..06894970eb382 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/fixtures/metrics_explorer.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/fixtures/metrics_explorer.ts @@ -5,18 +5,20 @@ * 2.0. */ -import { +import type { MetricsExplorerResponse, MetricsExplorerSeries, } from '../../../common/http_api/metrics_explorer'; -import { +import type { MetricsExplorerOptions, MetricsExplorerTimeOptions, - MetricsExplorerChartType, - MetricsExplorerYAxisMode, MetricsExplorerChartOptions, MetricsExplorerTimestamp, } from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import { + MetricsExplorerChartType, + MetricsExplorerYAxisMode, +} from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; export const options: MetricsExplorerOptions = { limit: 3, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/kuery.ts b/x-pack/solutions/observability/plugins/infra/public/utils/kuery.ts index b74549359a9c7..cf91372dfbfdb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/kuery.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/kuery.ts @@ -6,7 +6,7 @@ */ import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; -import { DataViewBase } from '@kbn/es-query'; +import type { DataViewBase } from '@kbn/es-query'; export const convertKueryToElasticSearchQuery = ( kueryExpression: string, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/log_column_render_configuration.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/log_column_render_configuration.tsx index ff4a24f1498a6..7fd06a660e41c 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/log_column_render_configuration.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/log_column_render_configuration.tsx @@ -5,8 +5,8 @@ * 2.0. */ -import { ReactNode } from 'react'; -import { JsonValue } from '@kbn/utility-types'; +import type { ReactNode } from 'react'; +import type { JsonValue } from '@kbn/utility-types'; /** * Interface for common configuration properties, regardless of the column type. diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetchers.ts b/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetchers.ts index 90a533e5285ba..e30fd7d48a98e 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetchers.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetchers.ts @@ -6,14 +6,14 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { +import type { FetchData, FetchDataParams, LogsFetchDataResponse, } from '@kbn/observability-plugin/public'; import { DEFAULT_LOG_VIEW, getLogsLocatorsFromUrlService } from '@kbn/logs-shared-plugin/common'; import { TIMESTAMP_FIELD } from '../../common/constants'; -import { InfraClientStartDeps, InfraClientStartServicesAccessor } from '../types'; +import type { InfraClientStartDeps, InfraClientStartServicesAccessor } from '../types'; interface StatsAggregation { buckets: Array<{ diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetches.test.ts b/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetches.test.ts index 08f8863cb2a2c..8b421192129d2 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetches.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/logs_overview_fetches.test.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { coreMock } from '@kbn/core/public/mocks'; import { dataPluginMock } from '@kbn/data-plugin/public/mocks'; import { createResolvedLogViewMock } from '@kbn/logs-shared-plugin/common/mocks'; import { createLogsSharedPluginStartMock } from '@kbn/logs-shared-plugin/public/mocks'; import { of } from 'rxjs'; import { createInfraPluginStartMock } from '../mocks'; -import { InfraClientStartDeps, InfraClientStartExports } from '../types'; +import type { InfraClientStartDeps, InfraClientStartExports } from '../types'; import { getLogsHasDataFetcher, getLogsOverviewDataFetcher } from './logs_overview_fetchers'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/map_timepicker_quickranges_to_datepicker_ranges.ts b/x-pack/solutions/observability/plugins/infra/public/utils/map_timepicker_quickranges_to_datepicker_ranges.ts index 7c16bcf4a5a85..cc2228774f761 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/map_timepicker_quickranges_to_datepicker_ranges.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/map_timepicker_quickranges_to_datepicker_ranges.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { EuiSuperDatePickerCommonRange } from '@elastic/eui'; -import { TimePickerQuickRange } from '../hooks/use_kibana_ui_setting'; +import type { EuiSuperDatePickerCommonRange } from '@elastic/eui'; +import type { TimePickerQuickRange } from '../hooks/use_kibana_ui_setting'; export const mapKibanaQuickRangesToDatePickerRanges = ( timepickerQuickRanges: TimePickerQuickRange[] | undefined diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/redirect_with_query_params.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/redirect_with_query_params.tsx index 2fa6873aa61f4..a834505b1e120 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/redirect_with_query_params.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/redirect_with_query_params.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { Redirect, RouteProps, RedirectProps } from 'react-router-dom'; +import type { RouteProps, RedirectProps } from 'react-router-dom'; +import { Redirect } from 'react-router-dom'; import { Route } from '@kbn/shared-ux-router'; interface RedirectWithQueryParamsProps extends Omit { diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/source_configuration.ts b/x-pack/solutions/observability/plugins/infra/public/utils/source_configuration.ts index ac8a331e86952..a46ed6dd23d9b 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/source_configuration.ts +++ b/x-pack/solutions/observability/plugins/infra/public/utils/source_configuration.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { InfraSourceConfigurationColumn, InfraSourceConfigurationFieldColumn, InfraSourceConfigurationMessageColumn, diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/theme_utils/with_attrs.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/theme_utils/with_attrs.tsx index cccc4de593482..b56f4e52dc91a 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/theme_utils/with_attrs.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/theme_utils/with_attrs.tsx @@ -7,7 +7,7 @@ import { type Theme, useTheme } from '@emotion/react'; import React from 'react'; -import { ComponentType } from 'react'; +import type { ComponentType } from 'react'; export const withAttrs = (Component: ComponentType, fn: (args: { theme: Theme; props: any }) => any) => diff --git a/x-pack/solutions/observability/plugins/infra/public/utils/url_state.tsx b/x-pack/solutions/observability/plugins/infra/public/utils/url_state.tsx index a07b8afbc68f8..45ce666db0740 100644 --- a/x-pack/solutions/observability/plugins/infra/public/utils/url_state.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/utils/url_state.tsx @@ -6,10 +6,11 @@ */ import { parse } from 'query-string'; -import { History, Location } from 'history'; +import type { History, Location } from 'history'; import React from 'react'; import { Route } from '@kbn/shared-ux-router'; -import { decode, RisonValue } from '@kbn/rison'; +import type { RisonValue } from '@kbn/rison'; +import { decode } from '@kbn/rison'; import { throttle } from 'lodash'; import { replaceStateKeyInQueryString } from '../../common/url_state_storage_service'; diff --git a/x-pack/solutions/observability/plugins/infra/server/config.ts b/x-pack/solutions/observability/plugins/infra/server/config.ts index 3e3d51f42a5d1..ac4123246e465 100644 --- a/x-pack/solutions/observability/plugins/infra/server/config.ts +++ b/x-pack/solutions/observability/plugins/infra/server/config.ts @@ -7,9 +7,9 @@ import { i18n } from '@kbn/i18n'; import { offeringBasedSchema, schema } from '@kbn/config-schema'; -import { PluginConfigDescriptor } from '@kbn/core-plugins-server'; -import { ConfigDeprecation } from '@kbn/config'; -import { InfraConfig } from './types'; +import type { PluginConfigDescriptor } from '@kbn/core-plugins-server'; +import type { ConfigDeprecation } from '@kbn/config'; +import type { InfraConfig } from './types'; import { publicConfigKeys } from '../common/plugin_config_types'; export type { InfraConfig }; diff --git a/x-pack/solutions/observability/plugins/infra/server/index.ts b/x-pack/solutions/observability/plugins/infra/server/index.ts index c381514900a72..4ee5c85aae8d5 100644 --- a/x-pack/solutions/observability/plugins/infra/server/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PluginInitializerContext } from '@kbn/core/server'; +import type { PluginInitializerContext } from '@kbn/core/server'; export { config, type InfraConfig } from './config'; export type { InfraPluginSetup, InfraPluginStart, InfraRequestHandlerContext } from './types'; diff --git a/x-pack/solutions/observability/plugins/infra/server/infra_server.ts b/x-pack/solutions/observability/plugins/infra/server/infra_server.ts index 627c1346bee79..319e18bc11c29 100644 --- a/x-pack/solutions/observability/plugins/infra/server/infra_server.ts +++ b/x-pack/solutions/observability/plugins/infra/server/infra_server.ts @@ -33,7 +33,7 @@ import { initMetricsExplorerViewRoutes } from './routes/metrics_explorer_views'; import { initProfilingRoutes } from './routes/profiling'; import { initServicesRoute } from './routes/services'; import { initCustomDashboardsRoutes } from './routes/custom_dashboards/custom_dashboards'; -import { InfraBackendLibs } from './lib/infra_types'; +import type { InfraBackendLibs } from './lib/infra_types'; import { initEntitiesConfigurationRoutes } from './routes/entities'; export const registerRoutes = (libs: InfraBackendLibs) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/adapter_types.ts b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/adapter_types.ts index 3ee4f9632b359..1d102a36209db 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/adapter_types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/adapter_types.ts @@ -6,40 +6,40 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { Lifecycle } from '@hapi/hapi'; -import { SharePluginSetup } from '@kbn/share-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { JsonArray, JsonValue } from '@kbn/utility-types'; -import { RouteConfig, RouteMethod } from '@kbn/core/server'; -import { +import type { Lifecycle } from '@hapi/hapi'; +import type { SharePluginSetup } from '@kbn/share-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { JsonArray, JsonValue } from '@kbn/utility-types'; +import type { RouteConfig, RouteMethod } from '@kbn/core/server'; +import type { PluginSetup as DataPluginSetup, PluginStart as DataPluginStart, } from '@kbn/data-plugin/server'; -import { PluginStart as DataViewsPluginStart } from '@kbn/data-views-plugin/server'; -import { HomeServerPluginSetup } from '@kbn/home-plugin/server'; -import { VisTypeTimeseriesSetup } from '@kbn/vis-type-timeseries-plugin/server'; -import { FeaturesPluginSetup } from '@kbn/features-plugin/server'; -import { SpacesPluginSetup } from '@kbn/spaces-plugin/server'; +import type { PluginStart as DataViewsPluginStart } from '@kbn/data-views-plugin/server'; +import type { HomeServerPluginSetup } from '@kbn/home-plugin/server'; +import type { VisTypeTimeseriesSetup } from '@kbn/vis-type-timeseries-plugin/server'; +import type { FeaturesPluginSetup } from '@kbn/features-plugin/server'; +import type { SpacesPluginSetup } from '@kbn/spaces-plugin/server'; import type { AlertingServerSetup } from '@kbn/alerting-plugin/server'; -import { MlPluginSetup } from '@kbn/ml-plugin/server'; -import { +import type { MlPluginSetup } from '@kbn/ml-plugin/server'; +import type { RuleRegistryPluginSetupContract, RuleRegistryPluginStartContract, } from '@kbn/rule-registry-plugin/server'; -import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { LogsSharedPluginSetup, LogsSharedPluginStart } from '@kbn/logs-shared-plugin/server'; -import { VersionedRouteConfig } from '@kbn/core-http-server'; -import { MetricsDataPluginSetup } from '@kbn/metrics-data-access-plugin/server'; -import { +import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; +import type { LogsSharedPluginSetup, LogsSharedPluginStart } from '@kbn/logs-shared-plugin/server'; +import type { VersionedRouteConfig } from '@kbn/core-http-server'; +import type { MetricsDataPluginSetup } from '@kbn/metrics-data-access-plugin/server'; +import type { ProfilingDataAccessPluginSetup, ProfilingDataAccessPluginStart, } from '@kbn/profiling-data-access-plugin/server'; -import { +import type { ApmDataAccessPluginSetup, ApmDataAccessPluginStart, } from '@kbn/apm-data-access-plugin/server'; -import { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/server'; -import { ServerlessPluginStart } from '@kbn/serverless/server'; +import type { LogsDataAccessPluginStart } from '@kbn/logs-data-access-plugin/server'; +import type { ServerlessPluginStart } from '@kbn/serverless/server'; import type { EntityManagerServerPluginStart, EntityManagerServerPluginSetup, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts index ad6a6bbcbcc27..e8256e7a775a5 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -6,15 +6,25 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { TransportRequestParams } from '@elastic/elasticsearch'; -import { ElasticsearchClient, RouteConfig, SavedObjectsClientContract } from '@kbn/core/server'; -import { CoreSetup, IRouter, KibanaRequest, RequestHandler, RouteMethod } from '@kbn/core/server'; +import type { TransportRequestParams } from '@elastic/elasticsearch'; +import type { + ElasticsearchClient, + RouteConfig, + SavedObjectsClientContract, +} from '@kbn/core/server'; +import type { + CoreSetup, + IRouter, + KibanaRequest, + RequestHandler, + RouteMethod, +} from '@kbn/core/server'; import { UI_SETTINGS } from '@kbn/data-plugin/server'; -import { TimeseriesVisData } from '@kbn/vis-type-timeseries-plugin/server'; +import type { TimeseriesVisData } from '@kbn/vis-type-timeseries-plugin/server'; import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common'; -import { TSVBMetricModel } from '@kbn/metrics-data-access-plugin/common'; +import type { TSVBMetricModel } from '@kbn/metrics-data-access-plugin/common'; import type { InfraConfig, InfraPluginRequestHandlerContext } from '../../../types'; -import { +import type { CallWithRequestParams, InfraDatabaseGetIndicesAliasResponse, InfraDatabaseGetIndicesResponse, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/adapter_types.ts b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/adapter_types.ts index 28d24bd40153d..534748875bc4a 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/adapter_types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/adapter_types.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core/server'; -import { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; +import type { KibanaRequest } from '@kbn/core/server'; +import type { InventoryMetric } from '@kbn/metrics-data-access-plugin/common'; import type { InfraPluginRequestHandlerContext } from '../../../types'; -import { +import type { NodeDetailsRequest, NodeDetailsMetricData, } from '../../../../common/http_api/node_details_api'; -import { InfraSourceConfiguration } from '../../sources'; +import type { InfraSourceConfiguration } from '../../sources'; export interface InfraMetricsRequestOptions extends Omit { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts index e0f542b63e918..2f0a96bb53dd0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts @@ -6,22 +6,22 @@ */ import { i18n } from '@kbn/i18n'; -import { KibanaRequest } from '@kbn/core/server'; +import type { KibanaRequest } from '@kbn/core/server'; import { flatten, get } from 'lodash'; import { isVisSeriesData } from '@kbn/vis-type-timeseries-plugin/server'; import { metrics, findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { TSVBMetricModelCreator, InventoryMetric, - InventoryMetricRT, } from '@kbn/metrics-data-access-plugin/common'; +import { InventoryMetricRT } from '@kbn/metrics-data-access-plugin/common'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { NodeDetailsMetricData } from '../../../../common/http_api/node_details_api'; -import { KibanaFramework } from '../framework/kibana_framework_adapter'; -import { InfraMetricsAdapter, InfraMetricsRequestOptions } from './adapter_types'; +import type { NodeDetailsMetricData } from '../../../../common/http_api/node_details_api'; +import type { KibanaFramework } from '../framework/kibana_framework_adapter'; +import type { InfraMetricsAdapter, InfraMetricsRequestOptions } from './adapter_types'; import { checkValidNode } from './lib/check_valid_node'; import { calculateMetricInterval } from '../../../utils/calculate_metric_interval'; -import { CallWithRequestParams, InfraDatabaseSearchResponse } from '../framework'; +import type { CallWithRequestParams, InfraDatabaseSearchResponse } from '../framework'; import type { InfraPluginRequestHandlerContext } from '../../../types'; export class KibanaMetricsAdapter implements InfraMetricsAdapter { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts index a1bff361a8067..6478dbe431a1b 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/adapters/metrics/lib/check_valid_node.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraDatabaseSearchResponse } from '../../framework'; +import type { InfraDatabaseSearchResponse } from '../../framework'; export const checkValidNode = async ( search: (options: object) => Promise>, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/messages.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/messages.ts index 5060e6e0a6587..5e815ed598225 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/messages.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/messages.ts @@ -6,10 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { - formatDurationFromTimeUnitChar, - TimeUnitChar, -} from '@kbn/observability-plugin/common/utils/formatters/duration'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; +import { formatDurationFromTimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { AlertStates } from '../../../../common/alerting/metrics'; import { UNGROUPED_FACTORY_KEY } from './utils'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts index 696bed5054576..f87c5197373d7 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts @@ -7,19 +7,17 @@ import { isEmpty, isError } from 'lodash'; import { schema } from '@kbn/config-schema'; -import { Logger, LogMeta } from '@kbn/logging'; +import type { Logger, LogMeta } from '@kbn/logging'; import type { ElasticsearchClient } from '@kbn/core/server'; -import { ObservabilityConfig } from '@kbn/observability-plugin/server'; +import type { ObservabilityConfig } from '@kbn/observability-plugin/server'; import { ALERT_RULE_PARAMETERS, TIMESTAMP } from '@kbn/rule-data-utils'; -import { - ParsedTechnicalFields, - parseTechnicalFields, -} from '@kbn/rule-registry-plugin/common/parse_technical_fields'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; +import { parseTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; import { ES_FIELD_TYPES } from '@kbn/field-types'; import { set } from '@kbn/safer-lodash-set'; -import { Alert } from '@kbn/alerts-as-data-utils'; +import type { Alert } from '@kbn/alerts-as-data-utils'; import { type Group } from '@kbn/observability-alerting-rule-utils'; -import { ParsedExperimentalFields } from '@kbn/rule-registry-plugin/common/parse_experimental_fields'; +import type { ParsedExperimentalFields } from '@kbn/rule-registry-plugin/common/parse_experimental_fields'; import type { LocatorPublic } from '@kbn/share-plugin/common'; import type { AssetDetailsLocatorParams, @@ -31,7 +29,7 @@ import { getInventoryViewInAppUrl, getMetricsViewInAppUrl, } from '../../../../common/alerting/metrics/alert_link'; -import { +import type { AlertExecutionDetails, InventoryMetricConditions, } from '../../../../common/alerting/metrics/types'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts index 2568c8828dec9..016250160e1a0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts @@ -5,17 +5,17 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { mapValues } from 'lodash'; import type { Logger } from '@kbn/logging'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryMetricConditions } from '../../../../common/alerting/metrics'; -import { InfraTimerangeInput } from '../../../../common/http_api'; -import { LogQueryFields } from '../../metrics/types'; -import { InfraSource } from '../../sources'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import type { InfraTimerangeInput } from '../../../../common/http_api'; +import type { LogQueryFields } from '../../metrics/types'; +import type { InfraSource } from '../../sources'; import { calculateFromBasedOnMetric } from './lib/calculate_from_based_on_metric'; import { getData } from './lib/get_data'; -import { AdditionalContext } from '../common/utils'; +import type { AdditionalContext } from '../common/utils'; export type ConditionResult = InventoryMetricConditions & { shouldFire: boolean; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.test.ts index a29308774440c..9afacc9616546 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.test.ts @@ -6,19 +6,21 @@ */ import rison from '@kbn/rison'; -import { RuleExecutorServicesMock, alertsMock } from '@kbn/alerting-plugin/server/mocks'; +import type { RuleExecutorServicesMock } from '@kbn/alerting-plugin/server/mocks'; +import { alertsMock } from '@kbn/alerting-plugin/server/mocks'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { Aggregators, InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import type { InventoryMetricConditions } from '../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../common/alerting/metrics'; import type { LogMeta, Logger } from '@kbn/logging'; import { DEFAULT_FLAPPING_SETTINGS } from '@kbn/alerting-plugin/common'; import { createInventoryMetricThresholdExecutor } from './inventory_metric_threshold_executor'; -import { ConditionResult } from './evaluate_condition'; -import { InfraBackendLibs, InfraLocators } from '../../infra_types'; +import type { ConditionResult } from './evaluate_condition'; +import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; import { infraPluginMock } from '../../../mocks'; import { logsSharedPluginMock } from '@kbn/logs-shared-plugin/server/mocks'; import { createLogSourcesServiceMock } from '@kbn/logs-data-access-plugin/common/services/log_sources_service/log_sources_service.mocks'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; -import { +import type { AssetDetailsLocator, AssetDetailsLocatorParams, InventoryLocator, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts index 38bbe40e69855..d6afcd02ddfb7 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts @@ -6,36 +6,37 @@ */ import { i18n } from '@kbn/i18n'; -import { Group } from '@kbn/observability-alerting-rule-utils'; +import type { Group } from '@kbn/observability-alerting-rule-utils'; +import type { ALERT_GROUP } from '@kbn/rule-data-utils'; import { ALERT_REASON, ALERT_EVALUATION_VALUES, ALERT_EVALUATION_THRESHOLD, - ALERT_GROUP, } from '@kbn/rule-data-utils'; import { first, get } from 'lodash'; -import { +import type { ActionGroup, ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, } from '@kbn/alerting-plugin/common'; -import { AlertsClientError, RuleExecutorOptions, RuleTypeState } from '@kbn/alerting-plugin/server'; +import type { RuleExecutorOptions, RuleTypeState } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; import { convertToBuiltInComparators, getAlertDetailsUrl } from '@kbn/observability-plugin/common'; import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; -import { ObservabilityMetricsAlert } from '@kbn/alerts-as-data-utils'; +import type { ObservabilityMetricsAlert } from '@kbn/alerts-as-data-utils'; import { getOriginalActionGroup } from '../../../utils/get_original_action_group'; -import { - AlertStates, +import type { InventoryMetricConditions, InventoryMetricThresholdParams, } from '../../../../common/alerting/metrics'; +import { AlertStates } from '../../../../common/alerting/metrics'; import { createFormatter } from '../../../../common/formatters'; import { getCustomMetricLabel } from '../../../../common/formatters/get_custom_metric_label'; import { METRIC_FORMATTERS } from '../../../../common/formatters/snapshot_metric_formats'; import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; -import { InfraBackendLibs, InfraLocators } from '../../infra_types'; -import { LogQueryFields } from '../../metrics/types'; +import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; +import type { LogQueryFields } from '../../metrics/types'; import { buildErrorAlertReason, buildFiredAlertReason, @@ -51,7 +52,8 @@ import { UNGROUPED_FACTORY_KEY, } from '../common/utils'; import { getEvaluationValues, getThresholds } from '../common/get_values'; -import { evaluateCondition, ConditionResult } from './evaluate_condition'; +import type { ConditionResult } from './evaluate_condition'; +import { evaluateCondition } from './evaluate_condition'; type InventoryMetricThresholdAllowedActionGroups = ActionGroupIdsOf< typeof FIRED_ACTIONS | typeof WARNING_ACTIONS diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts index 0053be15ea7eb..37c56951692f6 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts @@ -7,9 +7,9 @@ import moment from 'moment'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; -import { SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; +import type { SnapshotCustomMetricInput } from '../../../../../common/http_api'; import { isRate } from './is_rate'; export const calculateFromBasedOnMetric = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/convert_metric_value.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/convert_metric_value.ts index 73ec49ad3f9ad..cf93ac372dfcb 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/convert_metric_value.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/convert_metric_value.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; // Some metrics in the UI are in a different unit that what we store in ES. export const convertMetricValue = (metric: SnapshotMetricType, value: number) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.test.ts index a7ddc75eb30d6..33bc05ced3648 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.test.ts @@ -5,7 +5,7 @@ * 2.0. */ import { COMPARATORS } from '@kbn/alerting-comparators'; -import { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; +import type { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; import { createBucketSelector } from './create_bucket_selector'; describe('createBucketSelector', () => { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.ts index 440e39ed14723..1eff6b4ba1ea8 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_bucket_selector.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; -import { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; -import { SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; +import type { SnapshotCustomMetricInput } from '../../../../../common/http_api'; import { createConditionScript } from './create_condition_script'; const EMPTY_SHOULD_WARN = { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_condition_script.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_condition_script.ts index 21f84eb612475..de880efbc6001 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_condition_script.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_condition_script.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { convertMetricValue } from './convert_metric_value'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_log_rate_aggs.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_log_rate_aggs.ts index 4e7e85efb68f7..61e778a1074d4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_log_rate_aggs.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_log_rate_aggs.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraTimerangeInput } from '../../../../../common/http_api'; +import type { InfraTimerangeInput } from '../../../../../common/http_api'; export const createLogRateAggs = (timerange: InfraTimerangeInput, id: string) => { const intervalInSeconds = (timerange.to - timerange.from) / 1000; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_metric_aggregations.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_metric_aggregations.ts index 1b619b63c0e6a..c7e9fb16d2e9e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_metric_aggregations.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_metric_aggregations.ts @@ -6,9 +6,12 @@ */ import { get } from 'lodash'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; -import { InfraTimerangeInput, SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { + InfraTimerangeInput, + SnapshotCustomMetricInput, +} from '../../../../../common/http_api'; import { isMetricRate, isCustomMetricRate, isInterfaceRateAgg } from './is_rate'; import { createRateAggs } from './create_rate_aggs'; import { createLogRateAggs } from './create_log_rate_aggs'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_agg_with_interface.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_agg_with_interface.ts index ee58dfac70f52..a52fa2a02de83 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_agg_with_interface.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_agg_with_interface.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraTimerangeInput } from '../../../../../common/http_api'; +import type { InfraTimerangeInput } from '../../../../../common/http_api'; import { calculateRateTimeranges } from './calculate_rate_timeranges'; export const createRateAggsWithInterface = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_aggs.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_aggs.ts index af786d41fd11d..9b518191bc105 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_aggs.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_rate_aggs.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraTimerangeInput } from '../../../../../common/http_api'; +import type { InfraTimerangeInput } from '../../../../../common/http_api'; import { calculateRateTimeranges } from './calculate_rate_timeranges'; export const createRateAggs = (timerange: InfraTimerangeInput, id: string, field: string) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_request.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_request.ts index 54cb8a1cb785d..4b93dbf3a6c04 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_request.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/create_request.ts @@ -6,11 +6,14 @@ */ import type { ESSearchRequest } from '@kbn/es-types'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; -import { InfraTimerangeInput, SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import type { + InfraTimerangeInput, + SnapshotCustomMetricInput, +} from '../../../../../common/http_api'; import { parseFilterQuery } from '../../../../utils/serialized_query'; import { createMetricAggregations } from './create_metric_aggregations'; -import { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; +import type { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; import { createBucketSelector } from './create_bucket_selector'; import { KUBERNETES_POD_UID, NUMBER_OF_DOCUMENTS, termsAggField } from '../../common/utils'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts index e911440ce5aa2..83fc1af42b099 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts @@ -18,12 +18,8 @@ import type { import type { LogQueryFields } from '../../../metrics/types'; import type { InfraSource } from '../../../sources'; import { createRequest } from './create_request'; -import { - AdditionalContext, - doFieldsExist, - KUBERNETES_POD_UID, - termsAggField, -} from '../../common/utils'; +import type { AdditionalContext } from '../../common/utils'; +import { doFieldsExist, KUBERNETES_POD_UID, termsAggField } from '../../common/utils'; interface BucketKey { node: string; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.test.ts index 2baee0b24bc60..e1bf5afdb37dd 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { MetricsUIAggregation } from '@kbn/metrics-data-access-plugin/common'; +import type { MetricsUIAggregation } from '@kbn/metrics-data-access-plugin/common'; import { isCustomMetricRate, isInterfaceRateAgg, isMetricRate, isRate } from './is_rate'; -import { SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { SnapshotCustomMetricInput } from '../../../../../common/http_api'; const customMaxMetricMock: SnapshotCustomMetricInput = { type: 'custom', diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.ts index d50f056f60196..9b73c264496bb 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/is_rate.ts @@ -6,14 +6,14 @@ */ import { has } from 'lodash'; +import type { MetricsUIAggregation } from '@kbn/metrics-data-access-plugin/common'; import { - MetricsUIAggregation, isBasicMetricAgg, isDerivativeAgg, isSumBucketAgg, isTermsWithAggregation, } from '@kbn/metrics-data-access-plugin/common'; -import { SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import type { SnapshotCustomMetricInput } from '../../../../../common/http_api'; export const isMetricRate = (metric: MetricsUIAggregation | undefined): boolean => { if (!metric) { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts index f85738248a9c0..2a84ef327b9cd 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts @@ -5,26 +5,25 @@ * 2.0. */ -import { schema, Type } from '@kbn/config-schema'; +import type { Type } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { GetViewInAppRelativeUrlFnOpts, AlertingServerSetup } from '@kbn/alerting-plugin/server'; +import type { + GetViewInAppRelativeUrlFnOpts, + AlertingServerSetup, +} from '@kbn/alerting-plugin/server'; import { observabilityPaths } from '@kbn/observability-plugin/common'; -import { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; -import { - InventoryItemType, - SnapshotMetricType, - SnapshotMetricTypeKeys, -} from '@kbn/metrics-data-access-plugin/common'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; +import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; +import { SnapshotMetricTypeKeys } from '@kbn/metrics-data-access-plugin/common'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; -import { - SnapshotCustomAggregation, - SNAPSHOT_CUSTOM_AGGREGATIONS, -} from '../../../../common/http_api'; +import type { SnapshotCustomAggregation } from '../../../../common/http_api'; +import { SNAPSHOT_CUSTOM_AGGREGATIONS } from '../../../../common/http_api'; import type { InfraConfig } from '../../../../common/plugin_config_types'; import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; -import { InfraBackendLibs, InfraLocators } from '../../infra_types'; +import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; import { alertDetailUrlActionVariableDescription, alertStateActionVariableDescription, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_chart_preview.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_chart_preview.ts index f9094ea921fb9..a89db5059044d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_chart_preview.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_chart_preview.ts @@ -6,23 +6,25 @@ */ import { i18n } from '@kbn/i18n'; -import { ResolvedLogView } from '@kbn/logs-shared-plugin/common'; +import type { ResolvedLogView } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { +import type { ExecutionTimeRange, GroupedSearchQueryResponse, + UngroupedSearchQueryResponse, +} from '../../../../common/alerting/logs/log_threshold/types'; +import { GroupedSearchQueryResponseRT, isOptimizedGroupedSearchQueryResponse, - UngroupedSearchQueryResponse, UngroupedSearchQueryResponseRT, } from '../../../../common/alerting/logs/log_threshold/types'; -import { +import type { GetLogAlertsChartPreviewDataAlertParamsSubset, Point, Series, } from '../../../../common/http_api'; import type { InfraPluginRequestHandlerContext } from '../../../types'; -import { KibanaFramework } from '../../adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../adapters/framework/kibana_framework_adapter'; import { buildFiltersFromCriteria } from '../../../../common/alerting/logs/log_threshold/query_helpers'; import { getGroupedESQuery, getUngroupedESQuery } from './log_threshold_executor'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.test.ts index da21c8aadaaaf..98e86ea390d87 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.test.ts @@ -5,20 +5,20 @@ * 2.0. */ +import type { LogThresholdAlertReporter } from './log_threshold_executor'; import { getGroupedESQuery, processUngroupedResults, processGroupByResults, - LogThresholdAlertReporter, getUngroupedESQuery, } from './log_threshold_executor'; -import { - Comparator, +import type { RuleParams, Criterion, UngroupedSearchQueryResponse, GroupedSearchQueryResponse, } from '../../../../common/alerting/logs/log_threshold'; +import { Comparator } from '../../../../common/alerting/logs/log_threshold'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { positiveComparators, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts index 0ac06618a3ba2..309443d3d474d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts @@ -15,19 +15,19 @@ import { ALERT_GROUP, ALERT_REASON, } from '@kbn/rule-data-utils'; -import { ElasticsearchClient, IBasePath } from '@kbn/core/server'; -import { +import type { ElasticsearchClient, IBasePath } from '@kbn/core/server'; +import type { ActionGroup, ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, RuleTypeState, RuleExecutorOptions, - AlertsClientError, } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; -import { ObservabilityLogsAlert } from '@kbn/alerts-as-data-utils'; -import { +import type { ObservabilityLogsAlert } from '@kbn/alerts-as-data-utils'; +import type { PublicAlertsClient, RecoveredAlertData, } from '@kbn/alerting-plugin/server/alerts_client/types'; @@ -36,31 +36,33 @@ import { getEcsGroups, type Group } from '@kbn/observability-alerting-rule-utils import { ecsFieldMap } from '@kbn/rule-registry-plugin/common/assets/field_maps/ecs_field_map'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { getChartGroupNames } from '../../../../common/utils/get_chart_group_names'; -import { +import type { RuleParams, + CountRuleParams, + CountCriteria, + GroupedSearchQueryResponse, + RatioRuleParams, + UngroupedSearchQueryResponse, + ExecutionTimeRange, + Criterion, +} from '../../../../common/alerting/logs/log_threshold'; +import { ruleParamsRT, AlertStates, Comparator, - CountRuleParams, - CountCriteria, getDenominator, getNumerator, - GroupedSearchQueryResponse, GroupedSearchQueryResponseRT, hasGroupBy, isOptimizableGroupedThreshold, isOptimizedGroupedSearchQueryResponse, isRatioRuleParams, - RatioRuleParams, - UngroupedSearchQueryResponse, UngroupedSearchQueryResponseRT, - ExecutionTimeRange, - Criterion, } from '../../../../common/alerting/logs/log_threshold'; import { getLogsAppAlertUrl } from '../../../../common/formatters/alert_link'; -import { InfraBackendLibs } from '../../infra_types'; +import type { InfraBackendLibs } from '../../infra_types'; +import type { AdditionalContext } from '../common/utils'; import { - AdditionalContext, flattenAdditionalContext, getContextForRecoveredAlerts, getGroupByObject, @@ -73,9 +75,9 @@ import { getReasonMessageForUngroupedCountAlert, getReasonMessageForUngroupedRatioAlert, } from './reason_formatters'; +import type { LogThresholdRuleTypeParams } from '../../../../common/alerting/logs/log_threshold/query_helpers'; import { buildFiltersFromCriteria, - LogThresholdRuleTypeParams, positiveComparators, } from '../../../../common/alerting/logs/log_threshold/query_helpers'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.test.ts index a6232b02a958f..56d54f55c982e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.test.ts @@ -6,7 +6,8 @@ */ import type { SavedObjectReference } from '@kbn/core/server'; -import { Comparator, RuleParams } from '../../../../common/alerting/logs/log_threshold'; +import type { RuleParams } from '../../../../common/alerting/logs/log_threshold'; +import { Comparator } from '../../../../common/alerting/logs/log_threshold'; import { extractReferences, injectReferences } from './log_threshold_references_manager'; const params: RuleParams = { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.ts index cb36080362ef2..9a467511ccbe1 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/log_threshold_references_manager.ts @@ -9,7 +9,8 @@ import type { SavedObjectReference } from '@kbn/core/server'; import { logViewReferenceRT } from '@kbn/logs-shared-plugin/common'; import { logViewSavedObjectName } from '@kbn/logs-shared-plugin/server'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { RuleParams, ruleParamsRT } from '../../../../common/alerting/logs/log_threshold'; +import type { RuleParams } from '../../../../common/alerting/logs/log_threshold'; +import { ruleParamsRT } from '../../../../common/alerting/logs/log_threshold'; export const LOG_VIEW_REFERENCE_NAME = 'log-view-reference-0'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/mocks/index.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/mocks/index.ts index f02dac2139097..fcda21711eea8 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/mocks/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/mocks/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraBackendLibs } from '../../../infra_types'; +import type { InfraBackendLibs } from '../../../infra_types'; export const libsMock = { sources: { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts index 38dc96fe4ce69..887b6b8904dea 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts @@ -6,12 +6,10 @@ */ import { i18n } from '@kbn/i18n'; -import { formatDurationFromTimeUnitChar, TimeUnitChar } from '@kbn/observability-plugin/common'; -import { - Comparator, - ComparatorToi18nSymbolsMap, - TimeUnit, -} from '../../../../common/alerting/logs/log_threshold/types'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; +import { formatDurationFromTimeUnitChar } from '@kbn/observability-plugin/common'; +import type { Comparator, TimeUnit } from '../../../../common/alerting/logs/log_threshold/types'; +import { ComparatorToi18nSymbolsMap } from '../../../../common/alerting/logs/log_threshold/types'; export const getReasonMessageForUngroupedCountAlert = ( actualCount: number, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/register_log_threshold_rule_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/register_log_threshold_rule_type.ts index d4eb9050499cf..bb379da719c83 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/register_log_threshold_rule_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/log_threshold/register_log_threshold_rule_type.ts @@ -21,7 +21,7 @@ import { LOG_DOCUMENT_COUNT_RULE_TYPE_ID, ruleParamsRT, } from '../../../../common/alerting/logs/log_threshold'; -import { InfraBackendLibs } from '../../infra_types'; +import type { InfraBackendLibs } from '../../infra_types'; import { alertDetailUrlActionVariableDescription, groupByKeysActionVariableDescription, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/check_missing_group.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/check_missing_group.ts index d50c11710db76..deac5f1c00a34 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/check_missing_group.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/check_missing_group.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import type { Logger } from '@kbn/logging'; import { isString, get, identity } from 'lodash'; import type { BucketKey } from './get_data'; import { calculateCurrentTimeframe, createBaseFilters } from './metric_query'; -import { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; export interface MissingGroupsRecord { key: string; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/convert_strings_to_missing_groups_record.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/convert_strings_to_missing_groups_record.ts index efd5c1ff91534..4e01e091b3701 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/convert_strings_to_missing_groups_record.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/convert_strings_to_missing_groups_record.ts @@ -6,7 +6,7 @@ */ import { isString } from 'lodash'; -import { MissingGroupsRecord } from './check_missing_group'; +import type { MissingGroupsRecord } from './check_missing_group'; export const convertStringsToMissingGroupsRecord = ( missingGroups: Array diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/create_bucket_selector.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/create_bucket_selector.ts index 2aa2ef6b5c838..3df82d687c91a 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/create_bucket_selector.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/create_bucket_selector.ts @@ -5,7 +5,8 @@ * 2.0. */ import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; -import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { createConditionScript } from './create_condition_script'; import { createLastPeriod } from './wrap_in_period'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts index 03fc6eec0f792..782bb2a47a839 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts @@ -5,18 +5,19 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import moment from 'moment'; import type { Logger } from '@kbn/logging'; import { isCustom } from './metric_expression_params'; -import { MetricExpressionParams } from '../../../../../common/alerting/metrics'; -import { InfraSource } from '../../../../../common/source_configuration/source_configuration'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { InfraSource } from '../../../../../common/source_configuration/source_configuration'; import { getIntervalInSeconds } from '../../../../../common/utils/get_interval_in_seconds'; import { CUSTOM_EQUATION_I18N, DOCUMENT_COUNT_I18N } from '../../common/messages'; import { createTimerange } from './create_timerange'; import { getData } from './get_data'; -import { checkMissingGroups, MissingGroupsRecord } from './check_missing_group'; -import { AdditionalContext } from '../../common/utils'; +import type { MissingGroupsRecord } from './check_missing_group'; +import { checkMissingGroups } from './check_missing_group'; +import type { AdditionalContext } from '../../common/utils'; export interface EvaluatedRuleParams { criteria: MetricExpressionParams[]; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/get_data.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/get_data.ts index e30edbeac9360..aebb064067bf6 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/get_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/get_data.ts @@ -5,15 +5,16 @@ * 2.0. */ -import { SearchResponse, AggregationsAggregate } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { SearchResponse, AggregationsAggregate } from '@elastic/elasticsearch/lib/api/types'; +import type { ElasticsearchClient } from '@kbn/core/server'; import type { Logger } from '@kbn/logging'; import type { EcsFieldsResponse } from '@kbn/rule-registry-plugin/common'; import { COMPARATORS } from '@kbn/alerting-comparators'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common'; -import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; +import type { AdditionalContext } from '../../common/utils'; import { - AdditionalContext, doFieldsExist, KUBERNETES_POD_UID, termsAggField, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_expression_params.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_expression_params.ts index fad72bd7ea973..84a14845711ad 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_expression_params.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_expression_params.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { CustomMetricExpressionParams, MetricExpressionParams, NonCountMetricExpressionParams, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts index 8f1fa804e8d58..453a6412eec94 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts @@ -7,7 +7,8 @@ import moment from 'moment'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { getElasticsearchMetricQuery } from './metric_query'; describe("The Metric Threshold Alert's getElasticsearchMetricQuery", () => { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts index df52fe3f0e068..858a46be8c184 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts @@ -7,7 +7,8 @@ import moment from 'moment'; import { isCustom, isNotCountOrCustom } from './metric_expression_params'; -import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../../common/alerting/metrics'; import { createCustomMetricsAggregations } from '../../../create_custom_metrics_aggregations'; import { hasAdditionalContext, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/wrap_in_period.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/wrap_in_period.ts index 8077fa3a9e50d..2dfec22b20507 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/wrap_in_period.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/lib/wrap_in_period.ts @@ -6,7 +6,7 @@ */ import moment from 'moment'; -import { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import type { MetricExpressionParams } from '../../../../../common/alerting/metrics'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; export const createLastPeriod = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts index 4227ff10ad902..9ee718fe94659 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts @@ -10,21 +10,21 @@ import rison from '@kbn/rison'; import { getThresholds } from '../common/get_values'; import { set } from '@kbn/safer-lodash-set'; import { COMPARATORS } from '@kbn/alerting-comparators'; -import { - Aggregators, +import type { CountMetricExpressionParams, NonCountMetricExpressionParams, } from '../../../../common/alerting/metrics'; +import { Aggregators } from '../../../../common/alerting/metrics'; import { createMetricThresholdExecutor, FIRED_ACTIONS, NO_DATA_ACTIONS, WARNING_ACTIONS, } from './metric_threshold_executor'; -import { Evaluation } from './lib/evaluate_rule'; +import type { Evaluation } from './lib/evaluate_rule'; import type { LogMeta, Logger } from '@kbn/logging'; import { DEFAULT_FLAPPING_SETTINGS } from '@kbn/alerting-plugin/common'; -import { InfraConfig } from '../../../../common/plugin_config_types'; +import type { InfraConfig } from '../../../../common/plugin_config_types'; import { ALERT_EVALUATION_THRESHOLD, ALERT_EVALUATION_VALUES, @@ -33,11 +33,11 @@ import { } from '@kbn/rule-data-utils'; import { type Group } from '@kbn/observability-alerting-rule-utils'; import { sharePluginMock } from '@kbn/share-plugin/public/mocks'; -import { +import type { AssetDetailsLocatorParams, MetricsExplorerLocatorParams, } from '@kbn/observability-shared-plugin/common'; -import { InfraLocators } from '../../infra_types'; +import type { InfraLocators } from '../../infra_types'; jest.mock('./lib/evaluate_rule', () => ({ evaluateRule: jest.fn() })); diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts index ff75a4b84c466..372aa9fd1f5f6 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts @@ -13,22 +13,24 @@ import { ALERT_REASON, } from '@kbn/rule-data-utils'; import { castArray, isEqual } from 'lodash'; -import { +import type { ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, - RecoveredActionGroup, } from '@kbn/alerting-plugin/common'; -import { AlertsClientError, RuleExecutorOptions, RuleTypeState } from '@kbn/alerting-plugin/server'; -import { TimeUnitChar, getAlertDetailsUrl } from '@kbn/observability-plugin/common'; -import { ObservabilityMetricsAlert } from '@kbn/alerts-as-data-utils'; -import { COMPARATORS } from '@kbn/alerting-comparators'; +import { RecoveredActionGroup } from '@kbn/alerting-plugin/common'; +import type { RuleExecutorOptions, RuleTypeState } from '@kbn/alerting-plugin/server'; +import { AlertsClientError } from '@kbn/alerting-plugin/server'; +import type { TimeUnitChar } from '@kbn/observability-plugin/common'; +import { getAlertDetailsUrl } from '@kbn/observability-plugin/common'; +import type { ObservabilityMetricsAlert } from '@kbn/alerts-as-data-utils'; +import type { COMPARATORS } from '@kbn/alerting-comparators'; import { getEcsGroups, type Group } from '@kbn/observability-alerting-rule-utils'; import { convertToBuiltInComparators } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; import { getOriginalActionGroup } from '../../../utils/get_original_action_group'; import { AlertStates } from '../../../../common/alerting/metrics'; import { createFormatter } from '../../../../common/formatters'; -import { InfraBackendLibs, InfraLocators } from '../../infra_types'; +import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; import { buildFiredAlertReason, buildInvalidQueryAlertReason, @@ -36,9 +38,9 @@ import { // buildRecoveredAlertReason, stateToAlertMessage, } from '../common/messages'; +import type { AdditionalContext } from '../common/utils'; import { createScopedLogger, - AdditionalContext, getContextForRecoveredAlerts, getMetricsViewInAppUrlWithSpaceId, UNGROUPED_FACTORY_KEY, @@ -50,8 +52,9 @@ import { } from '../common/utils'; import { getEvaluationValues, getThresholds } from '../common/get_values'; -import { EvaluatedRuleParams, evaluateRule, Evaluation } from './lib/evaluate_rule'; -import { MissingGroupsRecord } from './lib/check_missing_group'; +import type { EvaluatedRuleParams, Evaluation } from './lib/evaluate_rule'; +import { evaluateRule } from './lib/evaluate_rule'; +import type { MissingGroupsRecord } from './lib/check_missing_group'; import { convertStringsToMissingGroupsRecord } from './lib/convert_strings_to_missing_groups_record'; export type MetricThresholdAlert = Omit< diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts index 3cc272a02c7fe..1eed9f7ef3e5c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts @@ -18,7 +18,7 @@ import { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/conve import type { InfraConfig } from '../../../../common/plugin_config_types'; import { METRIC_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; import { METRIC_EXPLORER_AGGREGATIONS } from '../../../../common/http_api'; -import { InfraBackendLibs, InfraLocators } from '../../infra_types'; +import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; import { alertDetailUrlActionVariableDescription, alertStateActionVariableDescription, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/register_rule_types.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/register_rule_types.ts index 6d06c2c98607e..5896641c76d3d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/register_rule_types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/register_rule_types.ts @@ -6,14 +6,15 @@ */ import { legacyExperimentalFieldMap } from '@kbn/alerts-as-data-utils'; -import { type IRuleTypeAlerts, AlertingServerSetup } from '@kbn/alerting-plugin/server'; +import type { AlertingServerSetup } from '@kbn/alerting-plugin/server'; +import { type IRuleTypeAlerts } from '@kbn/alerting-plugin/server'; import { registerMetricThresholdRuleType } from './metric_threshold/register_metric_threshold_rule_type'; import { registerInventoryThresholdRuleType } from './inventory_metric_threshold/register_inventory_metric_threshold_rule_type'; import { registerLogThresholdRuleType } from './log_threshold/register_log_threshold_rule_type'; -import { InfraBackendLibs, InfraLocators } from '../infra_types'; +import type { InfraBackendLibs, InfraLocators } from '../infra_types'; import type { InfraConfig } from '../../types'; -import { MetricThresholdAlert } from './metric_threshold/metric_threshold_executor'; -import { LogThresholdAlert } from './log_threshold/log_threshold_executor'; +import type { MetricThresholdAlert } from './metric_threshold/metric_threshold_executor'; +import type { LogThresholdAlert } from './log_threshold/log_threshold_executor'; export const LOGS_RULES_ALERT_CONTEXT = 'observability.logs'; // Defines which alerts-as-data index logs rules will use diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/cancel_request_on_abort.ts b/x-pack/solutions/observability/plugins/infra/server/lib/cancel_request_on_abort.ts index 631af6991bd09..299d0d8812099 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/cancel_request_on_abort.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/cancel_request_on_abort.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core/server'; +import type { KibanaRequest } from '@kbn/core/server'; export function subscribeToAborted$>( promise: T, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/create_custom_metrics_aggregations.ts b/x-pack/solutions/observability/plugins/infra/server/lib/create_custom_metrics_aggregations.ts index 13017cc6666b6..43e1f9ed9233b 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/create_custom_metrics_aggregations.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/create_custom_metrics_aggregations.ts @@ -7,8 +7,8 @@ import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; import { isEmpty } from 'lodash'; -import { MetricExpressionCustomMetric } from '../../common/alerting/metrics'; -import { MetricsExplorerCustomMetric } from '../../common/http_api'; +import type { MetricExpressionCustomMetric } from '../../common/alerting/metrics'; +import type { MetricsExplorerCustomMetric } from '../../common/http_api'; const isMetricExpressionCustomMetric = ( subject: MetricsExplorerCustomMetric | MetricExpressionCustomMetric diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/create_search_client.ts b/x-pack/solutions/observability/plugins/infra/server/lib/create_search_client.ts index 00f89fb3c8e8b..e2e5cd93a6154 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/create_search_client.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/create_search_client.ts @@ -7,8 +7,8 @@ import type { KibanaRequest } from '@kbn/core/server'; import type { InfraPluginRequestHandlerContext } from '../types'; -import { CallWithRequestParams, InfraDatabaseSearchResponse } from './adapters/framework'; -import { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; +import type { CallWithRequestParams, InfraDatabaseSearchResponse } from './adapters/framework'; +import type { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; export const createSearchClient = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/domains/metrics_domain.ts b/x-pack/solutions/observability/plugins/infra/server/lib/domains/metrics_domain.ts index 44c1d850c5724..9b706b09d9a26 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/domains/metrics_domain.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/domains/metrics_domain.ts @@ -5,10 +5,13 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core/server'; +import type { KibanaRequest } from '@kbn/core/server'; import type { InfraPluginRequestHandlerContext } from '../../types'; -import { InfraMetricsAdapter, InfraMetricsRequestOptions } from '../adapters/metrics/adapter_types'; -import { NodeDetailsMetricData } from '../../../common/http_api/node_details_api'; +import type { + InfraMetricsAdapter, + InfraMetricsRequestOptions, +} from '../adapters/metrics/adapter_types'; +import type { NodeDetailsMetricData } from '../../../common/http_api/node_details_api'; export class InfraMetricsDomain { private adapter: InfraMetricsAdapter; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_alerts_client.ts b/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_alerts_client.ts index 99464efd02567..9597bfe49326f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_alerts_client.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_alerts_client.ts @@ -6,7 +6,7 @@ */ import { isEmpty } from 'lodash'; import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; import type { KibanaRequest } from '@kbn/core/server'; import { OBSERVABILITY_RULE_TYPE_IDS } from '@kbn/rule-data-utils'; import type { InfraBackendLibs } from '../infra_types'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_metrics_client.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_metrics_client.test.ts index 3eb8c47c274d9..144cd7f274aa0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_metrics_client.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/helpers/get_infra_metrics_client.test.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core-http-server'; -import { DataTier } from '@kbn/observability-shared-plugin/common'; -import { InfraBackendLibs } from '../infra_types'; +import type { KibanaRequest } from '@kbn/core-http-server'; +import type { DataTier } from '@kbn/observability-shared-plugin/common'; +import type { InfraBackendLibs } from '../infra_types'; import { getInfraMetricsClient } from './get_infra_metrics_client'; -import { InfraPluginRequestHandlerContext } from '../../types'; -import { QueryDslQueryContainer } from '@kbn/data-views-plugin/common/types'; +import type { InfraPluginRequestHandlerContext } from '../../types'; +import type { QueryDslQueryContainer } from '@kbn/data-views-plugin/common/types'; const withExcludedDataTiers = (tiers: DataTier[]) => ({ uiSettings: { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list.ts b/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list.ts index 1ffe0e15f0677..aa911a074edcd 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list.ts @@ -6,8 +6,11 @@ */ import { TIMESTAMP_FIELD, SYSTEM_PROCESS_CMDLINE_FIELD } from '../../../common/constants'; -import { ProcessListAPIRequest, ProcessListAPIQueryAggregation } from '../../../common/http_api'; -import { ESSearchClient } from '../metrics/types'; +import type { + ProcessListAPIRequest, + ProcessListAPIQueryAggregation, +} from '../../../common/http_api'; +import type { ESSearchClient } from '../metrics/types'; import type { InfraSourceConfiguration } from '../sources'; const TOP_N = 10; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list_chart.ts b/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list_chart.ts index 45e43d3f9f2a0..e0cc6d2e80cdd 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list_chart.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/host_details/process_list_chart.ts @@ -7,13 +7,13 @@ import { first } from 'lodash'; import { TIMESTAMP_FIELD, SYSTEM_PROCESS_CMDLINE_FIELD } from '../../../common/constants'; -import { +import type { ProcessListAPIChartRequest, ProcessListAPIChartQueryAggregation, ProcessListAPIRow, ProcessListAPIChartResponse, } from '../../../common/http_api'; -import { ESSearchClient } from '../metrics/types'; +import type { ESSearchClient } from '../metrics/types'; export const getProcessListChart = async ( search: ESSearchClient, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/common.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/common.ts index db1d5bc67da37..a9cbede8d2312 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/common.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/common.ts @@ -9,13 +9,13 @@ import { decodeOrThrow } from '@kbn/io-ts-utils'; import type { MlAnomalyDetectors, MlSystem } from '../../types'; import { NoLogAnalysisMlJobError } from './errors'; +import type { CompositeDatasetKey, LogEntryDatasetBucket } from './queries/log_entry_data_sets'; import { - CompositeDatasetKey, createLogEntryDatasetsQuery, - LogEntryDatasetBucket, logEntryDatasetsResponseRT, } from './queries/log_entry_data_sets'; -import { startTracingSpan, TracingSpan } from '../../../common/performance_tracing'; +import type { TracingSpan } from '../../../common/performance_tracing'; +import { startTracingSpan } from '../../../common/performance_tracing'; export interface MappedAnomalyHit { id: string; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_hosts_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_hosts_anomalies.ts index 442eb60d30bea..8e0e57fda600f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_hosts_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_hosts_anomalies.ts @@ -5,13 +5,15 @@ * 2.0. */ -import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; +import type { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { InfraRequestHandlerContext } from '../../types'; -import { TracingSpan, startTracingSpan } from '../../../common/performance_tracing'; -import { fetchMlJob, MappedAnomalyHit, InfluencerFilter } from './common'; +import type { InfraRequestHandlerContext } from '../../types'; +import type { TracingSpan } from '../../../common/performance_tracing'; +import { startTracingSpan } from '../../../common/performance_tracing'; +import type { MappedAnomalyHit, InfluencerFilter } from './common'; +import { fetchMlJob } from './common'; import { getJobId, metricsHostsJobTypes } from '../../../common/infra_ml'; -import { Sort, Pagination } from '../../../common/http_api/infra_ml'; +import type { Sort, Pagination } from '../../../common/http_api/infra_ml'; import type { MlSystem, MlAnomalyDetectors } from '../../types'; import { isMlPrivilegesError } from './errors'; import { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_k8s_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_k8s_anomalies.ts index 18d62d414844d..03bb34bfeae46 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_k8s_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/metrics_k8s_anomalies.ts @@ -5,13 +5,15 @@ * 2.0. */ -import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; +import type { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { InfraRequestHandlerContext } from '../../types'; -import { TracingSpan, startTracingSpan } from '../../../common/performance_tracing'; -import { fetchMlJob, MappedAnomalyHit, InfluencerFilter } from './common'; +import type { InfraRequestHandlerContext } from '../../types'; +import type { TracingSpan } from '../../../common/performance_tracing'; +import { startTracingSpan } from '../../../common/performance_tracing'; +import type { MappedAnomalyHit, InfluencerFilter } from './common'; +import { fetchMlJob } from './common'; import { getJobId, metricsK8SJobTypes } from '../../../common/infra_ml'; -import { Sort, Pagination } from '../../../common/http_api/infra_ml'; +import type { Sort, Pagination } from '../../../common/http_api/infra_ml'; import type { MlSystem, MlAnomalyDetectors } from '../../types'; import { isMlPrivilegesError } from './errors'; import { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_host_anomalies.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_host_anomalies.test.ts index 984fc523b9035..de087d026de6f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_host_anomalies.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_host_anomalies.test.ts @@ -6,7 +6,7 @@ */ import { createMetricsHostsAnomaliesQuery } from './metrics_hosts_anomalies'; -import { Sort, Pagination } from '../../../../common/http_api/infra_ml'; +import type { Sort, Pagination } from '../../../../common/http_api/infra_ml'; describe('createMetricsHostAnomaliesQuery', () => { const jobIds = ['kibana-metrics-ui-default-default-hosts_memory_usage']; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_hosts_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_hosts_anomalies.ts index 2d1efebc51666..52c4e17d0550f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_hosts_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_hosts_anomalies.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; +import type { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import { TIEBREAKER_FIELD } from '../../../../common/constants'; import { commonSearchSuccessResponseFieldsRT } from '../../../utils/elasticsearch_runtime_types'; import { @@ -18,8 +18,8 @@ import { createInfluencerFilter, createJobIdsQuery, } from './common'; -import { InfluencerFilter } from '../common'; -import { Sort, Pagination } from '../../../../common/http_api/infra_ml'; +import type { InfluencerFilter } from '../common'; +import type { Sort, Pagination } from '../../../../common/http_api/infra_ml'; const sortToMlFieldMap = { dataset: 'partition_field_value', diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.test.ts index ef214eba4f2d7..143fb58bb6625 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.test.ts @@ -6,7 +6,7 @@ */ import { createMetricsK8sAnomaliesQuery } from './metrics_k8s_anomalies'; -import { Sort, Pagination } from '../../../../common/http_api/infra_ml'; +import type { Sort, Pagination } from '../../../../common/http_api/infra_ml'; describe('createMetricsK8sAnomaliesQuery', () => { const jobIds = ['kibana-metrics-ui-default-default-k8s_memory_usage']; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.ts index 83375ae1e8d2b..d3a215453bce1 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_ml/queries/metrics_k8s_anomalies.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; +import type { ML_ANOMALY_THRESHOLD } from '@kbn/ml-anomaly-utils/anomaly_threshold'; import { TIEBREAKER_FIELD } from '../../../../common/constants'; import { commonSearchSuccessResponseFieldsRT } from '../../../utils/elasticsearch_runtime_types'; import { @@ -18,8 +18,8 @@ import { createInfluencerFilter, createJobIdsQuery, } from './common'; -import { InfluencerFilter } from '../common'; -import { Sort, Pagination } from '../../../../common/http_api/infra_ml'; +import type { InfluencerFilter } from '../common'; +import type { Sort, Pagination } from '../../../../common/http_api/infra_ml'; const sortToMlFieldMap = { dataset: 'partition_field_value', diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/infra_types.ts b/x-pack/solutions/observability/plugins/infra/server/lib/infra_types.ts index 10f80fbe86c76..5f346b19851b1 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/infra_types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/infra_types.ts @@ -8,7 +8,7 @@ import type { Logger } from '@kbn/logging'; import type { IBasePath } from '@kbn/core/server'; import type { handleEsError } from '@kbn/es-ui-shared-plugin/server'; -import { ObservabilityConfig } from '@kbn/observability-plugin/server'; +import type { ObservabilityConfig } from '@kbn/observability-plugin/server'; import type { ILogsSharedLogEntriesDomain } from '@kbn/logs-shared-plugin/server'; import type { AssetDetailsLocator, @@ -16,12 +16,12 @@ import type { MetricsExplorerLocator, } from '@kbn/observability-shared-plugin/common'; import type { AlertsLocator } from '@kbn/observability-plugin/common'; -import { RulesServiceSetup } from '../services/rules'; -import { InfraConfig, InfraPluginStartServicesAccessor } from '../types'; -import { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; -import { InfraMetricsDomain } from './domains/metrics_domain'; -import { InfraSources } from './sources'; -import { InfraSourceStatus } from './source_status'; +import type { RulesServiceSetup } from '../services/rules'; +import type { InfraConfig, InfraPluginStartServicesAccessor } from '../types'; +import type { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; +import type { InfraMetricsDomain } from './domains/metrics_domain'; +import type { InfraSources } from './sources'; +import type { InfraSourceStatus } from './source_status'; import type { InfraServerPluginSetupDeps, InfraServerPluginStartDeps } from './adapters/framework'; export interface InfraDomainLibs { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/common.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/common.ts index 8950ea2a94eee..cf46e2c39ecc4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/common.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/common.ts @@ -9,13 +9,13 @@ import { decodeOrThrow } from '@kbn/io-ts-utils'; import type { MlAnomalyDetectors, MlSystem } from '../../types'; import { NoLogAnalysisMlJobError } from './errors'; +import type { CompositeDatasetKey, LogEntryDatasetBucket } from './queries/log_entry_data_sets'; import { - CompositeDatasetKey, createLogEntryDatasetsQuery, - LogEntryDatasetBucket, logEntryDatasetsResponseRT, } from './queries/log_entry_data_sets'; -import { startTracingSpan, TracingSpan } from '../../../common/performance_tracing'; +import type { TracingSpan } from '../../../common/performance_tracing'; +import { startTracingSpan } from '../../../common/performance_tracing'; export async function fetchMlJob(mlAnomalyDetectors: MlAnomalyDetectors, jobId: string) { const finalizeMlGetJobSpan = startTracingSpan('Fetch ml job from ES'); diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_anomalies.ts index 7d01c969a18ed..c61bcf78b4995 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_anomalies.ts @@ -6,29 +6,32 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { PersistedLogViewReference, ResolvedLogView } from '@kbn/logs-shared-plugin/common'; +import type { PersistedLogViewReference, ResolvedLogView } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat, IdFormatByJobType } from '../../../common/http_api/latest'; -import { +import type { IdFormat, IdFormatByJobType } from '../../../common/http_api/latest'; +import type { AnomaliesSort, + LogEntryAnomalyDatasets, + Pagination, +} from '../../../common/log_analysis'; +import { getJobId, isCategoryAnomaly, jobCustomSettingsRT, - LogEntryAnomalyDatasets, logEntryCategoriesJobType, logEntryCategoriesJobTypes, logEntryRateJobType, logEntryRateJobTypes, - Pagination, } from '../../../common/log_analysis'; -import { startTracingSpan, TracingSpan } from '../../../common/performance_tracing'; +import type { TracingSpan } from '../../../common/performance_tracing'; +import { startTracingSpan } from '../../../common/performance_tracing'; import type { InfraPluginRequestHandlerContext, InfraRequestHandlerContext, MlAnomalyDetectors, MlSystem, } from '../../types'; -import { KibanaFramework } from '../adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../adapters/framework/kibana_framework_adapter'; import { fetchMlJob, getLogEntryDatasets } from './common'; import { InsufficientAnomalyMlJobsConfigured, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts index 51bf582260d1e..77bdf25693946 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts @@ -7,15 +7,15 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import type { ElasticsearchClient } from '@kbn/core/server'; -import { +import type { LogEntryContext, PersistedLogViewReference, ResolvedLogView, } from '@kbn/logs-shared-plugin/common'; import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../common/http_api/latest'; +import type { IdFormat } from '../../../common/http_api/latest'; +import type { CategoriesSort } from '../../../common/log_analysis'; import { - CategoriesSort, compareDatasetsByMaximumAnomalyScore, getJobId, jobCustomSettingsRT, @@ -25,14 +25,14 @@ import { startTracingSpan } from '../../../common/performance_tracing'; import type { MlAnomalyDetectors, MlSystem } from '../../types'; import { fetchMlJob, getLogEntryDatasets } from './common'; import { InsufficientLogAnalysisMlJobConfigurationError, UnknownCategoryError } from './errors'; +import type { LogEntryCategoryHit } from './queries/log_entry_categories'; import { createLogEntryCategoriesQuery, logEntryCategoriesResponseRT, - LogEntryCategoryHit, } from './queries/log_entry_categories'; +import type { LogEntryCategoryExampleHit } from './queries/log_entry_category_examples'; import { createLogEntryCategoryExamplesQuery, - LogEntryCategoryExampleHit, logEntryCategoryExamplesResponseRT, } from './queries/log_entry_category_examples'; import { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_datasets_stats.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_datasets_stats.ts index a434bb7cfdd71..91ff66095fb4c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_datasets_stats.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_categories_datasets_stats.ts @@ -9,11 +9,13 @@ import { decodeOrThrow } from '@kbn/io-ts-utils'; import { startTracingSpan } from '../../../common/performance_tracing'; import type { MlAnomalyDetectors, MlSystem } from '../../types'; import { COMPOSITE_AGGREGATION_BATCH_SIZE } from './common'; -import { +import type { CompositeDatasetKey, + LogEntryCategoryDatasetStatsBucket, +} from './queries/latest_log_entry_categories_datasets_stats'; +import { createLatestLogEntryCategoriesDatasetsStatsQuery, latestLogEntryCategoriesDatasetsStatsResponseRT, - LogEntryCategoryDatasetStatsBucket, } from './queries/latest_log_entry_categories_datasets_stats'; export async function getLatestLogEntriesCategoriesDatasetsStats( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_rate_analysis.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_rate_analysis.ts index 4cdf603675f64..21e7a5dc0a05e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_rate_analysis.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/log_entry_rate_analysis.ts @@ -6,13 +6,9 @@ */ import { decodeOrThrow } from '@kbn/io-ts-utils'; -import { IdFormat } from '../../../common/http_api/latest'; -import { - logRateModelPlotResponseRT, - createLogEntryRateQuery, - LogRateModelPlotBucket, - CompositeTimestampPartitionKey, -} from './queries'; +import type { IdFormat } from '../../../common/http_api/latest'; +import type { LogRateModelPlotBucket, CompositeTimestampPartitionKey } from './queries'; +import { logRateModelPlotResponseRT, createLogEntryRateQuery } from './queries'; import { getJobId, logEntryRateJobType } from '../../../common/log_analysis'; import type { MlSystem } from '../../types'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/log_entry_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/log_entry_anomalies.ts index 94871c0d216e2..47edab2c9c039 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/log_entry_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/log_entry_anomalies.ts @@ -14,7 +14,7 @@ import { defaultRequestParameters, createDatasetsFilters, } from './common'; -import { +import type { AnomaliesSort, LogEntryAnomalyDatasets, Pagination, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/top_log_entry_categories.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/top_log_entry_categories.ts index ce8b4fc4d46d1..689c771b17fa4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/top_log_entry_categories.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/queries/top_log_entry_categories.ts @@ -15,7 +15,7 @@ import { createDatasetsFilters, } from './common'; -import { CategoriesSort } from '../../../../common/log_analysis'; +import type { CategoriesSort } from '../../../../common/log_analysis'; type CategoryAggregationOrder = | 'filter_record>maximum_record_score' diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/resolve_id_formats.ts b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/resolve_id_formats.ts index 48f3b3e2fdc55..4974680dcd415 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/resolve_id_formats.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/log_analysis/resolve_id_formats.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { MlAnomalyDetectors } from '@kbn/ml-plugin/server'; -import { IdFormat, IdFormatByJobType, JobType } from '../../../common/http_api/latest'; +import type { MlAnomalyDetectors } from '@kbn/ml-plugin/server'; +import type { IdFormat, IdFormatByJobType, JobType } from '../../../common/http_api/latest'; import { getJobId, logEntryCategoriesJobType, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/index.ts b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/index.ts index deab5911dd19d..7683cee0d6b46 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/index.ts @@ -8,15 +8,13 @@ import { decodeOrThrow } from '@kbn/io-ts-utils'; import type { MetricsAPIResponse, MetricsAPIRequest } from '@kbn/metrics-data-access-plugin/common'; import { TIMESTAMP_FIELD } from '../../../common/constants'; -import { +import type { ESSearchClient, - CompositeResponseRT, MetricsESResponse, - AggregationResponseRT, AggregationResponse, CompositeResponse, - HistogramBucketRT, } from './types'; +import { CompositeResponseRT, AggregationResponseRT, HistogramBucketRT } from './types'; import { EMPTY_RESPONSE } from './constants'; import { createAggregations, createCompositeAggregations } from './lib/create_aggregations'; import { convertBucketsToMetricsApiSeries } from './lib/convert_buckets_to_metrics_series'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts index 99447271ce5f1..600d43ca3b40c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts @@ -5,7 +5,8 @@ * 2.0. */ -import moment, { isDuration, Duration } from 'moment'; +import type { Duration } from 'moment'; +import moment, { isDuration } from 'moment'; const d = moment.duration; const roundingRules = [ diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts index 78a9bffa430ce..129129cd048e6 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts @@ -13,8 +13,8 @@ import type { MetricsAPIColumn, MetricsAPIRow, } from '@kbn/metrics-data-access-plugin/common'; +import type { Bucket } from '../types'; import { - Bucket, BasicMetricValueRT, NormalizedMetricValueRT, PercentilesTypeRT, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/create_aggregations.ts b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/create_aggregations.ts index 13987761d72d6..1e096cfb1d1b5 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/create_aggregations.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/lib/create_aggregations.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AggregationOptionsByType } from '@kbn/es-types'; +import type { AggregationOptionsByType } from '@kbn/es-types'; import Boom from '@hapi/boom'; import { type MetricsAPIRequest } from '@kbn/metrics-data-access-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/types.ts b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/types.ts index 0c87e8eca47d9..df19f5aed0729 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/metrics/types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/metrics/types.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { InfraDatabaseSearchResponse, CallWithRequestParams } from '../adapters/framework'; +import type { InfraDatabaseSearchResponse, CallWithRequestParams } from '../adapters/framework'; export type ESSearchClient = ( options: CallWithRequestParams diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/source_status.ts b/x-pack/solutions/observability/plugins/infra/server/lib/source_status.ts index 9e492e448ab92..b68723df05e28 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/source_status.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/source_status.ts @@ -6,7 +6,7 @@ */ import type { InfraPluginRequestHandlerContext } from '../types'; -import { InfraSources } from './sources'; +import type { InfraSources } from './sources'; export class InfraSourceStatus { constructor( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/has_data.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/has_data.ts index d56512918f11a..56214d3a15359 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/has_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/has_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ESSearchClient } from '../metrics/types'; +import type { ESSearchClient } from '../metrics/types'; export const hasData = async (index: string, client: ESSearchClient) => { const params = { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_13_0_convert_log_alias_to_log_indices.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_13_0_convert_log_alias_to_log_indices.ts index a996c9a2a51a7..0a2cb8bb8a403 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_13_0_convert_log_alias_to_log_indices.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_13_0_convert_log_alias_to_log_indices.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectMigrationFn } from '@kbn/core/server'; -import { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; +import type { SavedObjectMigrationFn } from '@kbn/core/server'; +import type { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; import { LOGS_INDEX_PATTERN } from '../../../../common/constants'; type SevenTwelveZeroSourceConfig = Omit & { diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.test.ts index 7efb0b5370c47..6a8ec4e215f34 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.test.ts @@ -6,7 +6,7 @@ */ import { migrationMocks } from '@kbn/core/server/mocks'; -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { inventoryDefaultViewReferenceName, logIndexPatternReferenceName, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.ts index bc2f7b11b574e..1eaae0bcf261e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_inventory_default_view_reference.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectMigrationFn } from '@kbn/core/server'; -import { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; +import type { SavedObjectMigrationFn } from '@kbn/core/server'; +import type { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; import { extractInventorySavedViewReferences } from '../saved_object_references'; export const extractInventoryDefaultViewReference: SavedObjectMigrationFn< diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.test.ts index 9c007607c0954..fb1c8e2156215 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.test.ts @@ -6,7 +6,7 @@ */ import { migrationMocks } from '@kbn/core/server/mocks'; -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { logIndexPatternReferenceName, metricsExplorerDefaultViewReferenceName, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.ts index 81b1d4bde03ec..879f4dc01ca8d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_16_2_extract_metrics_explorer_default_view_reference.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectMigrationFn } from '@kbn/core/server'; -import { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; +import type { SavedObjectMigrationFn } from '@kbn/core/server'; +import type { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; import { extractMetricsExplorerSavedViewReferences } from '../saved_object_references'; export const extractMetricsExplorerDefaultViewReference: SavedObjectMigrationFn< diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_9_0_add_new_indexing_strategy_index_names.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_9_0_add_new_indexing_strategy_index_names.ts index fd8be33877248..fc7d00144a917 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_9_0_add_new_indexing_strategy_index_names.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/7_9_0_add_new_indexing_strategy_index_names.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectMigrationFn } from '@kbn/core/server'; -import { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; +import type { SavedObjectMigrationFn } from '@kbn/core/server'; +import type { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; type SevenNineZeroSourceConfig = Omit & { logAlias: string; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.test.ts index 5cec2e3c94452..4c9c427875ba2 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectUnsanitizedDoc } from '@kbn/core/server'; +import type { SavedObjectUnsanitizedDoc } from '@kbn/core/server'; import { migrationMocks } from '@kbn/core/server/mocks'; import { composeMigrations } from './compose_migrations'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.ts index e1d9e338d4630..98cd667823563 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/compose_migrations.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectMigrationFn } from '@kbn/core/server'; +import type { SavedObjectMigrationFn } from '@kbn/core/server'; type InputAttributesOf = MigrationFn extends SavedObjectMigrationFn< infer InputAttributes, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/create_test_source_configuration.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/create_test_source_configuration.ts index 307287dfc4c62..a6eacdb340394 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/create_test_source_configuration.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/migrations/create_test_source_configuration.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectReference, SavedObjectUnsanitizedDoc } from '@kbn/core/server'; -import { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; +import type { SavedObjectReference, SavedObjectUnsanitizedDoc } from '@kbn/core/server'; +import type { InfraSourceConfiguration } from '../../../../common/source_configuration/source_configuration'; import { infraSourceConfigurationSavedObjectName } from '../saved_object_type'; export const createTestSourceConfiguration = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.test.ts index 4ca2f51cf9385..61baf5bedac2e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraSourceConfiguration } from '../../../common/source_configuration/source_configuration'; +import type { InfraSourceConfiguration } from '../../../common/source_configuration/source_configuration'; import { extractSavedObjectReferences, resolveSavedObjectReferences, diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.ts index 594a2408ecf62..b5e6cf08518d2 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_references.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; -import { +import type { SavedObjectReference } from '@kbn/core/server'; +import type { InfraSavedSourceConfiguration, InfraSourceConfiguration, } from '../../../common/source_configuration/source_configuration'; +import type { SavedObjectAttributesWithReferences } from '../../saved_objects/references'; import { - SavedObjectAttributesWithReferences, extractSavedObjectReferences as genericExtractSavedObjectReferences, resolveSavedObjectReferences as genericResolveSavedObjectReferences, } from '../../saved_objects/references'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_type.ts index ed9f5b9f1da5f..29b7b8665e237 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/saved_object_type.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { addNewIndexingStrategyIndexNames } from './migrations/7_9_0_add_new_indexing_strategy_index_names'; import { convertLogAliasToLogIndices } from './migrations/7_13_0_convert_log_alias_to_log_indices'; import { composeMigrations } from './migrations/compose_migrations'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.test.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.test.ts index 2e108be0c515b..deef40eaef681 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObject } from '@kbn/core/server'; +import type { SavedObject } from '@kbn/core/server'; import type { MetricsDataClient } from '@kbn/metrics-data-access-plugin/server'; import { infraSourceConfigurationSavedObjectName } from './saved_object_type'; import { InfraSources } from './sources'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.ts b/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.ts index 13f6a82fd5fb6..706d4e77a5e2e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/sources/sources.ts @@ -10,13 +10,10 @@ import { identity } from 'fp-ts/lib/function'; import { pipe } from 'fp-ts/lib/pipeable'; import { failure } from 'io-ts/lib/PathReporter'; import { inRange } from 'lodash'; -import { - SavedObject, - SavedObjectsClientContract, - SavedObjectsErrorHelpers, -} from '@kbn/core/server'; +import type { SavedObject, SavedObjectsClientContract } from '@kbn/core/server'; +import { SavedObjectsErrorHelpers } from '@kbn/core/server'; import type { MetricsDataClient } from '@kbn/metrics-data-access-plugin/server'; -import { +import type { InfraSavedSourceConfiguration, InfraSource, InfraSourceConfiguration, diff --git a/x-pack/solutions/observability/plugins/infra/server/mocks.ts b/x-pack/solutions/observability/plugins/infra/server/mocks.ts index 4749ba6e1a3b6..9f30943632e05 100644 --- a/x-pack/solutions/observability/plugins/infra/server/mocks.ts +++ b/x-pack/solutions/observability/plugins/infra/server/mocks.ts @@ -13,7 +13,7 @@ import { createMetricsExplorerViewsServiceSetupMock, createMetricsExplorerViewsServiceStartMock, } from './services/metrics_explorer_views/metrics_explorer_views_service.mock'; -import { InfraPluginSetup, InfraPluginStart } from './types'; +import type { InfraPluginSetup, InfraPluginStart } from './types'; const createInfraSetupMock = () => { const infraSetupMock: jest.Mocked = { diff --git a/x-pack/solutions/observability/plugins/infra/server/plugin.ts b/x-pack/solutions/observability/plugins/infra/server/plugin.ts index 6eac138e9fc91..9dce77dcd1879 100644 --- a/x-pack/solutions/observability/plugins/infra/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/infra/server/plugin.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { Server } from '@hapi/hapi'; -import { CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/server'; +import type { Server } from '@hapi/hapi'; +import type { CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/server'; import { handleEsError } from '@kbn/es-ui-shared-plugin/server'; import { i18n } from '@kbn/i18n'; -import { Logger } from '@kbn/logging'; +import type { Logger } from '@kbn/logging'; import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common'; -import { GetMetricIndicesOptions } from '@kbn/metrics-data-access-plugin/server'; +import type { GetMetricIndicesOptions } from '@kbn/metrics-data-access-plugin/server'; import { AssetDetailsLocatorDefinition, InventoryLocatorDefinition, @@ -22,7 +22,10 @@ import { mapValues } from 'lodash'; import { LOGS_FEATURE_ID, METRICS_FEATURE_ID } from '../common/constants'; import { LOGS_FEATURE, METRICS_FEATURE } from './features'; import { registerRoutes } from './infra_server'; -import { InfraServerPluginSetupDeps, InfraServerPluginStartDeps } from './lib/adapters/framework'; +import type { + InfraServerPluginSetupDeps, + InfraServerPluginStartDeps, +} from './lib/adapters/framework'; import { KibanaFramework } from './lib/adapters/framework/kibana_framework_adapter'; import { KibanaMetricsAdapter } from './lib/adapters/metrics/kibana_metrics_adapter'; import { InfraElasticsearchSourceStatusAdapter } from './lib/adapters/source_status'; @@ -32,7 +35,7 @@ import { METRICS_RULES_ALERT_CONTEXT, } from './lib/alerting/register_rule_types'; import { InfraMetricsDomain } from './lib/domains/metrics_domain'; -import { InfraBackendLibs, InfraDomainLibs } from './lib/infra_types'; +import type { InfraBackendLibs, InfraDomainLibs } from './lib/infra_types'; import { infraSourceConfigurationSavedObjectType, InfraSources } from './lib/sources'; import { InfraSourceStatus } from './lib/source_status'; import { @@ -43,7 +46,7 @@ import { import { InventoryViewsService } from './services/inventory_views'; import { MetricsExplorerViewsService } from './services/metrics_explorer_views'; import { RulesService } from './services/rules'; -import { +import type { InfraConfig, InfraPluginCoreSetup, InfraPluginRequestHandlerContext, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/delete_custom_dashboard.ts b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/delete_custom_dashboard.ts index 0742fd043a091..6eb23da51b8d9 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/delete_custom_dashboard.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/delete_custom_dashboard.ts @@ -7,7 +7,7 @@ import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { InfraDeleteCustomDashboardsRequestParamsRT } from '../../../common/http_api/custom_dashboards_api'; -import { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; import { handleRouteErrors } from '../../utils/handle_route_errors'; import { checkCustomDashboardsEnabled } from './lib/check_custom_dashboards_enabled'; import { deleteCustomDashboard } from './lib/delete_custom_dashboard'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/get_custom_dashboard.ts b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/get_custom_dashboard.ts index 561c1995dba13..f3423e8f99a2f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/get_custom_dashboard.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/get_custom_dashboard.ts @@ -10,7 +10,7 @@ import { InfraGetCustomDashboardsRequestPathParamsRT, InfraGetCustomDashboardsResponseBodyRT, } from '../../../common/http_api/custom_dashboards_api'; -import { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; import { handleRouteErrors } from '../../utils/handle_route_errors'; import { checkCustomDashboardsEnabled } from './lib/check_custom_dashboards_enabled'; import { findCustomDashboard } from './lib/find_custom_dashboard'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/lib/check_custom_dashboards_enabled.ts b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/lib/check_custom_dashboards_enabled.ts index 086e920726449..7bd2d3959eb5c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/lib/check_custom_dashboards_enabled.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/lib/check_custom_dashboards_enabled.ts @@ -7,7 +7,7 @@ import Boom from '@hapi/boom'; import { i18n } from '@kbn/i18n'; -import { IUiSettingsClient } from '@kbn/core/server'; +import type { IUiSettingsClient } from '@kbn/core/server'; import { enableInfrastructureAssetCustomDashboards } from '@kbn/observability-plugin/common'; export async function checkCustomDashboardsEnabled(uiSettingsClient: IUiSettingsClient) { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/save_custom_dashboard.ts b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/save_custom_dashboard.ts index cab4d2de835d5..dc041eb9d161a 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/save_custom_dashboard.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/save_custom_dashboard.ts @@ -6,13 +6,13 @@ */ import { createRouteValidationFunction } from '@kbn/io-ts-utils'; -import { InfraCustomDashboard } from '../../../common/custom_dashboards'; +import type { InfraCustomDashboard } from '../../../common/custom_dashboards'; import { InfraSaveCustomDashboardsRequestPayloadRT, InfraSaveCustomDashboardsResponseBodyRT, InfraGetCustomDashboardsRequestPathParamsRT, } from '../../../common/http_api/custom_dashboards_api'; -import { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; import { INFRA_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../saved_objects'; import { checkCustomDashboardsEnabled } from './lib/check_custom_dashboards_enabled'; import { handleRouteErrors } from '../../utils/handle_route_errors'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/update_custom_dashboard.ts b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/update_custom_dashboard.ts index 2634604b9a76a..267734b0905e4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/update_custom_dashboard.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/custom_dashboards/update_custom_dashboard.ts @@ -6,13 +6,13 @@ */ import { createRouteValidationFunction } from '@kbn/io-ts-utils'; -import { InfraCustomDashboard } from '../../../common/custom_dashboards'; +import type { InfraCustomDashboard } from '../../../common/custom_dashboards'; import { InfraSaveCustomDashboardsRequestPayloadRT, InfraSaveCustomDashboardsResponseBodyRT, InfraUpdateCustomDashboardsRequestPathParamsRT, } from '../../../common/http_api/custom_dashboards_api'; -import { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; import { INFRA_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE } from '../../saved_objects'; import { checkCustomDashboardsEnabled } from './lib/check_custom_dashboards_enabled'; import { handleRouteErrors } from '../../utils/handle_route_errors'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_data_stream_types.ts b/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_data_stream_types.ts index d1cd99be31f9f..81126f4c85fc9 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_data_stream_types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_data_stream_types.ts @@ -10,7 +10,7 @@ import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; import { EntityDataStreamType } from '@kbn/observability-shared-plugin/common'; import type { ObservabilityElasticsearchClient } from '@kbn/observability-utils-server/es/client/create_observability_es_client'; import { castArray } from 'lodash'; -import { Logger } from '@kbn/logging'; +import type { Logger } from '@kbn/logging'; import { type InfraMetricsClient } from '../../lib/helpers/get_infra_metrics_client'; import { getHasMetricsData } from './get_has_metrics_data'; import { getLatestEntity } from './get_latest_entity'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_has_metrics_data.ts b/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_has_metrics_data.ts index 58389fde22f08..41f76f5d1aa22 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_has_metrics_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/entities/get_has_metrics_data.ts @@ -6,7 +6,7 @@ */ import { termQuery } from '@kbn/observability-plugin/server'; -import { InfraMetricsClient } from '../../lib/helpers/get_infra_metrics_client'; +import type { InfraMetricsClient } from '../../lib/helpers/get_infra_metrics_client'; export async function getHasMetricsData({ infraMetricsClient, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/entities/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/entities/index.ts index 9c5c5c4527fee..0332946380cd7 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/entities/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/entities/index.ts @@ -11,7 +11,7 @@ import { entityCentricExperience } from '@kbn/observability-plugin/common'; import { createObservabilityEsClient } from '@kbn/observability-utils-server/es/client/create_observability_es_client'; import { BUILT_IN_ENTITY_TYPES } from '@kbn/observability-shared-plugin/common'; import { getInfraMetricsClient } from '../../lib/helpers/get_infra_metrics_client'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { getDataStreamTypes } from './get_data_stream_types'; export const initEntitiesConfigurationRoutes = (libs: InfraBackendLibs) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/helpers/query.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/helpers/query.ts index 570c1499f3b74..c63f1f6b4a28f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/helpers/query.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/helpers/query.ts @@ -8,13 +8,10 @@ import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import { termQuery } from '@kbn/observability-plugin/server'; import { ApmDocumentType, type TimeRangeMetadata } from '@kbn/apm-data-access-plugin/common'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import type { ApmDataAccessServicesWrapper } from '../../../../lib/helpers/get_apm_data_access_client'; -import { - EVENT_MODULE, - METRICSET_MODULE, - SYSTEM_INTEGRATION, -} from '../../../../../common/constants'; +import type { SYSTEM_INTEGRATION } from '../../../../../common/constants'; +import { EVENT_MODULE, METRICSET_MODULE } from '../../../../../common/constants'; import type { InfraAssetMetricType } from '../../../../../common/http_api/infra'; export const getFilterByIntegration = (integration: typeof SYSTEM_INTEGRATION) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_apm_hosts.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_apm_hosts.ts index bb571e6393398..2a09f45f71952 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_apm_hosts.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_apm_hosts.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import type { TimeRangeMetadata } from '@kbn/apm-data-access-plugin/common'; -import { GetHostParameters } from '../types'; +import type { GetHostParameters } from '../types'; export const getApmHostNames = async ({ apmDataAccessServices, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_filtered_hosts.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_filtered_hosts.ts index ef6e6a2c2a040..bbb10a0c70ea4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_filtered_hosts.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_filtered_hosts.ts @@ -6,10 +6,10 @@ */ import { rangeQuery } from '@kbn/observability-plugin/server'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { castArray } from 'lodash'; import { HOST_NAME_FIELD, SYSTEM_INTEGRATION } from '../../../../../common/constants'; -import { GetHostParameters } from '../types'; +import type { GetHostParameters } from '../types'; import { getFilterByIntegration } from '../helpers/query'; export const getFilteredHostNames = async ({ diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts index dbb1a3c2ceb69..48e1328de56bb 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts @@ -13,7 +13,7 @@ import { ALERT_UUID, } from '@kbn/rule-data-utils'; import { HOST_NAME_FIELD, INFRA_ALERT_CONSUMERS } from '../../../../../common/constants'; -import { GetHostParameters } from '../types'; +import type { GetHostParameters } from '../types'; export async function getHostsAlertsCount({ alertsClient, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_count.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_count.ts index 154fd8796520d..8b08021187faa 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_count.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/host/get_hosts_count.ts @@ -7,8 +7,8 @@ import { rangeQuery } from '@kbn/observability-plugin/server'; import type { ApmDataAccessServicesWrapper } from '../../../../lib/helpers/get_apm_data_access_client'; -import { GetInfraAssetCountRequestBodyPayload } from '../../../../../common/http_api'; -import { InfraMetricsClient } from '../../../../lib/helpers/get_infra_metrics_client'; +import type { GetInfraAssetCountRequestBodyPayload } from '../../../../../common/http_api'; +import type { InfraMetricsClient } from '../../../../lib/helpers/get_infra_metrics_client'; import { HOST_NAME_FIELD } from '../../../../../common/constants'; import { assertQueryStructure } from '../utils'; import { getDocumentsFilter } from '../helpers/query'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/types.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/types.ts index 87679f24271d6..aeda606a9e64a 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/types.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { ApmDataAccessServicesWrapper } from '../../../lib/helpers/get_apm_data_access_client'; -import { GetInfraMetricsRequestBodyPayload } from '../../../../common/http_api/infra'; -import { InfraAlertsClient } from '../../../lib/helpers/get_infra_alerts_client'; -import { InfraMetricsClient } from '../../../lib/helpers/get_infra_metrics_client'; +import type { ApmDataAccessServicesWrapper } from '../../../lib/helpers/get_apm_data_access_client'; +import type { GetInfraMetricsRequestBodyPayload } from '../../../../common/http_api/infra'; +import type { InfraAlertsClient } from '../../../lib/helpers/get_infra_alerts_client'; +import type { InfraMetricsClient } from '../../../lib/helpers/get_infra_metrics_client'; export interface GetHostParameters extends GetInfraMetricsRequestBodyPayload { infraMetricsClient: InfraMetricsClient; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/utils.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/utils.ts index 96938f9fc4e47..10e9c0a29e52e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/utils.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra/lib/utils.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import Boom from '@hapi/boom'; interface BoolQuery { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_hosts_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_hosts_anomalies.ts index 7fc99f513144c..8af322e27b5ad 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_hosts_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_hosts_anomalies.ts @@ -7,14 +7,16 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; +import type { + GetMetricsHostsAnomaliesRequestPayload, + Sort, + Pagination, +} from '../../../../common/http_api/infra_ml'; import { INFA_ML_GET_METRICS_HOSTS_ANOMALIES_PATH, getMetricsHostsAnomaliesSuccessReponsePayloadRT, getMetricsHostsAnomaliesRequestPayloadRT, - GetMetricsHostsAnomaliesRequestPayload, - Sort, - Pagination, } from '../../../../common/http_api/infra_ml'; import { assertHasInfraMlPlugins } from '../../../utils/request_context'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_k8s_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_k8s_anomalies.ts index 89c1f07edb64f..047ad752faf7d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_k8s_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/infra_ml/results/metrics_k8s_anomalies.ts @@ -7,14 +7,16 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; +import type { + GetMetricsK8sAnomaliesRequestPayload, + Sort, + Pagination, +} from '../../../../common/http_api/infra_ml'; import { INFA_ML_GET_METRICS_K8S_ANOMALIES_PATH, getMetricsK8sAnomaliesSuccessReponsePayloadRT, getMetricsK8sAnomaliesRequestPayloadRT, - GetMetricsK8sAnomaliesRequestPayload, - Sort, - Pagination, } from '../../../../common/http_api/infra_ml'; import { assertHasInfraMlPlugins } from '../../../utils/request_context'; import { getMetricK8sAnomalies } from '../../../lib/infra_ml'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/index.ts index cdda7250a30e5..c5546ea12b952 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/index.ts @@ -11,7 +11,7 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { throwErrors } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { InventoryMetaRequestRT, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/lib/get_cloud_metadata.ts b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/lib/get_cloud_metadata.ts index c820aa21a6009..25c36a5a08f02 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/lib/get_cloud_metadata.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_metadata/lib/get_cloud_metadata.ts @@ -5,16 +5,16 @@ * 2.0. */ -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { InventoryCloudAccount } from '../../../../common/http_api/inventory_meta_api'; -import { +import type { InventoryCloudAccount } from '../../../../common/http_api/inventory_meta_api'; +import type { InfraMetadataAggregationResponse, InfraMetadataAggregationBucket, } from '../../../lib/adapters/framework'; -import { InfraSourceConfiguration } from '../../../lib/sources'; -import { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; +import type { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; import type { InfraPluginRequestHandlerContext } from '../../../types'; export interface CloudMetaData { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_views/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_views/index.ts index 55cee58a8a464..4d3e154de85f1 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/inventory_views/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/inventory_views/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { initCreateInventoryViewRoute } from './create_inventory_view'; import { initDeleteInventoryViewRoute } from './delete_inventory_view'; import { initFindInventoryViewRoute } from './find_inventory_view'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/ip_to_hostname.ts b/x-pack/solutions/observability/plugins/infra/server/routes/ip_to_hostname.ts index 0f8c00c51b0db..9b4fc44cd2448 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/ip_to_hostname.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/ip_to_hostname.ts @@ -7,7 +7,7 @@ import { first } from 'lodash'; import { schema } from '@kbn/config-schema'; -import { InfraBackendLibs } from '../lib/infra_types'; +import type { InfraBackendLibs } from '../lib/infra_types'; interface HostDoc { _source: { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_alerts/chart_preview_data.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_alerts/chart_preview_data.ts index 389ce37f21d3c..6ddcdd67d7439 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_alerts/chart_preview_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_alerts/chart_preview_data.ts @@ -8,7 +8,7 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { logAlertsV1 } from '../../../common/http_api'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { getChartPreviewData } from '../../lib/alerting/log_threshold/log_threshold_chart_preview'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/id_formats.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/id_formats.ts index 800d43df448d5..e5611ff5b20fc 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/id_formats.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/id_formats.ts @@ -12,7 +12,7 @@ import { getLogAnalysisIdFormatsRequestPayloadRT, getLogAnalysisIdFormatsSuccessResponsePayloadRT, } from '../../../common/http_api/latest'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { isMlPrivilegesError } from '../../lib/log_analysis'; import { resolveIdFormats } from '../../lib/log_analysis/resolve_id_formats'; import { assertHasInfraMlPlugins } from '../../utils/request_context'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_anomalies.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_anomalies.ts index 32b530f5da51c..3e1fc66388d29 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_anomalies.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_anomalies.ts @@ -8,9 +8,9 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { logAnalysisResultsV1 } from '../../../../common/http_api'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; -import { AnomaliesSort, Pagination } from '../../../../common/log_analysis'; +import type { AnomaliesSort, Pagination } from '../../../../common/log_analysis'; import { assertHasInfraMlPlugins } from '../../../utils/request_context'; import { getLogEntryAnomalies } from '../../../lib/log_analysis'; import { isMlPrivilegesError } from '../../../lib/log_analysis/errors'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_examples.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_examples.ts index b40463c0538af..3c596fa985576 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_examples.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/results/log_entry_examples.ts @@ -9,7 +9,7 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { logAnalysisResultsV1 } from '../../../../common/http_api'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; import { getLogEntryExamples } from '../../../lib/log_analysis'; import { isMlPrivilegesError } from '../../../lib/log_analysis/errors'; import { assertHasInfraMlPlugins } from '../../../utils/request_context'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/datasets.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/datasets.ts index b4db339efc7b2..54ea70d46909e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/datasets.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/datasets.ts @@ -9,7 +9,7 @@ import Boom from '@hapi/boom'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; import { logAnalysisValidationV1 } from '../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/indices.ts b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/indices.ts index d541d0b67d59e..39fcc918811f5 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/indices.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis/validation/indices.ts @@ -12,7 +12,7 @@ import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { schema } from '@kbn/config-schema'; import { throwErrors } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../../lib/infra_types'; +import type { InfraBackendLibs } from '../../../lib/infra_types'; import { logAnalysisValidationV1 } from '../../../../common/http_api'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/index.ts index 10b0fe8932a30..f1b98fb0efc53 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/index.ts @@ -12,12 +12,9 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { throwErrors } from '@kbn/io-ts-utils'; -import { - InfraMetadataFeature, - InfraMetadataRequestRT, - InfraMetadataRT, -} from '../../../common/http_api/metadata_api'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraMetadataFeature } from '../../../common/http_api/metadata_api'; +import { InfraMetadataRequestRT, InfraMetadataRT } from '../../../common/http_api/metadata_api'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { getMetricMetadata } from './lib/get_metric_metadata'; import { pickFeatureName } from './lib/pick_feature_name'; import { getCloudMetricsMetadata } from './lib/get_cloud_metric_metadata'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_cloud_metric_metadata.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_cloud_metric_metadata.ts index 126d1485cb702..eecfcd301fbd8 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_cloud_metric_metadata.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_cloud_metric_metadata.ts @@ -6,12 +6,12 @@ */ import type { InfraPluginRequestHandlerContext } from '../../../types'; -import { +import type { InfraMetadataAggregationBucket, InfraMetadataAggregationResponse, } from '../../../lib/adapters/framework'; -import { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; -import { InfraSourceConfiguration } from '../../../lib/sources'; +import type { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; import { CLOUD_METRICS_MODULES } from '../../../lib/constants'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_metric_metadata.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_metric_metadata.ts index ef5afc9f5b20a..5e5580c4b8c2c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_metric_metadata.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_metric_metadata.ts @@ -6,15 +6,15 @@ */ import { get } from 'lodash'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import type { InfraMetricsClient } from '../../../lib/helpers/get_infra_metrics_client'; import type { InfraPluginRequestHandlerContext } from '../../../types'; -import { +import type { InfraMetadataAggregationBucket, InfraMetadataAggregationResponse, } from '../../../lib/adapters/framework'; -import { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; -import { InfraSourceConfiguration } from '../../../lib/sources'; +import type { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; import { getHasDataFromSystemIntegration } from '../../infra/lib/host/get_filtered_hosts'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_node_info.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_node_info.ts index e1de012cc2679..7aa5f82dae793 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_node_info.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_node_info.ts @@ -8,11 +8,11 @@ import { set } from '@kbn/safer-lodash-set'; import { first, startsWith } from 'lodash'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import type { InfraPluginRequestHandlerContext } from '../../../types'; -import { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; -import { InfraSourceConfiguration } from '../../../lib/sources'; -import { InfraMetadataInfo } from '../../../../common/http_api/metadata_api'; +import type { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; +import type { InfraMetadataInfo } from '../../../../common/http_api/metadata_api'; import { getPodNodeName } from './get_pod_node_name'; import { CLOUD_METRICS_MODULES } from '../../../lib/constants'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_pod_node_name.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_pod_node_name.ts index 32b5bf3d3ac07..70e7454fb5ac0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_pod_node_name.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/get_pod_node_name.ts @@ -7,8 +7,8 @@ import { first, get } from 'lodash'; import { findInventoryFields } from '@kbn/metrics-data-access-plugin/common'; -import { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; -import { InfraSourceConfiguration } from '../../../lib/sources'; +import type { KibanaFramework } from '../../../lib/adapters/framework/kibana_framework_adapter'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; import type { InfraPluginRequestHandlerContext } from '../../../types'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/pick_feature_name.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/pick_feature_name.ts index aead124a27435..7d8e4e36e2ef7 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/pick_feature_name.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metadata/lib/pick_feature_name.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraMetadataAggregationBucket } from '../../../lib/adapters/framework'; +import type { InfraMetadataAggregationBucket } from '../../../lib/adapters/framework'; export const pickFeatureName = (buckets: InfraMetadataAggregationBucket[]): string[] => { if (buckets) { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metrics_explorer_views/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metrics_explorer_views/index.ts index ae95dc9c43c26..0452f67cfef74 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metrics_explorer_views/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metrics_explorer_views/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { initCreateMetricsExplorerViewRoute } from './create_metrics_explorer_view'; import { initDeleteMetricsExplorerViewRoute } from './delete_metrics_explorer_view'; import { initFindMetricsExplorerViewRoute } from './find_metrics_explorer_view'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/metrics_sources/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/metrics_sources/index.ts index 77bdee365e3bf..4290db429aead 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/metrics_sources/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/metrics_sources/index.ts @@ -15,17 +15,17 @@ import { getHasDataQueryParamsRT, getHasDataResponseRT, } from '../../../common/metrics_sources/get_has_data'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { hasData } from '../../lib/sources/has_data'; import { createSearchClient } from '../../lib/create_search_client'; import { AnomalyThresholdRangeError, NoSuchRemoteClusterError } from '../../lib/sources/errors'; +import type { MetricsSourceStatus } from '../../../common/metrics_sources'; import { metricsSourceConfigurationResponseRT, - MetricsSourceStatus, partialMetricsSourceConfigurationReqPayloadRT, } from '../../../common/metrics_sources'; -import { InfraSource } from '../../lib/sources'; -import { InfraPluginRequestHandlerContext } from '../../types'; +import type { InfraSource } from '../../lib/sources'; +import type { InfraPluginRequestHandlerContext } from '../../types'; import { getInfraMetricsClient } from '../../lib/helpers/get_infra_metrics_client'; const defaultStatus = { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/node_details/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/node_details/index.ts index 4032104589426..0e82e8fc33b47 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/node_details/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/node_details/index.ts @@ -11,9 +11,9 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { throwErrors } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { UsageCollector } from '../../usage/usage_collector'; -import { InfraMetricsRequestOptions } from '../../lib/adapters/metrics'; +import type { InfraMetricsRequestOptions } from '../../lib/adapters/metrics'; import { NodeDetailsRequestRT, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/overview/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/overview/index.ts index e750275d1c446..0e33c8733b59c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/overview/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/overview/index.ts @@ -6,7 +6,7 @@ */ import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { TopNodesRequestRT } from '../../../common/http_api/overview_api'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { createSearchClient } from '../../lib/create_search_client'; import { queryTopNodes } from './lib/get_top_nodes'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/convert_es_response_to_top_nodes_response.ts b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/convert_es_response_to_top_nodes_response.ts index 3511a3807a466..36192a9c17b8c 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/convert_es_response_to_top_nodes_response.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/convert_es_response_to_top_nodes_response.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { TopNodesResponse } from '../../../../common/http_api/overview_api'; -import { InfraDatabaseSearchResponse } from '../../../lib/adapters/framework'; +import type { TopNodesResponse } from '../../../../common/http_api/overview_api'; +import type { InfraDatabaseSearchResponse } from '../../../lib/adapters/framework'; import { getMetadataFromNodeBucket } from './get_matadata_from_node_bucket'; -import { ESResponseForTopNodes } from './types'; +import type { ESResponseForTopNodes } from './types'; export const convertESResponseToTopNodesResponse = ( response: InfraDatabaseSearchResponse<{}, ESResponseForTopNodes> diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/create_top_nodes_query.ts b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/create_top_nodes_query.ts index 74164dd975093..f0ad0a8a711f0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/create_top_nodes_query.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/create_top_nodes_query.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { MetricsSourceConfiguration } from '../../../../common/metrics_sources'; -import { TopNodesRequest } from '../../../../common/http_api/overview_api'; +import type { MetricsSourceConfiguration } from '../../../../common/metrics_sources'; +import type { TopNodesRequest } from '../../../../common/http_api/overview_api'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; export const createTopNodesQuery = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_matadata_from_node_bucket.ts b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_matadata_from_node_bucket.ts index 2f1a2a4cded8d..e58ccac42d3ca 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_matadata_from_node_bucket.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_matadata_from_node_bucket.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { NodeBucket } from './types'; +import type { NodeBucket } from './types'; interface Metadata { name: string | null; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_top_nodes.ts b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_top_nodes.ts index 4d46479ac7a54..cc323b7c14455 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_top_nodes.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/overview/lib/get_top_nodes.ts @@ -4,12 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TopNodesRequest } from '../../../../common/http_api/overview_api'; -import { MetricsSourceConfiguration } from '../../../../common/metrics_sources'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { TopNodesRequest } from '../../../../common/http_api/overview_api'; +import type { MetricsSourceConfiguration } from '../../../../common/metrics_sources'; +import type { ESSearchClient } from '../../../lib/metrics/types'; import { convertESResponseToTopNodesResponse } from './convert_es_response_to_top_nodes_response'; import { createTopNodesQuery } from './create_top_nodes_query'; -import { ESResponseForTopNodes } from './types'; +import type { ESResponseForTopNodes } from './types'; export const queryTopNodes = async ( options: TopNodesRequest, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/process_list/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/process_list/index.ts index 666ade8a4b7b6..076044ebb5489 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/process_list/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/process_list/index.ts @@ -11,7 +11,7 @@ import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { schema } from '@kbn/config-schema'; import { throwErrors } from '@kbn/io-ts-utils'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { createSearchClient } from '../../lib/create_search_client'; import { getProcessList } from '../../lib/host_details/process_list'; import { getProcessListChart } from '../../lib/host_details/process_list_chart'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/services/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/services/index.ts index 9673b31788487..0b171e6bdc00e 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/services/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/services/index.ts @@ -5,12 +5,12 @@ * 2.0. */ +import type { GetServicesRequestQuery } from '../../../common/http_api/host_details'; import { - GetServicesRequestQuery, GetServicesRequestQueryRT, ServicesAPIResponseRT, } from '../../../common/http_api/host_details'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { validateStringAssetFilters } from './lib/utils'; import { buildRouteValidationWithExcess } from '../../utils/route_validation'; import { getApmDataAccessClient } from '../../lib/helpers/get_apm_data_access_client'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/services/lib/utils.ts b/x-pack/solutions/observability/plugins/infra/server/routes/services/lib/utils.ts index c3ef240a53a7d..72281a80f8e16 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/services/lib/utils.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/services/lib/utils.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { RouteValidationError, RouteValidationResultFactory } from '@kbn/core/server'; +import type { RouteValidationError, RouteValidationResultFactory } from '@kbn/core/server'; type ValidateStringAssetFiltersReturn = [{ error: RouteValidationError }] | [null, any]; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/index.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/index.ts index 4398e7f47f281..a6f7f998572b4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/index.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/index.ts @@ -8,12 +8,12 @@ import Boom from '@hapi/boom'; import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import { SNAPSHOT_API_MAX_METRICS } from '../../../common/constants'; -import { InfraBackendLibs } from '../../lib/infra_types'; +import type { InfraBackendLibs } from '../../lib/infra_types'; import { UsageCollector } from '../../usage/usage_collector'; import { SnapshotRequestRT, SnapshotNodeResponseRT } from '../../../common/http_api/snapshot_api'; import { createSearchClient } from '../../lib/create_search_client'; import { getNodes } from './lib/get_nodes'; -import { LogQueryFields } from '../../lib/metrics/types'; +import type { LogQueryFields } from '../../lib/metrics/types'; export const initSnapshotRoute = (libs: InfraBackendLibs) => { const validateBody = createRouteValidationFunction(SnapshotRequestRT); diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/apply_metadata_to_last_path.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/apply_metadata_to_last_path.ts index 3b3e852a3101a..e21ca4a7677ff 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/apply_metadata_to_last_path.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/apply_metadata_to_last_path.ts @@ -11,7 +11,7 @@ import { type MetricsAPISeries, findInventoryFields, } from '@kbn/metrics-data-access-plugin/common'; -import { SnapshotRequest, SnapshotNodePath, SnapshotNode } from '../../../../common/http_api'; +import type { SnapshotRequest, SnapshotNodePath, SnapshotNode } from '../../../../common/http_api'; import { META_KEY } from './constants'; export const isIPv4 = (subject: string) => /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/.test(subject); diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/copy_missing_metrics.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/copy_missing_metrics.ts index 60b290c983ecb..2e3ff062ab803 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/copy_missing_metrics.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/copy_missing_metrics.ts @@ -6,7 +6,7 @@ */ import { memoize, last, first } from 'lodash'; -import { SnapshotNode, SnapshotNodeResponse } from '../../../../common/http_api'; +import type { SnapshotNode, SnapshotNodeResponse } from '../../../../common/http_api'; const createMissingMetricFinder = (nodes: SnapshotNode[]) => memoize((id: string) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/create_timerange_with_interval.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/create_timerange_with_interval.ts index cff44454d6e96..65f648d5f1d46 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/create_timerange_with_interval.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/create_timerange_with_interval.ts @@ -11,9 +11,10 @@ import { type MetricsAPITimerange, isBasicMetricAgg, } from '@kbn/metrics-data-access-plugin/common'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { ESSearchClient } from '../../../lib/metrics/types'; import { calculateMetricInterval } from '../../../utils/calculate_metric_interval'; -import { getMetricsAggregations, InfraSnapshotRequestOptions } from './get_metrics_aggregations'; +import type { InfraSnapshotRequestOptions } from './get_metrics_aggregations'; +import { getMetricsAggregations } from './get_metrics_aggregations'; import { getDatasetForField } from './get_dataset_for_field'; const DEFAULT_LOOKBACK_SIZE = 5; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_dataset_for_field.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_dataset_for_field.ts index 97154a7361c96..42a059b447863 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_dataset_for_field.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_dataset_for_field.ts @@ -6,7 +6,7 @@ */ import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { ESSearchClient } from '../../../lib/metrics/types'; interface EventDatasetHit { _source: { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_metrics_aggregations.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_metrics_aggregations.ts index 65c5c35dea620..dce1d794496d2 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_metrics_aggregations.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_metrics_aggregations.ts @@ -6,19 +6,16 @@ */ import { i18n } from '@kbn/i18n'; -import { JsonObject } from '@kbn/utility-types'; +import type { JsonObject } from '@kbn/utility-types'; import type { InventoryItemType, MetricsUIAggregation, } from '@kbn/metrics-data-access-plugin/common'; import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; import { networkTraffic } from '@kbn/metrics-data-access-plugin/common'; -import { - SnapshotMetricInput, - SnapshotCustomMetricInputRT, - SnapshotRequest, -} from '../../../../common/http_api'; -import { InfraSourceConfiguration } from '../../../lib/sources'; +import type { SnapshotMetricInput, SnapshotRequest } from '../../../../common/http_api'; +import { SnapshotCustomMetricInputRT } from '../../../../common/http_api'; +import type { InfraSourceConfiguration } from '../../../lib/sources'; export interface InfraSnapshotRequestOptions extends Omit { diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_nodes.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_nodes.ts index 171639c115a79..1db86fca582c5 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_nodes.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/get_nodes.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SnapshotRequest } from '../../../../common/http_api'; -import { ESSearchClient, LogQueryFields } from '../../../lib/metrics/types'; -import { InfraSource } from '../../../lib/sources'; +import type { SnapshotRequest } from '../../../../common/http_api'; +import type { ESSearchClient, LogQueryFields } from '../../../lib/metrics/types'; +import type { InfraSource } from '../../../lib/sources'; import { transformRequestToMetricsAPIRequest } from './transform_request_to_metrics_api_request'; import { queryAllData } from './query_all_data'; import { transformMetricsApiResponseToSnapshotResponse } from './transform_metrics_ui_response'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/query_all_data.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/query_all_data.ts index 91482563da483..5bf2c84cfb3ee 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/query_all_data.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/query_all_data.ts @@ -6,7 +6,7 @@ */ import type { MetricsAPIResponse, MetricsAPIRequest } from '@kbn/metrics-data-access-plugin/common'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { ESSearchClient } from '../../../lib/metrics/types'; import { query } from '../../../lib/metrics'; const handleResponse = diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_metrics_ui_response.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_metrics_ui_response.ts index dc9161b06fde3..3e042e80b41c8 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_metrics_ui_response.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_metrics_ui_response.ts @@ -13,7 +13,7 @@ import type { MetricsAPISeries, SnapshotMetricType, } from '@kbn/metrics-data-access-plugin/common'; -import { +import type { SnapshotNodeResponse, SnapshotRequest, SnapshotNode, diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.test.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.test.ts index 5a43c94c09bdb..315bb9dfacd27 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.test.ts @@ -6,8 +6,8 @@ */ import { transformRequestToMetricsAPIRequest } from './transform_request_to_metrics_api_request'; -import { ESSearchClient } from '../../../lib/metrics/types'; -import { InfraSource } from '../../../lib/sources'; +import type { ESSearchClient } from '../../../lib/metrics/types'; +import type { InfraSource } from '../../../lib/sources'; import type { SnapshotRequest } from '../../../../common/http_api'; import type { MetricsAPIRequest } from '@kbn/metrics-data-access-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.ts b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.ts index 517b97ee809a3..41e7c31abab81 100644 --- a/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.ts +++ b/x-pack/solutions/observability/plugins/infra/server/routes/snapshot/lib/transform_request_to_metrics_api_request.ts @@ -12,14 +12,14 @@ import { findInventoryModel, } from '@kbn/metrics-data-access-plugin/common'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { SnapshotRequest } from '../../../../common/http_api'; -import { ESSearchClient } from '../../../lib/metrics/types'; -import { InfraSource } from '../../../lib/sources'; +import type { SnapshotRequest } from '../../../../common/http_api'; +import type { ESSearchClient } from '../../../lib/metrics/types'; +import type { InfraSource } from '../../../lib/sources'; import { createTimeRangeWithInterval } from './create_timerange_with_interval'; import { parseFilterQuery } from '../../../utils/serialized_query'; import { transformSnapshotMetricsToMetricsAPIMetrics } from './transform_snapshot_metrics_to_metrics_api_metrics'; import { META_KEY } from './constants'; -import { SourceOverrides } from './get_nodes'; +import type { SourceOverrides } from './get_nodes'; export const transformRequestToMetricsAPIRequest = async ({ client, diff --git a/x-pack/solutions/observability/plugins/infra/server/saved_objects/custom_dashboards/custom_dashboards_saved_object.ts b/x-pack/solutions/observability/plugins/infra/server/saved_objects/custom_dashboards/custom_dashboards_saved_object.ts index 76220a9463121..e5df79b741d93 100644 --- a/x-pack/solutions/observability/plugins/infra/server/saved_objects/custom_dashboards/custom_dashboards_saved_object.ts +++ b/x-pack/solutions/observability/plugins/infra/server/saved_objects/custom_dashboards/custom_dashboards_saved_object.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SavedObjectsFieldMapping, SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsFieldMapping, SavedObjectsType } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { schema } from '@kbn/config-schema'; -import { InfraCustomDashboard } from '../../../common/custom_dashboards'; +import type { InfraCustomDashboard } from '../../../common/custom_dashboards'; export const INFRA_CUSTOM_DASHBOARDS_SAVED_OBJECT_TYPE = 'infra-custom-dashboards'; diff --git a/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.test.ts b/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.test.ts index 674aabbd9d058..eeb2c17cb8bbc 100644 --- a/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.test.ts @@ -5,12 +5,9 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; -import { - extractSavedObjectReferences, - resolveSavedObjectReferences, - SavedObjectAttributesWithReferences, -} from './references'; +import type { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectAttributesWithReferences } from './references'; +import { extractSavedObjectReferences, resolveSavedObjectReferences } from './references'; it('extractSavedObjectReferences extracts references using the given extractors', () => { const { attributes, references } = extractSavedObjectReferences([ diff --git a/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.ts b/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.ts index 13b64ab6e6e73..75c155b4a21ae 100644 --- a/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.ts +++ b/x-pack/solutions/observability/plugins/infra/server/saved_objects/references.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { SavedObject, SavedObjectReference } from '@kbn/core/server'; +import type { SavedObject, SavedObjectReference } from '@kbn/core/server'; export type SavedObjectAttributesWithReferences = Pick< SavedObject, diff --git a/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts b/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts index 89c5b17d3c402..abfad2d4b740f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts @@ -6,16 +6,16 @@ */ import { loggerMock } from '@kbn/logging-mocks'; -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { InventoryViewAttributes } from '../../../common/inventory_views'; +import type { InventoryViewAttributes } from '../../../common/inventory_views'; -import { InfraSource } from '../../lib/sources'; +import type { InfraSource } from '../../lib/sources'; import { createInfraSourcesMock } from '../../lib/sources/mocks'; import { inventoryViewSavedObjectName } from '../../saved_objects/inventory_view'; import { InventoryViewsClient } from './inventory_views_client'; import { createInventoryViewMock } from '../../../common/inventory_views/inventory_view.mock'; -import { UpdateInventoryViewAttributesRequestPayload } from '../../../common/http_api/latest'; +import type { UpdateInventoryViewAttributesRequestPayload } from '../../../common/http_api/latest'; describe('InventoryViewsClient class', () => { const mockFindInventoryList = (savedObjectsClient: jest.Mocked) => { diff --git a/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.ts b/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.ts index 34df2d68d7787..b1369262d26e3 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/inventory_views/inventory_views_client.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { +import type { Logger, SavedObject, SavedObjectsClientContract, SavedObjectsUpdateResponse, - SavedObjectsUtils, } from '@kbn/core/server'; +import { SavedObjectsUtils } from '@kbn/core/server'; import Boom from '@hapi/boom'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { diff --git a/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.test.ts b/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.test.ts index 6b8de7a724f16..fc2749ee4472f 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.test.ts @@ -6,16 +6,16 @@ */ import { loggerMock } from '@kbn/logging-mocks'; -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import { savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { MetricsExplorerViewAttributes } from '../../../common/metrics_explorer_views'; +import type { MetricsExplorerViewAttributes } from '../../../common/metrics_explorer_views'; -import { InfraSource } from '../../lib/sources'; +import type { InfraSource } from '../../lib/sources'; import { createInfraSourcesMock } from '../../lib/sources/mocks'; import { metricsExplorerViewSavedObjectName } from '../../saved_objects/metrics_explorer_view'; import { MetricsExplorerViewsClient } from './metrics_explorer_views_client'; import { createMetricsExplorerViewMock } from '../../../common/metrics_explorer_views/metrics_explorer_view.mock'; -import { UpdateMetricsExplorerViewAttributesRequestPayload } from '../../../common/http_api/latest'; +import type { UpdateMetricsExplorerViewAttributesRequestPayload } from '../../../common/http_api/latest'; describe('MetricsExplorerViewsClient class', () => { const mockFindMetricsExplorerList = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.ts b/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.ts index f2919ff7cd0a4..a64f928c1deb0 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/metrics_explorer_views/metrics_explorer_views_client.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { +import type { Logger, SavedObject, SavedObjectsClientContract, SavedObjectsUpdateResponse, - SavedObjectsUtils, } from '@kbn/core/server'; +import { SavedObjectsUtils } from '@kbn/core/server'; import Boom from '@hapi/boom'; import { decodeOrThrow } from '@kbn/io-ts-utils'; import { diff --git a/x-pack/solutions/observability/plugins/infra/server/services/rules/rule_data_client.ts b/x-pack/solutions/observability/plugins/infra/server/services/rules/rule_data_client.ts index ebbe3139167c3..302d0b0adfa21 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/rules/rule_data_client.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/rules/rule_data_client.ts @@ -5,14 +5,15 @@ * 2.0. */ -import { CoreSetup, Logger } from '@kbn/core/server'; +import type { CoreSetup, Logger } from '@kbn/core/server'; import { legacyExperimentalFieldMap } from '@kbn/alerts-as-data-utils'; -import { Dataset, RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; +import type { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; +import { Dataset } from '@kbn/rule-registry-plugin/server'; import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; import { ECS_COMPONENT_TEMPLATE_NAME } from '@kbn/alerting-plugin/server'; import type { InfraFeatureId } from '../../../common/constants'; -import { RuleRegistrationContext, RulesServiceStartDeps } from './types'; +import type { RuleRegistrationContext, RulesServiceStartDeps } from './types'; export const createRuleDataClient = ({ ownerFeatureId, diff --git a/x-pack/solutions/observability/plugins/infra/server/services/rules/rules_service.ts b/x-pack/solutions/observability/plugins/infra/server/services/rules/rules_service.ts index 99e7c57d857b5..83a61af330a51 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/rules/rules_service.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/rules/rules_service.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { CoreSetup, Logger } from '@kbn/core/server'; -import { InfraFeatureId } from '../../../common/constants'; +import type { CoreSetup, Logger } from '@kbn/core/server'; +import type { InfraFeatureId } from '../../../common/constants'; import { createRuleDataClient } from './rule_data_client'; -import { +import type { RuleRegistrationContext, RulesServiceSetup, RulesServiceSetupDeps, diff --git a/x-pack/solutions/observability/plugins/infra/server/services/rules/types.ts b/x-pack/solutions/observability/plugins/infra/server/services/rules/types.ts index ee2d5967b081b..6356e92994633 100644 --- a/x-pack/solutions/observability/plugins/infra/server/services/rules/types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/services/rules/types.ts @@ -6,7 +6,10 @@ */ import type { AlertingServerSetup } from '@kbn/alerting-plugin/server'; -import { IRuleDataClient, RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; +import type { + IRuleDataClient, + RuleRegistryPluginSetupContract, +} from '@kbn/rule-registry-plugin/server'; export interface RulesServiceSetupDeps { alerting: AlertingServerSetup; ruleRegistry: RuleRegistryPluginSetupContract; diff --git a/x-pack/solutions/observability/plugins/infra/server/types.ts b/x-pack/solutions/observability/plugins/infra/server/types.ts index 3f5f14c807d40..5e643af3974d4 100644 --- a/x-pack/solutions/observability/plugins/infra/server/types.ts +++ b/x-pack/solutions/observability/plugins/infra/server/types.ts @@ -14,9 +14,12 @@ import type { import type { SearchRequestHandlerContext } from '@kbn/data-plugin/server'; import type { MlPluginSetup } from '@kbn/ml-plugin/server'; import type { EntityManagerServerPluginStart } from '@kbn/entityManager-plugin/server'; -import { InfraServerPluginStartDeps } from './lib/adapters/framework'; -import { InventoryViewsServiceSetup, InventoryViewsServiceStart } from './services/inventory_views'; -import { +import type { InfraServerPluginStartDeps } from './lib/adapters/framework'; +import type { + InventoryViewsServiceSetup, + InventoryViewsServiceStart, +} from './services/inventory_views'; +import type { MetricsExplorerViewsServiceSetup, MetricsExplorerViewsServiceStart, } from './services/metrics_explorer_views'; diff --git a/x-pack/solutions/observability/plugins/infra/server/usage/usage_collector.ts b/x-pack/solutions/observability/plugins/infra/server/usage/usage_collector.ts index aada031576717..97b39ef365570 100644 --- a/x-pack/solutions/observability/plugins/infra/server/usage/usage_collector.ts +++ b/x-pack/solutions/observability/plugins/infra/server/usage/usage_collector.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; interface InfraopsSum { infraopsHosts: number; diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/calculate_metric_interval.ts b/x-pack/solutions/observability/plugins/infra/server/utils/calculate_metric_interval.ts index 24819b859f959..fbce4ecc117b2 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/calculate_metric_interval.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/calculate_metric_interval.ts @@ -7,9 +7,9 @@ import { findInventoryModel } from '@kbn/metrics-data-access-plugin/common'; // import { KibanaFramework } from '../lib/adapters/framework/kibana_framework_adapter'; -import { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; +import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; import { TIMESTAMP_FIELD } from '../../common/constants'; -import { ESSearchClient } from '../lib/metrics/types'; +import type { ESSearchClient } from '../lib/metrics/types'; interface Options { indexPattern: string; diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/get_original_action_group.ts b/x-pack/solutions/observability/plugins/infra/server/utils/get_original_action_group.ts index 8b70ad23b8e1e..0bee2f8994f37 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/get_original_action_group.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/get_original_action_group.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { Alert } from '@kbn/alerts-as-data-utils'; +import type { Alert } from '@kbn/alerts-as-data-utils'; import { ALERT_ACTION_GROUP } from '@kbn/rule-data-utils'; -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; -import { ParsedExperimentalFields } from '@kbn/rule-registry-plugin/common/parse_experimental_fields'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; +import type { ParsedExperimentalFields } from '@kbn/rule-registry-plugin/common/parse_experimental_fields'; export const getOriginalActionGroup = < T extends Alert | (ParsedTechnicalFields & ParsedExperimentalFields) diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.test.ts b/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.test.ts index 168a208f15e60..bc057d71a53e9 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.test.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InfraSource } from '../lib/sources'; +import type { InfraSource } from '../lib/sources'; import { getAttributesFromSourceConfiguration } from './map_source_to_log_view'; describe('getAttributesFromSourceConfiguration function', () => { diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.ts b/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.ts index 5dd5d021ccd6a..367f919713c4d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/map_source_to_log_view.ts @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { LogIndexReference, LogView, LogViewAttributes } from '@kbn/logs-shared-plugin/common'; -import { LogIndexReference as SourceConfigurationLogIndexReference } from '../../common/source_configuration/source_configuration'; -import { InfraSource } from '../lib/sources'; +import type { LogIndexReference, LogView, LogViewAttributes } from '@kbn/logs-shared-plugin/common'; +import type { LogIndexReference as SourceConfigurationLogIndexReference } from '../../common/source_configuration/source_configuration'; +import type { InfraSource } from '../lib/sources'; export const mapSourceToLogView = (sourceConfiguration: InfraSource): LogView => { return { diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/request_context.ts b/x-pack/solutions/observability/plugins/infra/server/utils/request_context.ts index f0546c8843990..1076f9297813d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/request_context.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/request_context.ts @@ -7,7 +7,7 @@ /* eslint-disable max-classes-per-file */ -import { InfraRequestHandlerContext } from '../types'; +import type { InfraRequestHandlerContext } from '../types'; export class MissingContextValuesError extends Error { constructor(message?: string) { diff --git a/x-pack/solutions/observability/plugins/infra/server/utils/serialized_query.ts b/x-pack/solutions/observability/plugins/infra/server/utils/serialized_query.ts index b3b2569528aea..1efa1d0fd315d 100644 --- a/x-pack/solutions/observability/plugins/infra/server/utils/serialized_query.ts +++ b/x-pack/solutions/observability/plugins/infra/server/utils/serialized_query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { JsonObject } from '@kbn/utility-types'; +import type { JsonObject } from '@kbn/utility-types'; export const parseFilterQuery = ( filterQuery: string | null | undefined diff --git a/x-pack/solutions/observability/plugins/inventory/.storybook/get_mock_inventory_context.tsx b/x-pack/solutions/observability/plugins/inventory/.storybook/get_mock_inventory_context.tsx index 0188ed3143034..c9d95fc346d74 100644 --- a/x-pack/solutions/observability/plugins/inventory/.storybook/get_mock_inventory_context.tsx +++ b/x-pack/solutions/observability/plugins/inventory/.storybook/get_mock_inventory_context.tsx @@ -17,7 +17,7 @@ import type { SpacesPluginStart } from '@kbn/spaces-plugin/public'; import type { HttpStart } from '@kbn/core-http-browser'; import { action } from '@storybook/addon-actions'; import type { InventoryKibanaContext } from '../public/hooks/use_kibana'; -import { ITelemetryClient } from '../public/services/telemetry/types'; +import type { ITelemetryClient } from '../public/services/telemetry/types'; export function getMockInventoryContext(): InventoryKibanaContext { const coreStart = coreMock.createStart(); diff --git a/x-pack/solutions/observability/plugins/inventory/.storybook/storybook_decorator.tsx b/x-pack/solutions/observability/plugins/inventory/.storybook/storybook_decorator.tsx index 8c98289608d92..41ffc85e05c1b 100644 --- a/x-pack/solutions/observability/plugins/inventory/.storybook/storybook_decorator.tsx +++ b/x-pack/solutions/observability/plugins/inventory/.storybook/storybook_decorator.tsx @@ -5,7 +5,7 @@ * 2.0. */ import React, { useMemo } from 'react'; -import { DecoratorFn } from '@storybook/react'; +import type { DecoratorFn } from '@storybook/react'; import { InventoryContextProvider } from '../public/context/inventory_context_provider'; import { getMockInventoryContext } from './get_mock_inventory_context'; diff --git a/x-pack/solutions/observability/plugins/inventory/e2e/cypress_test_runner.ts b/x-pack/solutions/observability/plugins/inventory/e2e/cypress_test_runner.ts index 59db9d3704eef..f7a013e38f5f4 100644 --- a/x-pack/solutions/observability/plugins/inventory/e2e/cypress_test_runner.ts +++ b/x-pack/solutions/observability/plugins/inventory/e2e/cypress_test_runner.ts @@ -14,7 +14,7 @@ import { import cypress from 'cypress'; import path from 'path'; import Url from 'url'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; export async function cypressTestRunner({ getService }: FtrProviderContext) { const config = getService('config'); diff --git a/x-pack/solutions/observability/plugins/inventory/e2e/ftr_config.ts b/x-pack/solutions/observability/plugins/inventory/e2e/ftr_config.ts index 3b5cf000e5772..8dacc2305c52b 100644 --- a/x-pack/solutions/observability/plugins/inventory/e2e/ftr_config.ts +++ b/x-pack/solutions/observability/plugins/inventory/e2e/ftr_config.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import type { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; import { commonFunctionalServices } from '@kbn/ftr-common-functional-services'; import { commonFunctionalUIServices } from '@kbn/ftr-common-functional-ui-services'; import { cypressTestRunner } from './cypress_test_runner'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; async function ftrConfig({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( diff --git a/x-pack/solutions/observability/plugins/inventory/e2e/ftr_provider_context.d.ts b/x-pack/solutions/observability/plugins/inventory/e2e/ftr_provider_context.d.ts index b87f35adcccf2..30a5f1fe518da 100644 --- a/x-pack/solutions/observability/plugins/inventory/e2e/ftr_provider_context.d.ts +++ b/x-pack/solutions/observability/plugins/inventory/e2e/ftr_provider_context.d.ts @@ -5,6 +5,6 @@ * 2.0. */ -import { GenericFtrProviderContext } from '@kbn/test'; +import type { GenericFtrProviderContext } from '@kbn/test'; export type FtrProviderContext = GenericFtrProviderContext<{}, {}>; diff --git a/x-pack/solutions/observability/plugins/inventory/public/application.tsx b/x-pack/solutions/observability/plugins/inventory/public/application.tsx index 53616a27de9e7..b459432872553 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/application.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/application.tsx @@ -9,9 +9,9 @@ import ReactDOM from 'react-dom'; import { type AppMountParameters, type CoreStart } from '@kbn/core/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import type { InventoryStartDependencies } from './types'; -import { InventoryServices } from './services/types'; +import type { InventoryServices } from './services/types'; import { AppRoot } from './components/app_root'; -import { KibanaEnvironment } from './hooks/use_kibana'; +import type { KibanaEnvironment } from './hooks/use_kibana'; export const renderApp = (props: { coreStart: CoreStart; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/app_root/header_action_menu/add_data_action_menu.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/app_root/header_action_menu/add_data_action_menu.tsx index cec6188a1553f..9388e1556a2fe 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/app_root/header_action_menu/add_data_action_menu.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/app_root/header_action_menu/add_data_action_menu.tsx @@ -6,19 +6,17 @@ */ import React, { useState } from 'react'; +import type { EuiContextMenuPanelDescriptor } from '@elastic/eui'; import { EuiContextMenu, - EuiContextMenuPanelDescriptor, EuiFlexGroup, EuiFlexItem, EuiHeaderLink, EuiIcon, EuiPopover, } from '@elastic/eui'; -import { - OBSERVABILITY_ONBOARDING_LOCATOR, - ObservabilityOnboardingLocatorParams, -} from '@kbn/deeplinks-observability'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; import { useKibana } from '../../../hooks/use_kibana'; import type { InventoryAddDataParams } from '../../../services/telemetry/types'; import { diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/app_root/index.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/app_root/index.tsx index 52f46268da2ef..b7b04e4ad9e40 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/app_root/index.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/app_root/index.tsx @@ -12,11 +12,11 @@ import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app'; import { RouteRenderer, RouterProvider } from '@kbn/typed-react-router-config'; import React from 'react'; import { InventoryContextProvider } from '../../context/inventory_context_provider'; -import { KibanaEnvironment } from '../../hooks/use_kibana'; +import type { KibanaEnvironment } from '../../hooks/use_kibana'; import { UnifiedSearchProvider } from '../../hooks/use_unified_search_context'; import { inventoryRouter } from '../../routes/config'; -import { InventoryServices } from '../../services/types'; -import { InventoryStartDependencies } from '../../types'; +import type { InventoryServices } from '../../services/types'; +import type { InventoryStartDependencies } from '../../types'; import { HeaderActionMenuItems } from './header_action_menu'; export function AppRoot({ diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/empty_states/empty_state.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/empty_states/empty_state.tsx index 587812aa6c86e..ecfd23f0c6725 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/empty_states/empty_state.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/empty_states/empty_state.tsx @@ -24,7 +24,7 @@ import { dashboardsLight, dashboardsDark } from '@kbn/shared-svg'; import useLocalStorage from 'react-use/lib/useLocalStorage'; import { AddData, AssociateServiceLogs } from '../shared/add_data_buttons/buttons'; import { useKibana } from '../../hooks/use_kibana'; -import { InventoryAddDataParams } from '../../services/telemetry/types'; +import type { InventoryAddDataParams } from '../../services/telemetry/types'; export function EmptyState() { const { services } = useKibana(); diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/entities_grid.stories.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/entities_grid.stories.tsx index b5e9287a836dd..a20d6e93027fc 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/entities_grid.stories.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/entities_grid.stories.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { EuiButton, EuiDataGridSorting, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { Meta, Story } from '@storybook/react'; +import type { EuiDataGridSorting } from '@elastic/eui'; +import { EuiButton, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { Meta, Story } from '@storybook/react'; import { orderBy } from 'lodash'; import React, { useMemo, useState } from 'react'; import { ENTITY_LAST_SEEN } from '@kbn/observability-shared-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/grid_columns.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/grid_columns.tsx index 867425b9e0aed..da9da2f1cf89c 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/grid_columns.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/grid_columns.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { EuiButtonIcon, EuiDataGridColumn, EuiToolTip } from '@elastic/eui'; +import type { EuiDataGridColumn } from '@elastic/eui'; +import { EuiButtonIcon, EuiToolTip } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/index.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/index.tsx index b26676494833e..bf97d5b4f1c38 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/index.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/entities_grid/index.tsx @@ -4,19 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiDataGrid, - EuiDataGridCellValueElementProps, - EuiDataGridSorting, - EuiLoadingSpinner, - EuiText, -} from '@elastic/eui'; +import type { EuiDataGridCellValueElementProps, EuiDataGridSorting } from '@elastic/eui'; +import { EuiDataGrid, EuiLoadingSpinner, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { FormattedDate, FormattedMessage, FormattedTime } from '@kbn/i18n-react'; import { last } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; import { ENTITY_TYPE } from '@kbn/observability-shared-plugin/common'; -import { EntityColumnIds, InventoryEntity } from '../../../common/entities'; +import type { EntityColumnIds, InventoryEntity } from '../../../common/entities'; import { BadgeFilterWithPopover } from '../badge_filter_with_popover'; import { getColumns } from './grid_columns'; import { AlertsBadge } from '../alerts_badge/alerts_badge'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/grouped_entities_grid.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/grouped_entities_grid.tsx index 5dde32cbb4aac..c2f280cb05912 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/grouped_entities_grid.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/grouped_entities_grid.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiDataGridSorting } from '@elastic/eui'; +import type { EuiDataGridSorting } from '@elastic/eui'; import React from 'react'; import useEffectOnce from 'react-use/lib/useEffectOnce'; import { type EntityColumnIds } from '../../../common/entities'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/mock/inventory_component_wrapper_mock.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/mock/inventory_component_wrapper_mock.tsx index 08c8e93aadda8..c3f00bc9c4beb 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/mock/inventory_component_wrapper_mock.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/entity_group_accordion/mock/inventory_component_wrapper_mock.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { createMemoryHistory } from 'history'; import { RouterProvider } from '@kbn/typed-react-router-config'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/search_bar/entity_types_multi_select.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/search_bar/entity_types_multi_select.tsx index 0b4853e82a474..1245e25c3d35b 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/search_bar/entity_types_multi_select.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/search_bar/entity_types_multi_select.tsx @@ -4,13 +4,13 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { EuiSelectableOption } from '@elastic/eui'; import { EuiFilterButton, EuiFilterGroup, EuiPopover, EuiPopoverTitle, EuiSelectable, - EuiSelectableOption, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useMemo, useState } from 'react'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/components/shared/add_data_buttons/buttons.tsx b/x-pack/solutions/observability/plugins/inventory/public/components/shared/add_data_buttons/buttons.tsx index 90f8cdbba0946..dc20cd1968e7b 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/components/shared/add_data_buttons/buttons.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/components/shared/add_data_buttons/buttons.tsx @@ -9,10 +9,8 @@ /* eslint-disable @elastic/eui/href-or-on-click */ import React from 'react'; -import { - OBSERVABILITY_ONBOARDING_LOCATOR, - ObservabilityOnboardingLocatorParams, -} from '@kbn/deeplinks-observability'; +import type { ObservabilityOnboardingLocatorParams } from '@kbn/deeplinks-observability'; +import { OBSERVABILITY_ONBOARDING_LOCATOR } from '@kbn/deeplinks-observability'; import { EuiButton } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { useKibana } from '../../../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/context/inventory_search_bar_context_provider/index.tsx b/x-pack/solutions/observability/plugins/inventory/public/context/inventory_search_bar_context_provider/index.tsx index d43cba80dd177..1f6ab96d6cb40 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/context/inventory_search_bar_context_provider/index.tsx +++ b/x-pack/solutions/observability/plugins/inventory/public/context/inventory_search_bar_context_provider/index.tsx @@ -6,7 +6,7 @@ */ import React, { createContext, useContext, type ReactChild } from 'react'; import { Subject } from 'rxjs'; -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { ENTITIES_LATEST_ALIAS } from '../../../common/entities'; import { useAdHocDataView } from '../../hooks/use_adhoc_data_view'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_adhoc_data_view.ts b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_adhoc_data_view.ts index d648449f6d0ab..dda2921490805 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_adhoc_data_view.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_adhoc_data_view.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { DataView } from '@kbn/data-views-plugin/common'; +import type { DataView } from '@kbn/data-views-plugin/common'; import { i18n } from '@kbn/i18n'; import { useEffect, useState } from 'react'; import { useKibana } from './use_kibana'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_abortable_async.ts b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_abortable_async.ts index 1db3b512bbdd6..75bd490188e13 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_abortable_async.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_abortable_async.ts @@ -6,7 +6,7 @@ */ import { useAbortableAsync } from '@kbn/observability-utils-browser/hooks/use_abortable_async'; import { i18n } from '@kbn/i18n'; -import { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; +import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; import { useKibana } from './use_kibana'; const getDetailsFromErrorResponse = (error: IHttpFetchError) => diff --git a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_route_path.ts b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_route_path.ts index 9edb2a7da75de..795f0ea53b665 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_route_path.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_route_path.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { PathsOf, useRoutePath } from '@kbn/typed-react-router-config'; +import type { PathsOf } from '@kbn/typed-react-router-config'; +import { useRoutePath } from '@kbn/typed-react-router-config'; import type { InventoryRoutes } from '../routes/config'; export function useInventoryRoutePath() { diff --git a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_router.ts b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_router.ts index 34aaf0b319d95..5fbb54ab80740 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_router.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/hooks/use_inventory_router.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PathsOf, TypeAsArgs, TypeOf } from '@kbn/typed-react-router-config'; +import type { PathsOf, TypeAsArgs, TypeOf } from '@kbn/typed-react-router-config'; import { useMemo } from 'react'; import type { InventoryRouter, InventoryRoutes } from '../routes/config'; import { inventoryRouter } from '../routes/config'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/plugin.ts b/x-pack/solutions/observability/plugins/inventory/public/plugin.ts index 0d9309d3694fb..23d4bb4d672e5 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/plugin.ts @@ -5,22 +5,21 @@ * 2.0. */ -import { +import type { AppMountParameters, - AppStatus, CoreSetup, CoreStart, - DEFAULT_APP_CATEGORIES, Plugin, PluginInitializerContext, } from '@kbn/core/public'; +import { AppStatus, DEFAULT_APP_CATEGORIES } from '@kbn/core/public'; import { INVENTORY_APP_ID } from '@kbn/deeplinks-observability/constants'; import { i18n } from '@kbn/i18n'; import type { Logger } from '@kbn/logging'; import { from, map, mergeMap, of } from 'rxjs'; import { createCallInventoryAPI } from './api'; import { TelemetryService } from './services/telemetry/telemetry_service'; -import { InventoryServices } from './services/types'; +import type { InventoryServices } from './services/types'; import type { ConfigSchema, InventoryPublicSetup, diff --git a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_client.ts b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_client.ts index d7806c2f6cb2e..8a3ca72783f01 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_client.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; +import type { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { type ITelemetryClient, diff --git a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_events.ts b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_events.ts index 707852f9f3cd6..9803d2238deff 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_events.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_events.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TelemetryEventTypes, TelemetryEvent } from './types'; +import type { TelemetryEvent } from './types'; +import { TelemetryEventTypes } from './types'; const inventoryAddDataEventType: TelemetryEvent = { eventType: TelemetryEventTypes.INVENTORY_ADD_DATA_CLICKED, diff --git a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_service.test.ts b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_service.test.ts index 6a4854f754831..e96fd5305b438 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_service.test.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/telemetry_service.test.ts @@ -8,12 +8,12 @@ import { coreMock } from '@kbn/core/server/mocks'; import { inventoryTelemetryEventBasedTypes } from './telemetry_events'; import { TelemetryService } from './telemetry_service'; +import type { EntityInventoryEntityTypeFilteredParams } from './types'; import { type EntityInventoryViewedParams, type EntityViewClickedParams, type EntityInventorySearchQuerySubmittedParams, TelemetryEventTypes, - EntityInventoryEntityTypeFilteredParams, } from './types'; describe('TelemetryService', () => { diff --git a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/types.ts b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/types.ts index e8ce3eb94e9ba..d460945eadaab 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/types.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/services/telemetry/types.ts @@ -6,7 +6,7 @@ */ import type { AnalyticsServiceSetup, RootSchema } from '@kbn/core/public'; -import { EntityManagerPublicPluginSetup } from '@kbn/entityManager-plugin/public'; +import type { EntityManagerPublicPluginSetup } from '@kbn/entityManager-plugin/public'; export interface TelemetryServiceSetupParams { analytics: AnalyticsServiceSetup; diff --git a/x-pack/solutions/observability/plugins/inventory/public/services/types.ts b/x-pack/solutions/observability/plugins/inventory/public/services/types.ts index b498a1fd49079..d0cc176e7b53f 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/services/types.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/services/types.ts @@ -6,7 +6,7 @@ */ import type { InventoryAPIClient } from '../api'; -import { ITelemetryClient } from './telemetry/types'; +import type { ITelemetryClient } from './telemetry/types'; export interface InventoryServices { inventoryAPIClient: InventoryAPIClient; diff --git a/x-pack/solutions/observability/plugins/inventory/public/types.ts b/x-pack/solutions/observability/plugins/inventory/public/types.ts index cb4d7719e3199..50c62bd964445 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/types.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/types.ts @@ -8,7 +8,7 @@ import type { ObservabilitySharedPluginStart, ObservabilitySharedPluginSetup, } from '@kbn/observability-shared-plugin/public'; -import { +import type { EntityManagerPublicPluginSetup, EntityManagerPublicPluginStart, } from '@kbn/entityManager-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/inventory/public/utils/group_entity_types_by_status.ts b/x-pack/solutions/observability/plugins/inventory/public/utils/group_entity_types_by_status.ts index f842663dd56e9..91b084c8282c1 100644 --- a/x-pack/solutions/observability/plugins/inventory/public/utils/group_entity_types_by_status.ts +++ b/x-pack/solutions/observability/plugins/inventory/public/utils/group_entity_types_by_status.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { EntityType } from '../../common/rt_types'; +import type { EntityType } from '../../common/rt_types'; export function groupEntityTypesByStatus(entityTypes: EntityType) { const entityTypesKeys = Object.keys(entityTypes); diff --git a/x-pack/solutions/observability/plugins/inventory/server/lib/create_alerts_client/create_alerts_client.ts b/x-pack/solutions/observability/plugins/inventory/server/lib/create_alerts_client/create_alerts_client.ts index 878abd516e5bd..0b33606e22798 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/lib/create_alerts_client/create_alerts_client.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/lib/create_alerts_client/create_alerts_client.ts @@ -6,10 +6,10 @@ */ import { isEmpty } from 'lodash'; -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; -import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; import { OBSERVABILITY_RULE_TYPE_IDS } from '@kbn/rule-data-utils'; -import { InventoryRouteHandlerResources } from '../../routes/types'; +import type { InventoryRouteHandlerResources } from '../../routes/types'; export type AlertsClient = Awaited>; diff --git a/x-pack/solutions/observability/plugins/inventory/server/lib/create_es_client/create_entities_es_client.ts b/x-pack/solutions/observability/plugins/inventory/server/lib/create_es_client/create_entities_es_client.ts index 983a4df3e96af..bfd231abd253e 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/lib/create_es_client/create_entities_es_client.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/lib/create_es_client/create_entities_es_client.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; +import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { KibanaRequest } from '@kbn/core/server'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { entitiesAliasPattern, ENTITY_LATEST } from '@kbn/entities-schema'; import { unwrapEsResponse } from '@kbn/observability-shared-plugin/common/utils/unwrap_es_response'; // import { withApmSpan } from '../../utils/with_apm_span'; diff --git a/x-pack/solutions/observability/plugins/inventory/server/plugin.ts b/x-pack/solutions/observability/plugins/inventory/server/plugin.ts index 642dd12769fb4..079614b9b230d 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/plugin.ts @@ -9,7 +9,7 @@ import type { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from '@kb import type { Logger } from '@kbn/logging'; import { mapValues } from 'lodash'; import { registerServerRoutes } from './routes/register_routes'; -import { InventoryRouteHandlerResources } from './routes/types'; +import type { InventoryRouteHandlerResources } from './routes/types'; import type { ConfigSchema, InventoryServerSetup, diff --git a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.test.ts b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.test.ts index 03027430116e6..33bdc5e8a00a5 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.test.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.test.ts @@ -6,7 +6,7 @@ */ import { getGroupByTermsAgg } from './get_group_by_terms_agg'; -import { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; +import type { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; describe('getGroupByTermsAgg', () => { it('should return an empty object when fields is empty', () => { diff --git a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.ts b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.ts index 96ab3eb24444a..71c6e8901c1b7 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_group_by_terms_agg.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; +import type { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; export const getGroupByTermsAgg = (fields: IdentityFieldsPerEntityType, maxSize = 500) => { return Array.from(fields).reduce((acc, [entityType, identityFields]) => { diff --git a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_latest_entities_alerts.ts b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_latest_entities_alerts.ts index d4c69505a4637..c7291e772470b 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_latest_entities_alerts.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/get_latest_entities_alerts.ts @@ -7,9 +7,9 @@ import { termQuery } from '@kbn/observability-plugin/server'; import { ALERT_STATUS, ALERT_STATUS_ACTIVE } from '@kbn/rule-data-utils'; -import { AlertsClient } from '../../lib/create_alerts_client/create_alerts_client'; +import type { AlertsClient } from '../../lib/create_alerts_client/create_alerts_client'; import { getGroupByTermsAgg } from './get_group_by_terms_agg'; -import { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; +import type { IdentityFieldsPerEntityType } from './get_identity_fields_per_entity_type'; interface Bucket { key: Record; diff --git a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/route.ts b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/route.ts index 6e4c10bc01035..78d79105da6de 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/routes/entities/route.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/routes/entities/route.ts @@ -11,7 +11,8 @@ import { joinByKey } from '@kbn/observability-utils-common/array/join_by_key'; import { createObservabilityEsClient } from '@kbn/observability-utils-server/es/client/create_observability_es_client'; import * as t from 'io-ts'; import { orderBy } from 'lodash'; -import { InventoryEntity, entityColumnIdsRt } from '../../../common/entities'; +import type { InventoryEntity } from '../../../common/entities'; +import { entityColumnIdsRt } from '../../../common/entities'; import { createAlertsClient } from '../../lib/create_alerts_client/create_alerts_client'; import { createInventoryServerRoute } from '../create_inventory_server_route'; import { getEntityGroupsBy } from './get_entity_groups'; diff --git a/x-pack/solutions/observability/plugins/inventory/server/types.ts b/x-pack/solutions/observability/plugins/inventory/server/types.ts index d3d5ef0fb7f60..15e4fa2e80f94 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/types.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/types.ts @@ -13,8 +13,8 @@ import type { DataViewsServerPluginSetup, DataViewsServerPluginStart, } from '@kbn/data-views-plugin/server'; -import { FeaturesPluginSetup } from '@kbn/features-plugin/server'; -import { +import type { FeaturesPluginSetup } from '@kbn/features-plugin/server'; +import type { RuleRegistryPluginStartContract, RuleRegistryPluginSetupContract, } from '@kbn/rule-registry-plugin/server'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/http_api/metrics_api.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/http_api/metrics_api.ts index 71ac5f5d217ed..92ad579bc9eb8 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/http_api/metrics_api.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/http_api/metrics_api.ts @@ -8,7 +8,7 @@ import * as rt from 'io-ts'; import { createLiteralValueFromUndefinedRT } from '@kbn/io-ts-utils'; import { afterKeyObjectRT, timeRangeRT } from './metrics_explorer'; -import { MetricsUIAggregation } from '../inventory_models/types'; +import type { MetricsUIAggregation } from '../inventory_models/types'; export interface MetricsAPIMetric { id: string; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/index.ts index 251d14132bdf7..76babe0b9ceae 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; export { awsEC2SnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/index.ts index d9344714bc156..1f87e738e986d 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/index.ts @@ -15,7 +15,7 @@ import { awsEC2CpuUtilization } from './tsvb/aws_ec2_cpu_utilization'; import { awsEC2NetworkTraffic } from './tsvb/aws_ec2_network_traffic'; import { awsEC2DiskIOBytes } from './tsvb/aws_ec2_diskio_bytes'; -import { InventoryMetrics } from '../../types'; +import type { InventoryMetrics } from '../../types'; const awsEC2SnapshotMetrics = { cpu, rx, tx, diskIOReadBytes, diskIOWriteBytes }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/cpu.ts index 1323021d28be3..82e199788e879 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/cpu.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const cpu: MetricsUIAggregation = { cpu_avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_read_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_read_bytes.ts index 162df9026bc8b..7829531f8b90f 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_read_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_read_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const diskIOReadBytes: MetricsUIAggregation = { diskIOReadBytes: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_write_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_write_bytes.ts index 129c624c251d7..90f5e86c69a1e 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_write_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/disk_io_write_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const diskIOWriteBytes: MetricsUIAggregation = { diskIOWriteBytes: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/rx.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/rx.ts index dcb7edcebb861..6591660a19b59 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/rx.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/rx.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rx: MetricsUIAggregation = { rx: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/tx.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/tx.ts index 71a0894ed0f6c..b47745e2f72fb 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/tx.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_ec2/metrics/snapshot/tx.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const tx: MetricsUIAggregation = { tx: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/index.ts index 28c5099ca3bdc..dbeba1570d755 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; export { awsRDSSnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/index.ts index 0acc5caa9d85a..67f6b440a2038 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryMetrics } from '../../types'; +import type { InventoryMetrics } from '../../types'; import { cpu } from './snapshot/cpu'; import { rdsLatency } from './snapshot/rds_latency'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/cpu.ts index 609251e49304a..5526e852d42dd 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/cpu.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const cpu: MetricsUIAggregation = { cpu_avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_active_transactions.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_active_transactions.ts index be230aed90f7b..c3c0cdc7302af 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_active_transactions.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_active_transactions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rdsActiveTransactions: MetricsUIAggregation = { rdsActiveTransactions: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_connections.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_connections.ts index 89800cdfb1299..69e8902d56320 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_connections.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_connections.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rdsConnections: MetricsUIAggregation = { rdsConnections: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_latency.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_latency.ts index d63e6a04ee055..f1c85299f7ea4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_latency.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_latency.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rdsLatency: MetricsUIAggregation = { rdsLatency: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_queries_executed.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_queries_executed.ts index 89c4fec3a7594..3f52981a9581b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_queries_executed.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_rds/metrics/snapshot/rds_queries_executed.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rdsQueriesExecuted: MetricsUIAggregation = { rdsQueriesExecuted: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/index.ts index d24aa4b59d1eb..0349714c1b79a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; export { awsS3SnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/index.ts index d590822879bd7..910bfe5ccf688 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryMetrics } from '../../types'; +import type { InventoryMetrics } from '../../types'; import { awsS3BucketSize } from './tsvb/aws_s3_bucket_size'; import { awsS3TotalRequests } from './tsvb/aws_s3_total_requests'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_bucket_size.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_bucket_size.ts index 532fa675b21a5..8c285689994af 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_bucket_size.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_bucket_size.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const s3BucketSize: MetricsUIAggregation = { s3BucketSize: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_download_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_download_bytes.ts index 7e9043ee76ff7..db406914960b6 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_download_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_download_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const s3DownloadBytes: MetricsUIAggregation = { s3DownloadBytes: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_number_of_objects.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_number_of_objects.ts index 2b547c0f94130..dd5504142c3b3 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_number_of_objects.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_number_of_objects.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const s3NumberOfObjects: MetricsUIAggregation = { s3NumberOfObjects: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_total_requests.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_total_requests.ts index caa05434a6d26..217fd8d9e247a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_total_requests.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_total_requests.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const s3TotalRequests: MetricsUIAggregation = { s3TotalRequests: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_upload_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_upload_bytes.ts index 4cbd08397a171..da4075eb39de4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_upload_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_s3/metrics/snapshot/s3_upload_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const s3UploadBytes: MetricsUIAggregation = { s3UploadBytes: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/index.ts index 739b7e41403dc..5386b9620370a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; export { awsSQSSnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/index.ts index 1e59f29eb3c06..7ef92432e3257 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryMetrics } from '../../types'; +import type { InventoryMetrics } from '../../types'; import { sqsMessagesVisible } from './snapshot/sqs_messages_visible'; import { sqsMessagesDelayed } from './snapshot/sqs_messages_delayed'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_delayed.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_delayed.ts index 654091ee30a22..1265583b38744 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_delayed.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_delayed.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const sqsMessagesDelayed: MetricsUIAggregation = { sqsMessagesDelayed: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_empty.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_empty.ts index b8dec6a995a97..bd913d11086fa 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_empty.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_empty.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const sqsMessagesEmpty: MetricsUIAggregation = { sqsMessagesEmpty: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_sent.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_sent.ts index 9ff494216c660..7850e78c537ce 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_sent.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_sent.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const sqsMessagesSent: MetricsUIAggregation = { sqsMessagesSent: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_visible.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_visible.ts index 4b32bc3786e71..d7620243c5ca9 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_visible.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_messages_visible.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const sqsMessagesVisible: MetricsUIAggregation = { sqsMessagesVisible: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_oldest_message.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_oldest_message.ts index 36fef098d1521..fe79582a34d38 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_oldest_message.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/aws_sqs/metrics/snapshot/sqs_oldest_message.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const sqsOldestMessage: MetricsUIAggregation = { sqsOldestMessage: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/index.ts index a113c6fd1802c..fc9b3fa6320de 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; export { containerSnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/cpu.ts index 36c5ddaf91acd..06417363218ee 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/cpu.ts @@ -12,7 +12,7 @@ import { DEFAULT_XY_HIDDEN_LEGEND, DEFAULT_XY_YBOUNDS, } from '../../../shared/charts/constants'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; const dockerContainerCpuUsageXY: LensConfigWithId = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/disk.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/disk.ts index b3dcc2860ccae..9df6d2d0b9447 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/disk.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/disk.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/memory.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/memory.ts index 45ce080d7f448..5df378f68ac79 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/memory.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/memory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { DEFAULT_XY_FITTING_FUNCTION, DEFAULT_XY_HIDDEN_AXIS_TITLE, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/network.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/network.ts index 29cc757d77279..ba56ba62ccf2e 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/network.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/charts/network.ts @@ -13,7 +13,7 @@ import { RX_LABEL, TX_LABEL, } from '../../../shared/charts/constants'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; const dockerContainerRxTx: LensConfigWithId = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/index.ts index 44fe7d0cb1a8c..87c9dec51e98e 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/index.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { InventoryMetricsWithCharts } from '../../types'; +import type { InventoryMetricsWithCharts } from '../../types'; import { cpu } from './snapshot/cpu'; import { memory } from './snapshot/memory'; import { rx } from './snapshot/rx'; import { tx } from './snapshot/tx'; import type { ContainerFormulas } from './formulas'; -import { ContainerCharts } from './charts'; +import type { ContainerCharts } from './charts'; const containerSnapshotMetrics = { cpu, memory, rx, tx }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/cpu.ts index 411b24a0478f3..e1e98984c9eb5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/cpu.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const cpu: MetricsUIAggregation = { cpu: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/memory.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/memory.ts index d56eae0f69cfe..eee0f2e1cc95b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/memory.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/container/metrics/snapshot/memory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const memory: MetricsUIAggregation = { memory: { avg: { field: 'docker.memory.usage.pct' } }, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/create_tsvb_model.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/create_tsvb_model.ts index 5c9b3beb31c7c..52e68ae2624b9 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/create_tsvb_model.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/create_tsvb_model.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel, TSVBSeries, InventoryMetric } from './types'; +import type { TSVBMetricModelCreator, TSVBMetricModel, TSVBSeries, InventoryMetric } from './types'; export const createTSVBModel = ( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/index.ts index 731a84f1e83ab..1c27b2b57a873 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../types'; +import type { InventoryModel } from '../types'; import { aws as awsRequiredMetrics, nginx as nginxRequireMetrics, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/cpu.ts index bfa9c1f9dec60..424f419836995 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/cpu.ts @@ -14,7 +14,7 @@ import { DEFAULT_XY_LEGEND, DEFAULT_XY_YBOUNDS, } from '../../../shared/charts/constants'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; const cpuUsageBreakdown: LensConfigWithId = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/disk.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/disk.ts index 112de73066518..2be2a7af81074 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/disk.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/disk.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/logs.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/logs.ts index cf53c68a4dbda..cfb69dbfe3bd1 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/logs.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/logs.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/memory.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/memory.ts index 8113848810fe8..c93c0aad06b13 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/memory.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/memory.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/network.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/network.ts index d166870f5bb4b..d52ba12ae3109 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/network.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/charts/network.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { LensConfigWithId } from '../../../types'; +import type { LensConfigWithId } from '../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/index.ts index 82408084e9472..c6c9fae21615b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/index.ts @@ -5,7 +5,7 @@ * 2.0. */ import { snapshot } from './snapshot'; -import { InventoryMetricsWithCharts } from '../../types'; +import type { InventoryMetricsWithCharts } from '../../types'; import type { HostFormulas } from './formulas'; import type { HostCharts } from './charts'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu.ts index dd55a760d1e76..d15c6fbeff97a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const cpu: MetricsUIAggregation = { cpu_user: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu_v2.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu_v2.ts index ebb3368c2c358..72159741dd56c 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu_v2.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/cpu_v2.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const cpuV2: MetricsUIAggregation = { cpuV2: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_latency.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_latency.ts index 99b7ca7f56742..d42fd766f5ebd 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_latency.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_latency.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const diskLatency: MetricsUIAggregation = { diskio_read_time: { avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_space_usage.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_space_usage.ts index c5693d6480389..130762e1380fe 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_space_usage.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/disk_space_usage.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const diskSpaceUsage: MetricsUIAggregation = { diskSpaceUsage: { max: { field: 'system.filesystem.used.pct' } }, }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/load.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/load.ts index e52b8f3d0e123..3d24d2c666cea 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/load.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/load.ts @@ -5,6 +5,6 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const load: MetricsUIAggregation = { load: { avg: { field: 'system.load.5' } } }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/log_rate.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/log_rate.ts index 33409ea663658..73f3cef3eff3d 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/log_rate.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/log_rate.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const logRate: MetricsUIAggregation = { count: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory.ts index 40d596a7f84c5..e506f0c4145fa 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const memory: MetricsUIAggregation = { memory: { avg: { field: 'system.memory.actual.used.pct' } }, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_free.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_free.ts index 6e1d0889f9f75..b6b0ebad285cb 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_free.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_free.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const memoryFree: MetricsUIAggregation = { memory_total: { max: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_total.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_total.ts index e1990555ad550..af1ad10d0a26b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_total.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/memory_total.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const memoryTotal: MetricsUIAggregation = { memory_total: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/normalized_load_1m.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/normalized_load_1m.ts index d1659acd05cbc..51b996e4a9ddb 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/normalized_load_1m.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/normalized_load_1m.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const normalizedLoad1m: MetricsUIAggregation = { load_1m: { avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx.ts index d00d3aaa942cd..6282717f31845 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rx: MetricsUIAggregation = { rx_avg: { avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx_v2.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx_v2.ts index 3f8466010a518..737c6f6743c7d 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx_v2.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/rx_v2.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rxV2: MetricsUIAggregation = { rx_sum: { sum: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx.ts index 1d0ad172749b7..800607fc95d56 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const tx: MetricsUIAggregation = { tx_avg: { avg: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx_v2.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx_v2.ts index 100bd3d0bf306..0c5c4b2847518 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx_v2.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/host/metrics/snapshot/tx_v2.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const txV2: MetricsUIAggregation = { tx_sum: { sum: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/index.ts index 033832aaa553b..c2d0594320bea 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/index.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; import { POD_FIELD, HOST_FIELD, CONTAINER_FIELD } from '../constants'; import { host } from './host'; import { pod } from './kubernetes/pod'; @@ -15,7 +15,7 @@ import { awsS3 } from './aws_s3'; import { awsRDS } from './aws_rds'; import { awsSQS } from './aws_sqs'; import { container } from './container'; -import { InventoryItemType } from './types'; +import type { InventoryItemType } from './types'; export { metrics } from './metrics'; const catalog = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/node/metrics/charts/node.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/node/metrics/charts/node.ts index bd285fed0bf03..2bab80a399969 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/node/metrics/charts/node.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/node/metrics/charts/node.ts @@ -5,7 +5,7 @@ * 2.0. */ import { i18n } from '@kbn/i18n'; -import { LensConfigWithId } from '../../../../types'; +import type { LensConfigWithId } from '../../../../types'; import { formulas } from '../formulas'; import { DEFAULT_XY_FITTING_FUNCTION, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/index.ts index a61abbfeb01e3..bf4170dbcbf2e 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/index.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { metrics } from './metrics'; -import { InventoryModel } from '../../types'; +import type { InventoryModel } from '../../types'; import { nginx as nginxRequiredMetrics } from '../../shared/metrics/required_metrics'; export { podSnapshotMetricTypes } from './metrics'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/index.ts index eeae2c2ec586b..0b84017c68e09 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/index.ts @@ -15,7 +15,7 @@ import { podCpuUsage } from './tsvb/pod_cpu_usage'; import { podLogUsage } from './tsvb/pod_log_usage'; import { podMemoryUsage } from './tsvb/pod_memory_usage'; import { podNetworkTraffic } from './tsvb/pod_network_traffic'; -import { InventoryMetrics } from '../../../types'; +import type { InventoryMetrics } from '../../../types'; const podSnapshotMetrics = { cpu, memory, rx, tx }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/cpu.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/cpu.ts index 5a190a1530b5b..caee48a4e634b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/cpu.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/cpu.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../../types'; +import type { MetricsUIAggregation } from '../../../../types'; export const cpu: MetricsUIAggregation = { cpu_with_limit: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/memory.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/memory.ts index 70640bdc2ac6c..c40e59f57352c 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/memory.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/snapshot/memory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../../types'; +import type { MetricsUIAggregation } from '../../../../types'; export const memory: MetricsUIAggregation = { memory_with_limit: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_cpu_usage.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_cpu_usage.ts index c1d4234725ae6..e33c72bae6999 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_cpu_usage.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_cpu_usage.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; export const podCpuUsage: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_log_usage.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_log_usage.ts index e57b839c4d0c2..1db12c019438b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_log_usage.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_log_usage.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; export const podLogUsage: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_memory_usage.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_memory_usage.ts index 408d7d21386b5..64f5a548aaacc 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_memory_usage.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_memory_usage.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; export const podMemoryUsage: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_network_traffic.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_network_traffic.ts index b95fd8e2f463b..38b060c71983d 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_network_traffic.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_network_traffic.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; export const podNetworkTraffic: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_overview.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_overview.ts index f9789dff288c5..5058756c657f5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_overview.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/kubernetes/pod/metrics/tsvb/pod_overview.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../../types'; export const podOverview: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/index.ts index 775dff525b7f5..249f7da36e3f3 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/index.ts @@ -16,7 +16,7 @@ import { awsDiskioOps } from './tsvb/aws_diskio_ops'; import { awsNetworkBytes } from './tsvb/aws_network_bytes'; import { awsNetworkPackets } from './tsvb/aws_network_packets'; import { awsOverview } from './tsvb/aws_overview'; -import { InventoryMetrics } from '../../types'; +import type { InventoryMetrics } from '../../types'; import { count } from './snapshot/count'; export const metrics: InventoryMetrics = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/required_metrics.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/required_metrics.ts index 5b29fc93e0d0c..17d338ec043e5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/required_metrics.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/required_metrics.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryMetric } from '../../types'; +import type { InventoryMetric } from '../../types'; export const nginx: InventoryMetric[] = [ 'nginxHits', diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/count.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/count.ts index 6ac46673b8e65..b255b990cc2a3 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/count.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/count.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const count: MetricsUIAggregation = { count: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic.ts index a1637f7b75e93..2458c385fe68a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const networkTraffic = (id: string, field: string): MetricsUIAggregation => { return { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic_with_interfaces.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic_with_interfaces.ts index 640534099b41d..2a94fd13db698 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic_with_interfaces.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/network_traffic_with_interfaces.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const networkTrafficWithInterfaces = ( id: string, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/rate.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/rate.ts index 9ac5657d70339..0c3f0e7f3335f 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/rate.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/snapshot/rate.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../types'; +import type { MetricsUIAggregation } from '../../../types'; export const rate = (id: string, field: string): MetricsUIAggregation => { return { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_cpu_utilization.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_cpu_utilization.ts index 51b9a4cfc7b3f..d52c9b6c6fc78 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_cpu_utilization.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_cpu_utilization.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const awsCpuUtilization: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_bytes.ts index 5224545c006b7..4b23360ae7a6f 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const awsDiskioBytes: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_ops.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_ops.ts index c362a6d88c27a..649d201caefe4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_ops.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_diskio_ops.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const awsDiskioOps: TSVBMetricModelCreator = (timeField, indexPattern): TSVBMetricModel => ({ id: 'awsDiskioOps', diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_bytes.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_bytes.ts index b142feb95450c..ee7c91787ba98 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_bytes.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_bytes.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; // see discussion in: https://github.com/elastic/kibana/issues/42687 diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_packets.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_packets.ts index 9d39582b66864..d291068d7d4c6 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_packets.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_network_packets.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const awsNetworkPackets: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_overview.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_overview.ts index 3fe12d62d3352..b9d4b43bbd67f 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_overview.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/aws_overview.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const awsOverview: TSVBMetricModelCreator = (timeField, indexPattern): TSVBMetricModel => ({ id: 'awsOverview', diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_active_connections.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_active_connections.ts index 23b9c274b4335..05de362936587 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_active_connections.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_active_connections.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const nginxActiveConnections: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_hits.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_hits.ts index 3b467bbe52fcd..4af5fe4d91a76 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_hits.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_hits.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const nginxHits: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_request_rate.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_request_rate.ts index 9fbf0c38ba3b8..1cac9100e3fc5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_request_rate.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_request_rate.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const nginxRequestRate: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_requests_per_connection.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_requests_per_connection.ts index f825dbe7b7543..b69b1cb64c4f4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_requests_per_connection.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/shared/metrics/tsvb/nginx_requests_per_connection.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; +import type { TSVBMetricModelCreator, TSVBMetricModel } from '../../../types'; export const nginxRequestsPerConnection: TSVBMetricModelCreator = ( timeField, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/types.ts index 8ad0ff886ebe6..7bdbf3344b688 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/common/inventory_models/types.ts @@ -11,7 +11,7 @@ import type { LensConfig, } from '@kbn/lens-embeddable-utils/config_builder'; import * as rt from 'io-ts'; -import { estypes } from '@elastic/elasticsearch'; +import type { estypes } from '@elastic/elasticsearch'; export const ItemTypeRT = rt.keyof({ host: null, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/apps/common_providers.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/apps/common_providers.tsx index 1734b49c694f5..c62ebc8ca33a5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/apps/common_providers.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/apps/common_providers.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import React from 'react'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import { useKibanaContextForPluginProvider } from '../hooks/use_kibana'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/empty_states/no_indices.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/empty_states/no_indices.tsx index 1ee82a9ad7cff..c13fa05750788 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/empty_states/no_indices.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/empty_states/no_indices.tsx @@ -7,7 +7,7 @@ import React from 'react'; import styled from '@emotion/styled'; -import { EuiEmptyPromptProps } from '@elastic/eui'; +import type { EuiEmptyPromptProps } from '@elastic/eui'; import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template'; interface NoIndicesProps extends Omit { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.stories.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.stories.tsx index 2064be4f19612..cd83f9ccdd215 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.stories.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.stories.tsx @@ -13,7 +13,7 @@ import React from 'react'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; import type { ContainerMetricsTableProps } from './container_metrics_table'; import { ContainerMetricsTable } from './container_metrics_table'; -import { ContainerNodeMetricsRow } from './use_container_metrics_table'; +import type { ContainerNodeMetricsRow } from './use_container_metrics_table'; const mockServices = { application: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.test.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.test.tsx index ca045c8736576..80ff9c87678e5 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.test.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsExplorerSeries } from '../../../../common/http_api'; +import type { MetricsExplorerSeries } from '../../../../common/http_api'; import { CoreProviders } from '../../../apps/common_providers'; import { render, screen, waitFor } from '@testing-library/react'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.tsx index 9448c106b39ed..89b96ae4cf8b8 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/container_metrics_table.tsx @@ -13,14 +13,13 @@ import type { import { EuiBasicTable, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useMemo } from 'react'; -import type { SortState } from '../shared'; +import type { SortState, NodeMetricsTableData } from '../shared'; import { MetricsNodeDetailsLink, MetricsTableEmptyIndicesContent, MetricsTableErrorContent, MetricsTableLoadingContent, MetricsTableNoIndicesContent, - NodeMetricsTableData, NumberCell, StepwisePagination, } from '../shared'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/create_lazy_container_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/create_lazy_container_metrics_table.tsx index 4faa4320aa6a0..8055bd11aeb5d 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/create_lazy_container_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/container/create_lazy_container_metrics_table.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import React, { lazy, Suspense } from 'react'; -import { MetricsDataClient } from '../../../lib/metrics_client'; +import type { MetricsDataClient } from '../../../lib/metrics_client'; import type { NodeMetricsTableProps } from '../shared'; const LazyIntegratedContainerMetricsTable = lazy( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/create_lazy_host_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/create_lazy_host_metrics_table.tsx index 216878562dbf7..7bf6a9d27fe55 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/create_lazy_host_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/create_lazy_host_metrics_table.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import React, { lazy, Suspense } from 'react'; -import { MetricsDataClient } from '../../../lib/metrics_client'; +import type { MetricsDataClient } from '../../../lib/metrics_client'; import type { NodeMetricsTableProps } from '../shared'; const LazyIntegratedHostMetricsTable = lazy(() => import('./integrated_host_metrics_table')); diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.stories.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.stories.tsx index 657ed19f0c0cb..f7683c202ef50 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.stories.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.stories.tsx @@ -13,7 +13,7 @@ import React from 'react'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; import type { HostMetricsTableProps } from './host_metrics_table'; import { HostMetricsTable } from './host_metrics_table'; -import { HostNodeMetricsRow } from './use_host_metrics_table'; +import type { HostNodeMetricsRow } from './use_host_metrics_table'; const mockServices = { application: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.tsx index 17f142af87e79..072a291957ebc 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/host/host_metrics_table.tsx @@ -13,14 +13,13 @@ import type { import { EuiBasicTable, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useCallback, useMemo } from 'react'; -import type { SortState } from '../shared'; +import type { SortState, NodeMetricsTableData } from '../shared'; import { MetricsNodeDetailsLink, MetricsTableEmptyIndicesContent, MetricsTableErrorContent, MetricsTableLoadingContent, MetricsTableNoIndicesContent, - NodeMetricsTableData, NumberCell, StepwisePagination, } from '../shared'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/create_lazy_pod_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/create_lazy_pod_metrics_table.tsx index 650b4b56d02be..aaa023747f063 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/create_lazy_pod_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/create_lazy_pod_metrics_table.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import React, { lazy, Suspense } from 'react'; -import { MetricsDataClient } from '../../../lib/metrics_client'; +import type { MetricsDataClient } from '../../../lib/metrics_client'; import type { NodeMetricsTableProps } from '../shared'; const LazyIntegratedPodMetricsTable = lazy(() => import('./integrated_pod_metrics_table')); diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.stories.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.stories.tsx index fa9a2ef12628d..5a4b18c868d61 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.stories.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.stories.tsx @@ -13,7 +13,7 @@ import React from 'react'; import { decorateWithGlobalStorybookThemeProviders } from '../../../test_utils/use_global_storybook_theme'; import type { PodMetricsTableProps } from './pod_metrics_table'; import { PodMetricsTable } from './pod_metrics_table'; -import { PodNodeMetricsRow } from './use_pod_metrics_table'; +import type { PodNodeMetricsRow } from './use_pod_metrics_table'; const mockServices = { application: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.tsx index ee3745e05f720..152652c91bc96 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/pod/pod_metrics_table.tsx @@ -13,14 +13,13 @@ import type { import { EuiBasicTable, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo } from 'react'; -import type { SortState } from '../shared'; +import type { SortState, NodeMetricsTableData } from '../shared'; import { MetricsNodeDetailsLink, MetricsTableEmptyIndicesContent, MetricsTableErrorContent, MetricsTableLoadingContent, MetricsTableNoIndicesContent, - NodeMetricsTableData, NumberCell, StepwisePagination, } from '../shared'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.test.ts index 88c4701bd4bf8..13f88cecca8f9 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.test.ts @@ -6,11 +6,8 @@ */ import type { MetricsExplorerOptions } from '../../../../../common/metrics_explorer_views/types'; -import { - createMetricByFieldLookup, - MetricsQueryOptions, - metricsToApiOptions, -} from './metrics_to_api_options'; +import type { MetricsQueryOptions } from './metrics_to_api_options'; +import { createMetricByFieldLookup, metricsToApiOptions } from './metrics_to_api_options'; describe('metricsToApiOptions', () => { type TestNodeTypeMetricsField = 'test.node.type.field1' | 'test.node.type.field2'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.ts index 45f37069b7bb7..61c842a4fecf4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/metrics_to_api_options.ts @@ -6,7 +6,7 @@ */ import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { ObjectValues } from '../../../../../common/utility_types'; +import type { ObjectValues } from '../../../../../common/utility_types'; import type { MetricsExplorerOptions, MetricsExplorerOptionsMetric, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/use_infrastructure_node_metrics.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/use_infrastructure_node_metrics.ts index 9360e4feb7c97..602616b422206 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/use_infrastructure_node_metrics.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/shared/hooks/use_infrastructure_node_metrics.ts @@ -17,8 +17,8 @@ import type { MetricsExplorerTimeOptions, } from '../../../../../common/metrics_explorer_views/types'; import { useTrackedPromise } from '../../../../utils/use_tracked_promise'; -import { NodeMetricsTableData } from '../types'; -import { MetricsDataClient } from '../../../../lib/metrics_client'; +import type { NodeMetricsTableData } from '../types'; +import type { MetricsDataClient } from '../../../../lib/metrics_client'; export interface SortState { field: keyof T; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/test_helpers.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/test_helpers.ts index d109adb14a3b5..b8ccf5013e2ac 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/test_helpers.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/components/infrastructure_node_metrics_tables/test_helpers.ts @@ -8,10 +8,10 @@ import type { HttpFetchOptions } from '@kbn/core/public'; import { coreMock } from '@kbn/core/public/mocks'; import { I18nProvider } from '@kbn/i18n-react'; -import { DeepPartial } from 'utility-types'; +import type { DeepPartial } from 'utility-types'; import type { MetricsExplorerResponse } from '../../../common/http_api/metrics_explorer'; import type { CoreProvidersProps } from '../../apps/common_providers'; -import { MetricsDataClient } from '../../lib/metrics_client'; +import type { MetricsDataClient } from '../../lib/metrics_client'; export type DataResponseMock = DeepPartial; export type NodeMetricsTableFetchMock = ( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/hooks/use_kibana.tsx b/x-pack/solutions/observability/plugins/metrics_data_access/public/hooks/use_kibana.tsx index 423460b383549..8d062f21130af 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/hooks/use_kibana.tsx +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/hooks/use_kibana.tsx @@ -6,12 +6,9 @@ */ import { useMemo } from 'react'; -import { CoreStart } from '@kbn/core/public'; -import { - createKibanaReactContext, - KibanaReactContextValue, - useKibana, -} from '@kbn/kibana-react-plugin/public'; +import type { CoreStart } from '@kbn/core/public'; +import type { KibanaReactContextValue } from '@kbn/kibana-react-plugin/public'; +import { createKibanaReactContext, useKibana } from '@kbn/kibana-react-plugin/public'; import type { SharePluginStart } from '@kbn/share-plugin/public'; export type PluginKibanaContextValue = CoreStart & { share?: SharePluginStart }; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/index.ts index 6701bf24539c0..16c7e0f2be80c 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/index.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; +import type { PluginInitializer, PluginInitializerContext } from '@kbn/core/public'; import { Plugin } from './plugin'; -import { MetricsDataPluginSetup, MetricsDataPluginStart, RouteState } from './types'; +import type { MetricsDataPluginSetup, MetricsDataPluginStart, RouteState } from './types'; import { useAssetDetailsRedirect } from './pages/link_to'; export const plugin: PluginInitializer = ( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/lib/metrics_client.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/lib/metrics_client.ts index a2688dcea4d86..7a1604d920fb9 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/lib/metrics_client.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/lib/metrics_client.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; -import { +import type { HttpStart } from '@kbn/core/public'; +import type { MetricsExplorerRequestBody, MetricsExplorerResponse, } from '../../common/http_api/metrics_explorer'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/pages/link_to/use_asset_details_redirect.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/pages/link_to/use_asset_details_redirect.ts index 0b3639dffd0d0..de8da6a288150 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/pages/link_to/use_asset_details_redirect.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/pages/link_to/use_asset_details_redirect.ts @@ -8,7 +8,8 @@ import { useCallback } from 'react'; import { useLocation } from 'react-router-dom'; import useObservable from 'react-use/lib/useObservable'; -import { RouterLinkProps, getRouterLinkProps } from '@kbn/router-utils/src/get_router_link_props'; +import type { RouterLinkProps } from '@kbn/router-utils/src/get_router_link_props'; +import { getRouterLinkProps } from '@kbn/router-utils/src/get_router_link_props'; import { type AssetDetailsLocatorParams, ASSET_DETAILS_LOCATOR_ID, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/plugin.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/plugin.ts index e85dd77f9f3a9..0cc9dcbdf61b6 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/plugin.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CoreSetup, CoreStart, PluginInitializerContext } from '@kbn/core/public'; -import { Logger } from '@kbn/logging'; -import { MetricsDataPluginClass } from './types'; +import type { CoreSetup, CoreStart, PluginInitializerContext } from '@kbn/core/public'; +import type { Logger } from '@kbn/logging'; +import type { MetricsDataPluginClass } from './types'; import { MetricsDataClient } from './lib/metrics_client'; import { createLazyContainerMetricsTable } from './components/infrastructure_node_metrics_tables/container/create_lazy_container_metrics_table'; import { createLazyHostMetricsTable } from './components/infrastructure_node_metrics_tables/host/create_lazy_host_metrics_table'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/types.ts index afe3fadba4ad2..dad9df317c4c0 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/types.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Search } from 'history'; +import type { Search } from 'history'; import type { Plugin as PluginClass } from '@kbn/core/public'; import type { MetricsDataClient } from './lib/metrics_client'; import type { NodeMetricsTableProps } from './components/infrastructure_node_metrics_tables/shared'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/public/utils/use_tracked_promise.ts b/x-pack/solutions/observability/plugins/metrics_data_access/public/utils/use_tracked_promise.ts index d12749ea69fdc..2ecde4be6be2b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/public/utils/use_tracked_promise.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/public/utils/use_tracked_promise.ts @@ -7,7 +7,8 @@ /* eslint-disable max-classes-per-file */ -import { DependencyList, useEffect, useMemo, useRef, useState, useCallback } from 'react'; +import type { DependencyList } from 'react'; +import { useEffect, useMemo, useRef, useState, useCallback } from 'react'; import useMountedState from 'react-use/lib/useMountedState'; interface UseTrackedPromiseArgs { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.test.ts index d96d8efecf52f..a02756e5813c8 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.test.ts @@ -6,7 +6,7 @@ */ import { SavedObjectsErrorHelpers } from '@kbn/core/server'; -import { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; +import type { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; import { MetricsDataClient, DEFAULT_METRIC_INDICES } from './client'; import { metricsDataSourceSavedObjectName } from '../saved_objects/metrics_data_source'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.ts index 26359cae578a7..e3aa285516f8a 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/client/client.ts @@ -6,15 +6,13 @@ */ import { SavedObjectsErrorHelpers } from '@kbn/core/server'; -import { +import type { DefaultMetricIndicesHandler, GetMetricIndicesOptions, UpdateMetricIndicesOptions, } from '../types'; -import { - MetricsDataSavedObject, - metricsDataSourceSavedObjectName, -} from '../saved_objects/metrics_data_source'; +import type { MetricsDataSavedObject } from '../saved_objects/metrics_data_source'; +import { metricsDataSourceSavedObjectName } from '../saved_objects/metrics_data_source'; export const DEFAULT_METRIC_INDICES = 'metrics-*,metricbeat-*'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/client_mock.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/client_mock.ts index 327c2890dd264..5abb069c871dc 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/client_mock.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/client_mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsDataClient } from './client/client'; +import type { MetricsDataClient } from './client/client'; export const MetricsDataClientMock = { create: () => diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/index.ts index 1c79d5c5d423c..19da50b030938 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PluginInitializerContext } from '@kbn/core/server'; +import type { PluginInitializerContext } from '@kbn/core/server'; export type { MetricsDataPluginSetup, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/adapter_types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/adapter_types.ts index 6449fcc30b2dc..e5631a5d83e39 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/adapter_types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/adapter_types.ts @@ -6,25 +6,25 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { Lifecycle } from '@hapi/hapi'; -import { SharePluginSetup } from '@kbn/share-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { JsonArray, JsonValue } from '@kbn/utility-types'; -import { RouteConfig, RouteMethod } from '@kbn/core/server'; -import { +import type { Lifecycle } from '@hapi/hapi'; +import type { SharePluginSetup } from '@kbn/share-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { JsonArray, JsonValue } from '@kbn/utility-types'; +import type { RouteConfig, RouteMethod } from '@kbn/core/server'; +import type { PluginSetup as DataPluginSetup, PluginStart as DataPluginStart, } from '@kbn/data-plugin/server'; -import { PluginStart as DataViewsPluginStart } from '@kbn/data-views-plugin/server'; -import { HomeServerPluginSetup } from '@kbn/home-plugin/server'; -import { FeaturesPluginSetup } from '@kbn/features-plugin/server'; -import { SpacesPluginSetup } from '@kbn/spaces-plugin/server'; +import type { PluginStart as DataViewsPluginStart } from '@kbn/data-views-plugin/server'; +import type { HomeServerPluginSetup } from '@kbn/home-plugin/server'; +import type { FeaturesPluginSetup } from '@kbn/features-plugin/server'; +import type { SpacesPluginSetup } from '@kbn/spaces-plugin/server'; import type { AlertingServerSetup } from '@kbn/alerting-plugin/server'; -import { MlPluginSetup } from '@kbn/ml-plugin/server'; -import { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; -import { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { VersionedRouteConfig } from '@kbn/core-http-server'; -import { MetricsDataPluginSetup } from '../../../types'; +import type { MlPluginSetup } from '@kbn/ml-plugin/server'; +import type { RuleRegistryPluginSetupContract } from '@kbn/rule-registry-plugin/server'; +import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; +import type { VersionedRouteConfig } from '@kbn/core-http-server'; +import type { MetricsDataPluginSetup } from '../../../types'; export interface InfraServerPluginSetupDeps { alerting: AlertingServerSetup; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/kibana_framework_adapter.ts index b2d1e5f91ea81..4c574db8ac399 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/kibana_framework_adapter.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -6,9 +6,9 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { TransportRequestParams } from '@elastic/elasticsearch'; -import { ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server'; -import { +import type { TransportRequestParams } from '@elastic/elasticsearch'; +import type { ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server'; +import type { CoreSetup, IRouter, RequestHandler, @@ -17,7 +17,7 @@ import { } from '@kbn/core/server'; import { UI_SETTINGS } from '@kbn/data-plugin/server'; import type { MetricsDataPluginStartDeps } from '../../../types'; -import { +import type { CallWithRequestParams, InfraDatabaseGetIndicesAliasResponse, InfraDatabaseGetIndicesResponse, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/metrics/adapter_types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/metrics/adapter_types.ts index 778cc38586c2c..a9efcdf93a144 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/metrics/adapter_types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/adapters/metrics/adapter_types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { InventoryMetric } from '../../../../common/inventory_models/types'; +import type { InventoryMetric } from '../../../../common/inventory_models/types'; export enum InfraMetricModelQueryType { lucene = 'lucene', diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_custom_metrics_aggregations.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_custom_metrics_aggregations.ts index 13017cc6666b6..43e1f9ed9233b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_custom_metrics_aggregations.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_custom_metrics_aggregations.ts @@ -7,8 +7,8 @@ import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; import { isEmpty } from 'lodash'; -import { MetricExpressionCustomMetric } from '../../common/alerting/metrics'; -import { MetricsExplorerCustomMetric } from '../../common/http_api'; +import type { MetricExpressionCustomMetric } from '../../common/alerting/metrics'; +import type { MetricsExplorerCustomMetric } from '../../common/http_api'; const isMetricExpressionCustomMetric = ( subject: MetricsExplorerCustomMetric | MetricExpressionCustomMetric diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_search_client.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_search_client.ts index 6936da480be11..2fa4f887e9983 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_search_client.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/create_search_client.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { RequestHandlerContext } from '@kbn/core/server'; -import { CallWithRequestParams, InfraDatabaseSearchResponse } from './adapters/framework'; -import { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; +import type { RequestHandlerContext } from '@kbn/core/server'; +import type { CallWithRequestParams, InfraDatabaseSearchResponse } from './adapters/framework'; +import type { KibanaFramework } from './adapters/framework/kibana_framework_adapter'; export const createSearchClient = (requestContext: RequestHandlerContext, framework: KibanaFramework) => diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/index.ts index f4eca9af6748e..d8bbd4193d178 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/index.ts @@ -7,16 +7,14 @@ import { decodeOrThrow } from '@kbn/io-ts-utils'; const TIMESTAMP_FIELD = '@timestamp'; -import { MetricsAPIRequest, MetricsAPIResponse } from '../../../common/http_api/metrics_api'; -import { +import type { MetricsAPIRequest, MetricsAPIResponse } from '../../../common/http_api/metrics_api'; +import type { ESSearchClient, - CompositeResponseRT, MetricsESResponse, - AggregationResponseRT, AggregationResponse, CompositeResponse, - HistogramBucketRT, } from './types'; +import { CompositeResponseRT, AggregationResponseRT, HistogramBucketRT } from './types'; import { EMPTY_RESPONSE } from './constants'; import { createAggregations, createCompositeAggregations } from './lib/create_aggregations'; import { convertBucketsToMetricsApiSeries } from './lib/convert_buckets_to_metrics_series'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts index 99447271ce5f1..600d43ca3b40c 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts @@ -5,7 +5,8 @@ * 2.0. */ -import moment, { isDuration, Duration } from 'moment'; +import type { Duration } from 'moment'; +import moment, { isDuration } from 'moment'; const d = moment.duration; const roundingRules = [ diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/index.ts index 81a399a997bc2..c3f72180a5d13 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_bucket_size/index.ts @@ -6,7 +6,7 @@ */ import moment from 'moment'; -import { MetricsAPITimerange } from '../../../../../common/http_api'; +import type { MetricsAPITimerange } from '../../../../../common/http_api'; import { calculateAuto } from './calculate_auto'; import { getUnitValue, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_date_histogram_offset.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_date_histogram_offset.ts index 6f35a624a11da..71964e05164d1 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_date_histogram_offset.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_date_histogram_offset.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsAPITimerange } from '../../../../common/http_api'; +import type { MetricsAPITimerange } from '../../../../common/http_api'; import { calculateBucketSize } from './calculate_bucket_size'; export const calculateDateHistogramOffset = (timerange: MetricsAPITimerange): string => { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_interval.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_interval.ts index ee309ad449b2d..f1057f9e722da 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_interval.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/calculate_interval.ts @@ -6,8 +6,8 @@ */ import { isArray, isNumber } from 'lodash'; -import { MetricsAPIRequest } from '../../../../common/http_api'; -import { ESSearchClient } from '../types'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; +import type { ESSearchClient } from '../types'; import { calculateMetricInterval } from '../../../utils/calculate_metric_interval'; export const calculatedInterval = async (search: ESSearchClient, options: MetricsAPIRequest) => { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.test.ts index bba4e338fc106..f86d53cb6ae42 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsAPIRequest } from '../../../../common/http_api'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; import moment from 'moment'; import { convertBucketsToMetricsApiSeries } from './convert_buckets_to_metrics_series'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts index 56ee719c931ec..97b88bf861066 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/convert_buckets_to_metrics_series.ts @@ -7,14 +7,14 @@ import { get, values, first } from 'lodash'; import * as rt from 'io-ts'; -import { +import type { MetricsAPIRequest, MetricsAPISeries, MetricsAPIColumn, MetricsAPIRow, } from '../../../../common/http_api/metrics_api'; +import type { Bucket } from '../types'; import { - Bucket, BasicMetricValueRT, NormalizedMetricValueRT, PercentilesTypeRT, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.test.ts index 120faa40ccd00..1e5a48a3fc7bc 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.test.ts @@ -7,7 +7,7 @@ import { createAggregations, createCompositeAggregations } from './create_aggregations'; import moment from 'moment'; -import { MetricsAPIRequest } from '../../../../common/http_api'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; const options: MetricsAPIRequest = { timerange: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.ts index cddb9f9b915a1..8ea6097725ed9 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_aggregations.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { AggregationOptionsByType } from '@kbn/es-types'; +import type { AggregationOptionsByType } from '@kbn/es-types'; import Boom from '@hapi/boom'; import { afterKeyObjectRT } from '../../../../common/http_api'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; -import { MetricsAPIRequest } from '../../../../common/http_api/metrics_api'; +import type { MetricsAPIRequest } from '../../../../common/http_api/metrics_api'; import { calculateDateHistogramOffset } from './calculate_date_histogram_offset'; import { createMetricsAggregations } from './create_metrics_aggregations'; import { calculateBucketSize } from './calculate_bucket_size'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.test.ts index ef57aa05085a3..94f77f5ac8f1b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsAPIRequest } from '../../../../common/http_api'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; import moment from 'moment'; import { createMetricsAggregations } from './create_metrics_aggregations'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.ts index 7ab96a870cd1e..fce93ca396045 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/lib/create_metrics_aggregations.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { MetricsUIAggregation } from '../../../../common/inventory_models/types'; -import { MetricsAPIRequest } from '../../../../common/http_api/metrics_api'; +import type { MetricsUIAggregation } from '../../../../common/inventory_models/types'; +import type { MetricsAPIRequest } from '../../../../common/http_api/metrics_api'; export const createMetricsAggregations = (options: MetricsAPIRequest): MetricsUIAggregation => { const { metrics } = options; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/types.ts index 0c87e8eca47d9..df19f5aed0729 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/lib/metrics/types.ts @@ -6,7 +6,7 @@ */ import * as rt from 'io-ts'; -import { InfraDatabaseSearchResponse, CallWithRequestParams } from '../adapters/framework'; +import type { InfraDatabaseSearchResponse, CallWithRequestParams } from '../adapters/framework'; export type ESSearchClient = ( options: CallWithRequestParams diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts index 597c63c2d8ebb..95f4b016fef7b 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { +import type { CoreSetup, PluginInitializerContext, Plugin, RequestHandlerContext, } from '@kbn/core/server'; -import { MetricsDataPluginSetup, MetricsDataPluginStartDeps } from './types'; +import type { MetricsDataPluginSetup, MetricsDataPluginStartDeps } from './types'; import { MetricsDataClient } from './client'; import { metricsDataSourceSavedObjectType } from './saved_objects/metrics_data_source'; import { KibanaFramework } from './lib/adapters/framework/kibana_framework_adapter'; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metric_indices/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metric_indices/index.ts index 465a7fdf69f22..e5be6f29dc6df 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metric_indices/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metric_indices/index.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; -import { RequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; -import { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types'; -import { SetupRouteOptions } from '../types'; -import { MetricIndicesAPIResponse } from '../../../common/http_api/metric_indices'; +import type { ElasticsearchClient } from '@kbn/core/server'; +import type { RequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; +import type { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types'; +import type { SetupRouteOptions } from '../types'; +import type { MetricIndicesAPIResponse } from '../../../common/http_api/metric_indices'; function getIndexStatus(client: ElasticsearchClient, index: string) { return client diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/index.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/index.ts index 412b4089e773d..44392684d6566 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/index.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/index.ts @@ -8,10 +8,10 @@ import { createRouteValidationFunction } from '@kbn/io-ts-utils'; import Boom from '@hapi/boom'; import { METRICS_EXPLORER_API_MAX_METRICS } from '../../../common/constants'; +import type { MetricsExplorerPageInfo } from '../../../common/http_api/metrics_explorer'; import { metricsExplorerRequestBodyRT, metricsExplorerResponseRT, - MetricsExplorerPageInfo, } from '../../../common/http_api/metrics_explorer'; import { convertRequestToMetricsAPIOptions } from './lib/convert_request_to_metrics_api_options'; import { createSearchClient } from '../../lib/create_search_client'; @@ -19,7 +19,7 @@ import { findIntervalForMetrics } from './lib/find_interval_for_metrics'; import { query } from '../../lib/metrics'; import { queryTotalGroupings } from './lib/query_total_groupings'; import { transformSeries } from './lib/transform_series'; -import { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; +import type { KibanaFramework } from '../../lib/adapters/framework/kibana_framework_adapter'; export const initMetricExplorerRoute = (framework: KibanaFramework) => { const validateBody = createRouteValidationFunction(metricsExplorerRequestBodyRT); diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.test.ts index 6e391aeb45246..533d34b392900 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.test.ts @@ -6,7 +6,7 @@ */ import { convertMetricToMetricsAPIMetric } from './convert_metric_to_metrics_api_metric'; -import { +import type { MetricsExplorerMetric, MetricsAPIMetric, MetricsExplorerAggregation, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.ts index 299bc75f03114..9cc9981b08703 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_metric_to_metrics_api_metric.ts @@ -7,7 +7,7 @@ import { isEmpty } from 'lodash'; import { networkTraffic } from '../../../../common/inventory_models/shared/metrics/snapshot/network_traffic'; -import { MetricsAPIMetric, MetricsExplorerMetric } from '../../../../common/http_api'; +import type { MetricsAPIMetric, MetricsExplorerMetric } from '../../../../common/http_api'; import { createCustomMetricsAggregations } from '../../../lib/create_custom_metrics_aggregations'; export const convertMetricToMetricsAPIMetric = ( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.test.ts index 71a925f7ab1d9..3499e04f0668e 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsExplorerRequestBody, MetricsAPIRequest } from '../../../../common/http_api'; +import type { MetricsExplorerRequestBody, MetricsAPIRequest } from '../../../../common/http_api'; import { convertRequestToMetricsAPIOptions } from './convert_request_to_metrics_api_options'; const BASE_REQUEST: MetricsExplorerRequestBody = { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.ts index f705feb0a0652..641f9f253d9fd 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/convert_request_to_metrics_api_options.ts @@ -6,11 +6,8 @@ */ import { isObject, isArray } from 'lodash'; -import { - MetricsAPIRequest, - MetricsExplorerRequestBody, - afterKeyObjectRT, -} from '../../../../common/http_api'; +import type { MetricsAPIRequest, MetricsExplorerRequestBody } from '../../../../common/http_api'; +import { afterKeyObjectRT } from '../../../../common/http_api'; import { convertMetricToMetricsAPIMetric } from './convert_metric_to_metrics_api_metric'; export const convertRequestToMetricsAPIOptions = ( diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts index da00bcc3783d5..c83c3d41bc517 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts @@ -7,10 +7,10 @@ import { uniq } from 'lodash'; import LRU from 'lru-cache'; -import { MetricsExplorerRequestBody } from '../../../../common/http_api/metrics_explorer'; +import type { MetricsExplorerRequestBody } from '../../../../common/http_api/metrics_explorer'; import { getDatasetForField } from './get_dataset_for_field'; import { calculateMetricInterval } from '../../../utils/calculate_metric_interval'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { ESSearchClient } from '../../../lib/metrics/types'; const cache = new LRU({ max: 100, diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/get_dataset_for_field.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/get_dataset_for_field.ts index a249f7123b766..692cfecfe65be 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/get_dataset_for_field.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/get_dataset_for_field.ts @@ -6,7 +6,7 @@ */ const TIMESTAMP_FIELD = '@timestamp'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { ESSearchClient } from '../../../lib/metrics/types'; interface EventDatasetHit { _source: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_grouping.test.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_grouping.test.ts index 1844a994a9375..2ae4f8d686dd6 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_grouping.test.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_grouping.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsAPIRequest } from '../../../../common/http_api'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; import { queryTotalGroupings } from './query_total_groupings'; describe('queryTotalGroupings', () => { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_groupings.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_groupings.ts index f7d91f7e24dda..31e025610bca4 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_groupings.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/query_total_groupings.ts @@ -7,8 +7,8 @@ const TIMESTAMP_FIELD = '@timestamp'; import { isArray } from 'lodash'; -import { MetricsAPIRequest } from '../../../../common/http_api'; -import { ESSearchClient } from '../../../lib/metrics/types'; +import type { MetricsAPIRequest } from '../../../../common/http_api'; +import type { ESSearchClient } from '../../../lib/metrics/types'; interface GroupingResponse { count: { diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/transform_series.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/transform_series.ts index 6b876887bd568..0d2e18685df54 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/transform_series.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/metrics_explorer/lib/transform_series.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { MetricsAPISeries, MetricsExplorerSeries } from '../../../../common/http_api'; +import type { MetricsAPISeries, MetricsExplorerSeries } from '../../../../common/http_api'; export const transformSeries = (hasGroupBy: boolean) => diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/types.ts index cce4dcb5cc1e2..7e518f9600ddb 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/routes/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { IRouter, RequestHandlerContextBase } from '@kbn/core-http-server'; -import { MetricsDataClient } from '../client'; +import type { IRouter, RequestHandlerContextBase } from '@kbn/core-http-server'; +import type { MetricsDataClient } from '../client'; export interface SetupRouteOptions { router: IRouter; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/types.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/types.ts index fe82768acb4ff..f850f6f3afa29 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/types.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/types.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; +import type { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; import type { PluginStart as DataPluginStart } from '@kbn/data-plugin/server'; -import { MetricsDataClient } from './client'; +import type { MetricsDataClient } from './client'; export interface MetricsDataPluginSetup { client: MetricsDataClient; diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/utils/calculate_metric_interval.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/utils/calculate_metric_interval.ts index beac55521bcef..21e5e47d5faef 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/utils/calculate_metric_interval.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/utils/calculate_metric_interval.ts @@ -7,8 +7,8 @@ const TIMESTAMP_FIELD = '@timestamp'; import { findInventoryModel } from '../../common/inventory_models'; -import { InventoryItemType } from '../../common/inventory_models/types'; -import { ESSearchClient } from '../lib/metrics/types'; +import type { InventoryItemType } from '../../common/inventory_models/types'; +import type { ESSearchClient } from '../lib/metrics/types'; interface Options { indexPattern: string; diff --git a/x-pack/solutions/observability/plugins/profiling/common/__fixtures__/base_flamegraph.ts b/x-pack/solutions/observability/plugins/profiling/common/__fixtures__/base_flamegraph.ts index f89080654c1b6..5cb42de5f4347 100644 --- a/x-pack/solutions/observability/plugins/profiling/common/__fixtures__/base_flamegraph.ts +++ b/x-pack/solutions/observability/plugins/profiling/common/__fixtures__/base_flamegraph.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { BaseFlameGraph } from '@kbn/profiling-utils'; +import type { BaseFlameGraph } from '@kbn/profiling-utils'; export const baseFlamegraph: BaseFlameGraph = { Edges: [ diff --git a/x-pack/solutions/observability/plugins/profiling/common/columnar_view_model.ts b/x-pack/solutions/observability/plugins/profiling/common/columnar_view_model.ts index f553d61361b8a..5508539e896c0 100644 --- a/x-pack/solutions/observability/plugins/profiling/common/columnar_view_model.ts +++ b/x-pack/solutions/observability/plugins/profiling/common/columnar_view_model.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ColumnarViewModel } from '@elastic/charts'; +import type { ColumnarViewModel } from '@elastic/charts'; import type { ElasticFlameGraph } from '@kbn/profiling-utils'; import { frameTypeToRGB, rgbToRGBA } from './frame_type_colors'; diff --git a/x-pack/solutions/observability/plugins/profiling/common/topn.ts b/x-pack/solutions/observability/plugins/profiling/common/topn.ts index acd7c87ad7b5f..79f8195fc4bd3 100644 --- a/x-pack/solutions/observability/plugins/profiling/common/topn.ts +++ b/x-pack/solutions/observability/plugins/profiling/common/topn.ts @@ -6,7 +6,7 @@ */ import { euiPaletteColorBlind } from '@elastic/eui'; -import { InferSearchResponseOf } from '@kbn/es-types'; +import type { InferSearchResponseOf } from '@kbn/es-types'; import { i18n } from '@kbn/i18n'; import { orderBy } from 'lodash'; import { ProfilingESField } from '@kbn/profiling-utils'; diff --git a/x-pack/solutions/observability/plugins/profiling/e2e/cypress_test_runner.ts b/x-pack/solutions/observability/plugins/profiling/e2e/cypress_test_runner.ts index 1ba633c2d0543..d458f65df494f 100644 --- a/x-pack/solutions/observability/plugins/profiling/e2e/cypress_test_runner.ts +++ b/x-pack/solutions/observability/plugins/profiling/e2e/cypress_test_runner.ts @@ -6,10 +6,10 @@ */ import axios from 'axios'; -import cypress from 'cypress'; +import type cypress from 'cypress'; import path from 'path'; import Url from 'url'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; import { loadProfilingData } from './load_profiling_data'; import { setupProfilingResources } from './setup_profiling_resources'; diff --git a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config.ts b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config.ts index 56cb76e2b2ac7..93af91f4792cb 100644 --- a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config.ts +++ b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import type { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; import { commonFunctionalServices } from '@kbn/ftr-common-functional-services'; import { commonFunctionalUIServices } from '@kbn/ftr-common-functional-ui-services'; diff --git a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_open.ts b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_open.ts index 6e8a7282cf664..b3c061c031ca4 100644 --- a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_open.ts +++ b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_open.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import type { FtrConfigProviderContext } from '@kbn/test'; import cypress from 'cypress'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; import { cypressTestRunner } from './cypress_test_runner'; async function ftrConfigOpen({ readConfigFile }: FtrConfigProviderContext) { diff --git a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_runner.ts b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_runner.ts index a6af6d0ce1a82..38c69667213cf 100644 --- a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_runner.ts +++ b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_config_runner.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import type { FtrConfigProviderContext } from '@kbn/test'; import cypress from 'cypress'; import { cypressTestRunner } from './cypress_test_runner'; -import { FtrProviderContext } from './ftr_provider_context'; +import type { FtrProviderContext } from './ftr_provider_context'; async function ftrConfigRun({ readConfigFile }: FtrConfigProviderContext) { const kibanaConfig = await readConfigFile(require.resolve('./ftr_config.ts')); diff --git a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_provider_context.d.ts b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_provider_context.d.ts index b87f35adcccf2..30a5f1fe518da 100644 --- a/x-pack/solutions/observability/plugins/profiling/e2e/ftr_provider_context.d.ts +++ b/x-pack/solutions/observability/plugins/profiling/e2e/ftr_provider_context.d.ts @@ -5,6 +5,6 @@ * 2.0. */ -import { GenericFtrProviderContext } from '@kbn/test'; +import type { GenericFtrProviderContext } from '@kbn/test'; export type FtrProviderContext = GenericFtrProviderContext<{}, {}>; diff --git a/x-pack/solutions/observability/plugins/profiling/public/app.tsx b/x-pack/solutions/observability/plugins/profiling/public/app.tsx index 0b4cfbaaaa44c..8572a2486a821 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/app.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/app.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { AppMountParameters, CoreSetup, CoreStart } from '@kbn/core/public'; +import type { AppMountParameters, CoreSetup, CoreStart } from '@kbn/core/public'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import { Storage } from '@kbn/kibana-utils-plugin/public'; @@ -21,8 +21,8 @@ import { RouteBreadcrumbsContextProvider } from './components/contexts/route_bre import { TimeRangeContextProvider } from './components/contexts/time_range_context'; import { RedirectWithDefaultDateRange } from './components/redirect_with_default_date_range'; import { profilingRouter } from './routing'; -import { Services } from './services'; -import { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from './types'; +import type { Services } from './services'; +import type { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from './types'; import { ProfilingHeaderActionMenu } from './components/profiling_header_action_menu'; import { RouterErrorBoundary } from './routing/router_error_boundary'; import { LicenseProvider } from './components/contexts/license/license_context'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/async_component.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/async_component.tsx index 5d86340fe79f3..57b578c8004e1 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/async_component.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/async_component.tsx @@ -4,17 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { - EuiFlexGroup, - EuiFlexGroupProps, - EuiFlexItem, - EuiLoadingChart, - EuiText, - EuiIcon, -} from '@elastic/eui'; +import type { EuiFlexGroupProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLoadingChart, EuiText, EuiIcon } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { AsyncState, AsyncStatus } from '../hooks/use_async'; +import type { AsyncState } from '../hooks/use_async'; +import { AsyncStatus } from '../hooks/use_async'; export function AsyncComponent({ children, diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/chart_grid.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/chart_grid.tsx index 717fc178028ec..a0c10f9bbba4a 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/chart_grid.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/chart_grid.tsx @@ -8,7 +8,7 @@ import { EuiFlexGrid, EuiFlexItem, EuiPanel, EuiSpacer } from '@elastic/eui'; import { take } from 'lodash'; import React, { useMemo } from 'react'; -import { TopNSubchart } from '../../common/topn'; +import type { TopNSubchart } from '../../common/topn'; import { SubChart } from './subchart'; export interface ChartGridProps { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/license/license_context.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/license/license_context.tsx index f0274ab739b9a..d265f6645ea38 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/license/license_context.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/license/license_context.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { ILicense } from '@kbn/licensing-plugin/public'; +import type { ILicense } from '@kbn/licensing-plugin/public'; import React from 'react'; import useObservable from 'react-use/lib/useObservable'; import { ProfilingAppPageTemplate } from '../../profiling_app_page_template'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/mock_profiling_dependencies_storybook.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/mock_profiling_dependencies_storybook.tsx index 3508f3f090c6a..98eb7ad6a48c0 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/mock_profiling_dependencies_storybook.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/mock_profiling_dependencies_storybook.tsx @@ -4,20 +4,19 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart } from '@kbn/core/public'; +import type { CoreStart } from '@kbn/core/public'; import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { MlLocatorDefinition } from '@kbn/ml-plugin/public'; import { UrlService } from '@kbn/share-plugin/common/url_service'; import { createMemoryHistory } from 'history'; import { merge } from 'lodash'; -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { Observable } from 'rxjs'; import { RouterProvider } from '@kbn/typed-react-router-config'; -import { - ProfilingDependencies, - ProfilingDependenciesContextProvider, -} from './profiling_dependencies_context'; +import type { ProfilingDependencies } from './profiling_dependencies_context'; +import { ProfilingDependenciesContextProvider } from './profiling_dependencies_context'; import { profilingRouter } from '../../../routing'; import { TimeRangeContextProvider } from '../time_range_context'; import { getServices } from '../../../services'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/profiling_dependencies_context.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/profiling_dependencies_context.tsx index 240d34b8e18c7..333e96ec1ae2c 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/profiling_dependencies_context.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_dependencies/profiling_dependencies_context.tsx @@ -4,10 +4,13 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CoreStart, CoreSetup } from '@kbn/core/public'; +import type { CoreStart, CoreSetup } from '@kbn/core/public'; import { createContext } from 'react'; -import { Services } from '../../../services'; -import { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from '../../../types'; +import type { Services } from '../../../services'; +import type { + ProfilingPluginPublicSetupDeps, + ProfilingPluginPublicStartDeps, +} from '../../../types'; export interface ProfilingDependencies { start: { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_setup_status/profiling_setup_status_context.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_setup_status/profiling_setup_status_context.tsx index 5f02a0886f7c2..5979e631e787d 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_setup_status/profiling_setup_status_context.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/profiling_setup_status/profiling_setup_status_context.tsx @@ -6,7 +6,7 @@ */ import React, { useState } from 'react'; -import { ProfilingSetupStatus } from '../../../services'; +import type { ProfilingSetupStatus } from '../../../services'; export const ProfilingSetupStatusContext = React.createContext< | { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/index.tsx index 62881c17fddb1..383fef909db84 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/index.tsx @@ -4,8 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { Route, RouteMatch, useMatchRoutes } from '@kbn/typed-react-router-config'; -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { Route, RouteMatch } from '@kbn/typed-react-router-config'; +import { useMatchRoutes } from '@kbn/typed-react-router-config'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { compact, isEqual } from 'lodash'; import React, { createContext, useMemo, useState } from 'react'; import { useBreadcrumbs } from '@kbn/observability-shared-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/use_route_breadcrumb.ts b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/use_route_breadcrumb.ts index 79a34e3ff79a9..0b8ff1c2e1cc5 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/use_route_breadcrumb.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/components/contexts/route_breadcrumbs_context/use_route_breadcrumb.ts @@ -8,7 +8,8 @@ import { useCurrentRoute } from '@kbn/typed-react-router-config'; import { useContext, useEffect, useRef } from 'react'; import { castArray } from 'lodash'; -import { RouteBreadcrumbsContext, Breadcrumb } from '.'; +import type { Breadcrumb } from '.'; +import { RouteBreadcrumbsContext } from '.'; export function useRouteBreadcrumb(breadcrumb: Breadcrumb | Breadcrumb[]) { const api = useContext(RouteBreadcrumbsContext); diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/cpu_label_with_hint/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/cpu_label_with_hint/index.tsx index f0a339b65974f..fa5989a81bc97 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/cpu_label_with_hint/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/cpu_label_with_hint/index.tsx @@ -5,15 +5,8 @@ * 2.0. */ import React from 'react'; -import { - EuiFlexGroup, - EuiFlexItem, - EuiIcon, - EuiIconProps, - EuiText, - EuiTextProps, - EuiToolTip, -} from '@elastic/eui'; +import type { EuiIconProps, EuiTextProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText, EuiToolTip } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; type CPUType = 'self' | 'total'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_columns.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_columns.tsx index 71ead9cd75a85..4fd22e71527e7 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_columns.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_columns.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiDataGridColumn, EuiDataGridColumnCellAction } from '@elastic/eui'; +import type { EuiDataGridColumn, EuiDataGridColumnCellAction } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { TopNComparisonFunctionSortField, TopNFunctionSortField } from '@kbn/profiling-utils'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_compare_frame_action.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_compare_frame_action.tsx index 32f6bc826d986..bd6734eda2207 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_compare_frame_action.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/get_compare_frame_action.tsx @@ -5,21 +5,15 @@ * 2.0. */ -import { - EuiBasicTable, - EuiDataGridColumnCellAction, - EuiDataGridColumnCellActionProps, - EuiPopover, - EuiPopoverTitle, - EuiText, - EuiTitle, -} from '@elastic/eui'; +import type { EuiDataGridColumnCellAction, EuiDataGridColumnCellActionProps } from '@elastic/eui'; +import { EuiBasicTable, EuiPopover, EuiPopoverTitle, EuiText, EuiTitle } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; import { css } from '@emotion/react'; import { getCalleeFunction } from '@kbn/profiling-utils'; -import { getFrameIdentification, isComparisonColumn, SelectedFrame } from '.'; -import { IFunctionRow } from '../topn_functions/utils'; +import type { SelectedFrame } from '.'; +import { getFrameIdentification, isComparisonColumn } from '.'; +import type { IFunctionRow } from '../topn_functions/utils'; interface Props { baseRows: IFunctionRow[]; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/index.tsx index 4255bc9dd3ee5..91c1099371827 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/differential_topn_functions_grid/index.tsx @@ -5,22 +5,18 @@ * 2.0. */ -import { - EuiButtonIcon, - EuiDataGrid, +import type { EuiDataGridCellValueElementProps, EuiDataGridColumn, EuiDataGridSorting, - EuiScreenReaderOnly, - useEuiTheme, } from '@elastic/eui'; +import { EuiButtonIcon, EuiDataGrid, EuiScreenReaderOnly, useEuiTheme } from '@elastic/eui'; import { css } from '@emotion/react'; import { i18n } from '@kbn/i18n'; +import type { StackFrameMetadata, TopNFunctions } from '@kbn/profiling-utils'; import { getCalleeFunction, - StackFrameMetadata, TopNComparisonFunctionSortField, - TopNFunctions, TopNFunctionSortField, } from '@kbn/profiling-utils'; import { orderBy } from 'lodash'; @@ -28,12 +24,8 @@ import React, { useEffect, useMemo, useState } from 'react'; import { useCalculateImpactEstimate } from '../../hooks/use_calculate_impact_estimates'; import { FrameInformationTooltip } from '../frame_information_window/frame_information_tooltip'; import { FunctionRow } from '../topn_functions/function_row'; -import { - convertRowToFrame, - getFunctionsRows, - getTotalCount, - IFunctionRow, -} from '../topn_functions/utils'; +import type { IFunctionRow } from '../topn_functions/utils'; +import { convertRowToFrame, getFunctionsRows, getTotalCount } from '../topn_functions/utils'; import { getColumns } from './get_columns'; import { getCompareFrameAction } from './get_compare_frame_action'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/flame_graph_legend.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/flame_graph_legend.tsx index 60d36ea833d92..82fefbac79944 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/flame_graph_legend.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/flame_graph_legend.tsx @@ -8,7 +8,8 @@ import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; import { asPercentage } from '../../utils/formatters/as_percentage'; -import { Legend, LegendItem } from '../legend'; +import type { LegendItem } from '../legend'; +import { Legend } from '../legend'; export function FlameGraphLegend({ legendItems, diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/index.tsx index c1d50ba9142a6..ecb3dd2086a76 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/flamegraph/index.tsx @@ -5,27 +5,18 @@ * 2.0. */ -import { - Chart, - Datum, - Flame, - FlameLayerValue, - FlameSpec, - PartialTheme, - Settings, - Tooltip, - LEGACY_LIGHT_THEME, -} from '@elastic/charts'; +import type { Datum, FlameLayerValue, FlameSpec, PartialTheme } from '@elastic/charts'; +import { Chart, Flame, Settings, Tooltip, LEGACY_LIGHT_THEME } from '@elastic/charts'; import { EuiFlexGroup, EuiFlexItem, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { Maybe } from '@kbn/observability-plugin/common/typings'; +import type { Maybe } from '@kbn/observability-plugin/common/typings'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; import type { ElasticFlameGraph } from '@kbn/profiling-utils'; import React, { useEffect, useMemo, useState } from 'react'; import { getFlamegraphModel } from '../../utils/get_flamegraph_model'; -import { Frame } from '../frame_information_window'; +import type { Frame } from '../frame_information_window'; import { FrameInformationTooltip } from '../frame_information_window/frame_information_tooltip'; -import { ComparisonMode } from '../normalization_menu'; +import type { ComparisonMode } from '../normalization_menu'; import { FlameGraphTooltip } from './flamegraph_tooltip'; import { FlameGraphLegend } from './flame_graph_legend'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/apm_transactions.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/apm_transactions.tsx index 54ce9ebc9eddb..8ae3523c9e561 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/apm_transactions.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/apm_transactions.tsx @@ -4,11 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { Criteria, EuiBasicTableColumn } from '@elastic/eui'; import { Comparators, - Criteria, EuiBasicTable, - EuiBasicTableColumn, EuiFieldSearch, EuiFlexGroup, EuiFlexItem, diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_ai_assistant.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_ai_assistant.tsx index 4464a4de4fe7b..9a3b020958614 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_ai_assistant.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_ai_assistant.tsx @@ -9,7 +9,7 @@ import React, { useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import type { Message } from '@kbn/observability-ai-assistant-plugin/public'; import { EuiFlexItem } from '@elastic/eui'; -import { Frame } from '.'; +import type { Frame } from '.'; import { useProfilingDependencies } from '../contexts/profiling_dependencies/use_profiling_dependencies'; interface Props { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_tooltip.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_tooltip.tsx index 2ff6a36636d61..e26096fb69834 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_tooltip.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/frame_information_tooltip.tsx @@ -6,7 +6,8 @@ */ import { EuiFlyout, EuiFlyoutBody } from '@elastic/eui'; import React from 'react'; -import { FrameInformationWindow, Props as FrameInformationWindowProps } from '.'; +import type { Props as FrameInformationWindowProps } from '.'; +import { FrameInformationWindow } from '.'; interface Props extends FrameInformationWindowProps { onClose: () => void; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx index 1df0d55ae22e2..8893af0d2fdc2 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/get_impact_rows.tsx @@ -7,10 +7,8 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; -import { - ANNUAL_SECONDS, - CalculateImpactEstimates, -} from '../../hooks/use_calculate_impact_estimates'; +import type { CalculateImpactEstimates } from '../../hooks/use_calculate_impact_estimates'; +import { ANNUAL_SECONDS } from '../../hooks/use_calculate_impact_estimates'; import { asCost } from '../../utils/formatters/as_cost'; import { asDuration } from '../../utils/formatters/as_duration'; import { asNumber } from '../../utils/formatters/as_number'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/index.tsx index b392be8717ffc..8714441fd89fc 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/index.tsx @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import type { EuiAccordionProps } from '@elastic/eui'; import { EuiAccordion, - EuiAccordionProps, EuiFlexGroup, EuiFlexItem, EuiIcon, diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.stories.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.stories.tsx index 3a6a29d2f2ed5..72eba97b12f49 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.stories.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.stories.tsx @@ -6,7 +6,7 @@ */ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { Meta } from '@storybook/react'; +import type { Meta } from '@storybook/react'; import React from 'react'; import { FrameType } from '@kbn/profiling-utils'; import { MockProfilingDependenciesStorybook } from '../contexts/profiling_dependencies/mock_profiling_dependencies_storybook'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.tsx index 922fd070f3130..b4b4f2edfcbc5 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frame_information_window/missing_symbols_callout.tsx @@ -9,7 +9,8 @@ import { EuiButton, EuiCallOut, EuiLink } from '@elastic/eui'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; -import { FrameType, getLanguageType } from '@kbn/profiling-utils'; +import type { FrameType } from '@kbn/profiling-utils'; +import { getLanguageType } from '@kbn/profiling-utils'; import { PROFILING_FEEDBACK_LINK } from '../profiling_app_page_template'; import { useProfilingDependencies } from '../contexts/profiling_dependencies/use_profiling_dependencies'; import { useProfilingRouter } from '../../hooks/use_profiling_router'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/frames_summary/summary_item.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/frames_summary/summary_item.tsx index 19650ca431038..7372b836f401a 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/frames_summary/summary_item.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/frames_summary/summary_item.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { EuiTextProps } from '@elastic/eui'; import { EuiFlexGroup, EuiFlexItem, @@ -14,7 +15,6 @@ import { EuiStat, EuiText, EuiTextColor, - EuiTextProps, EuiToolTip, } from '@elastic/eui'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/label_with_hint/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/label_with_hint/index.tsx index 4e4c21b1c8850..f694e241c4446 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/label_with_hint/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/label_with_hint/index.tsx @@ -5,15 +5,8 @@ * 2.0. */ import React from 'react'; -import { - EuiFlexGroup, - EuiFlexItem, - EuiIcon, - EuiIconProps, - EuiText, - EuiTextProps, - EuiToolTip, -} from '@elastic/eui'; +import type { EuiIconProps, EuiTextProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText, EuiToolTip } from '@elastic/eui'; interface Props { label: string; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/primary_and_comparison_search_bar.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/primary_and_comparison_search_bar.tsx index e5a60a7d95149..b02344ae6614d 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/primary_and_comparison_search_bar.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/primary_and_comparison_search_bar.tsx @@ -13,13 +13,13 @@ import { EuiToolTip, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import React from 'react'; import { useAnyOfProfilingParams } from '../hooks/use_profiling_params'; import { useProfilingRouter } from '../hooks/use_profiling_router'; import { useProfilingRoutePath } from '../hooks/use_profiling_route_path'; import { useTimeRangeContext } from '../hooks/use_time_range_context'; -import { ProfilingRoutes } from '../routing'; +import type { ProfilingRoutes } from '../routing'; import { PrimaryProfilingSearchBar } from './profiling_app_page_template/primary_profiling_search_bar'; import { ProfilingSearchBar } from './profiling_app_page_template/profiling_search_bar'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/index.tsx index e094038e2f190..f3f8e794bad83 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/index.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { EuiPageHeaderContentProps } from '@elastic/eui'; import { EuiBetaBadge, EuiButton, @@ -12,13 +13,12 @@ import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, - EuiPageHeaderContentProps, EuiPanel, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useEffect } from 'react'; import { useHistory } from 'react-router-dom'; -import { NoDataPageProps } from '@kbn/shared-ux-page-no-data-types'; +import type { NoDataPageProps } from '@kbn/shared-ux-page-no-data-types'; import { useProfilingDependencies } from '../contexts/profiling_dependencies/use_profiling_dependencies'; import { PrimaryProfilingSearchBar } from './primary_profiling_search_bar'; import { useLocalStorage } from '../../hooks/use_local_storage'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/profiling_search_bar.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/profiling_search_bar.tsx index c41468f5dbff8..f83081ac8b8e4 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/profiling_search_bar.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/profiling_app_page_template/profiling_search_bar.tsx @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { DataView } from '@kbn/data-views-plugin/common'; -import { Query, TimeRange } from '@kbn/es-query'; +import type { DataView } from '@kbn/data-views-plugin/common'; +import type { Query, TimeRange } from '@kbn/es-query'; import { SearchBar } from '@kbn/unified-search-plugin/public'; import { compact } from 'lodash'; import React, { useEffect, useState } from 'react'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/redirect_with_default_date_range.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/redirect_with_default_date_range.tsx index 4ff4810a7195f..88a4d9496b982 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/redirect_with_default_date_range.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/redirect_with_default_date_range.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React from 'react'; +import type React from 'react'; import { useDateRangeRedirect } from '../hooks/use_default_date_range_redirect'; export function RedirectWithDefaultDateRange({ children }: { children: React.ReactElement }) { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/stack_traces/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/stack_traces/index.tsx index ec2e5f28ccc24..fd19f7158bdac 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/stack_traces/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/stack_traces/index.tsx @@ -17,10 +17,11 @@ import { import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; import { StackTracesDisplayOption, TopNType } from '@kbn/profiling-utils'; -import { StackedBarChart, StackedBarChartProps } from '../stacked_bar_chart'; -import { TopNSubchart } from '../../../common/topn'; +import type { StackedBarChartProps } from '../stacked_bar_chart'; +import { StackedBarChart } from '../stacked_bar_chart'; +import type { TopNSubchart } from '../../../common/topn'; import { ChartGrid } from '../chart_grid'; -import { AsyncState } from '../../hooks/use_async'; +import type { AsyncState } from '../../hooks/use_async'; import { AsyncComponent } from '../async_component'; import { SubChart } from '../subchart'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/stacked_bar_chart/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/stacked_bar_chart/index.tsx index 7be81869a49a5..3a2261fbe325e 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/stacked_bar_chart/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/stacked_bar_chart/index.tsx @@ -5,6 +5,7 @@ * 2.0. */ +import type { XYChartElementEvent } from '@elastic/charts'; import { Axis, BrushAxis, @@ -15,14 +16,13 @@ import { StackMode, timeFormatter, Tooltip, - XYChartElementEvent, TooltipContainer, } from '@elastic/charts'; import { EuiPanel } from '@elastic/eui'; import { keyBy } from 'lodash'; import React, { useMemo, useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { TopNSample, TopNSubchart } from '../../../common/topn'; +import type { TopNSample, TopNSubchart } from '../../../common/topn'; import { useKibanaTimeZoneSetting } from '../../hooks/use_kibana_timezone_setting'; import { useProfilingChartsTheme } from '../../hooks/use_profiling_charts_theme'; import { asPercentage } from '../../utils/formatters/as_percentage'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/subchart.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/subchart.tsx index 3ada21f11c0ef..c46805dab23dc 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/subchart.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/subchart.tsx @@ -18,13 +18,12 @@ import { timeFormatter, Tooltip, } from '@elastic/charts'; +import type { EuiAccordionProps, EuiFlexGroupProps } from '@elastic/eui'; import { EuiAccordion, - EuiAccordionProps, EuiBadge, EuiButton, EuiFlexGroup, - EuiFlexGroupProps, EuiFlexItem, EuiHorizontalRule, EuiIcon, @@ -39,7 +38,8 @@ import { i18n } from '@kbn/i18n'; import type { StackFrameMetadata } from '@kbn/profiling-utils'; import { groupBy } from 'lodash'; import React, { Fragment, useMemo, useState } from 'react'; -import { CountPerTime, OTHER_BUCKET_LABEL, TopNSample } from '../../common/topn'; +import type { CountPerTime, TopNSample } from '../../common/topn'; +import { OTHER_BUCKET_LABEL } from '../../common/topn'; import { useKibanaTimeZoneSetting } from '../hooks/use_kibana_timezone_setting'; import { useProfilingChartsTheme } from '../hooks/use_profiling_charts_theme'; import { asNumber } from '../utils/formatters/as_number'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/function_row.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/function_row.tsx index 436b6942c1305..437847dfa32ce 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/function_row.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/function_row.tsx @@ -5,14 +5,8 @@ * 2.0. */ -import { - EuiDataGridCellValueElementProps, - EuiFlexGroup, - EuiFlexItem, - EuiIcon, - EuiText, - useEuiTheme, -} from '@elastic/eui'; +import type { EuiDataGridCellValueElementProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText, useEuiTheme } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { TopNFunctionSortField } from '@kbn/profiling-utils'; import React, { useEffect } from 'react'; @@ -21,7 +15,7 @@ import { asWeight } from '../../utils/formatters/as_weight'; import { StackFrameSummary } from '../stack_frame_summary'; import { CPUStat } from './cpu_stat'; import { SampleStat } from './sample_stat'; -import { IFunctionRow } from './utils'; +import type { IFunctionRow } from './utils'; interface Props { functionRow: IFunctionRow; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/index.tsx index cad716654a843..490d2027ec799 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/index.tsx @@ -5,27 +5,27 @@ * 2.0. */ -import { - EuiButtonIcon, - EuiDataGrid, +import type { EuiDataGridCellValueElementProps, EuiDataGridColumn, EuiDataGridControlColumn, EuiDataGridSorting, - EuiScreenReaderOnly, } from '@elastic/eui'; +import { EuiButtonIcon, EuiDataGrid, EuiScreenReaderOnly } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { useUiTracker } from '@kbn/observability-shared-plugin/public'; -import { getCalleeFunction, TopNFunctions, TopNFunctionSortField } from '@kbn/profiling-utils'; +import type { TopNFunctions } from '@kbn/profiling-utils'; +import { getCalleeFunction, TopNFunctionSortField } from '@kbn/profiling-utils'; import { last, orderBy } from 'lodash'; import React, { useMemo, useState } from 'react'; -import { GridOnScrollProps } from 'react-window'; +import type { GridOnScrollProps } from 'react-window'; import { useCalculateImpactEstimate } from '../../hooks/use_calculate_impact_estimates'; import { CPULabelWithHint } from '../cpu_label_with_hint'; import { FrameInformationTooltip } from '../frame_information_window/frame_information_tooltip'; import { LabelWithHint } from '../label_with_hint'; import { FunctionRow } from './function_row'; -import { convertRowToFrame, getFunctionsRows, getTotalCount, IFunctionRow } from './utils'; +import type { IFunctionRow } from './utils'; +import { convertRowToFrame, getFunctionsRows, getTotalCount } from './utils'; interface Props { topNFunctions?: TopNFunctions; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/topn_functions.stories.tsx b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/topn_functions.stories.tsx index 2ece778600a63..a46f756181417 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/topn_functions.stories.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/topn_functions.stories.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Meta } from '@storybook/react'; +import type { Meta } from '@storybook/react'; import React from 'react'; import { TopNFunctionsView } from '../../views/functions/topn'; import { MockProfilingDependenciesStorybook } from '../contexts/profiling_dependencies/mock_profiling_dependencies_storybook'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.test.ts b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.test.ts index 9142427790450..8c202d6bac344 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.test.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.test.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { TopNFunctions } from '@kbn/profiling-utils'; +import type { TopNFunctions } from '@kbn/profiling-utils'; import { getColorLabel, getTotalCount } from './utils'; describe('Top N functions: Utils', () => { diff --git a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.ts b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.ts index 6cb68bd54f153..94ca6867c4f14 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/components/topn_functions/utils.ts @@ -6,7 +6,7 @@ */ import { keyBy } from 'lodash'; import type { StackFrameMetadata, TopNFunctions } from '@kbn/profiling-utils'; -import { +import type { CalculateImpactEstimates, ImpactEstimates, } from '../../hooks/use_calculate_impact_estimates'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/embeddable_flamegraph.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/embeddable_flamegraph.tsx index 5eaed16b89953..3a353c94cac51 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/embeddable_flamegraph.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/embeddable_flamegraph.tsx @@ -4,15 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { BaseFlameGraph, createFlameGraph } from '@kbn/profiling-utils'; +import type { BaseFlameGraph } from '@kbn/profiling-utils'; +import { createFlameGraph } from '@kbn/profiling-utils'; import React from 'react'; import { profilingShowErrorFrames } from '@kbn/observability-plugin/common'; import { FlameGraph } from '../../components/flamegraph'; import { AsyncEmbeddableComponent } from '../async_embeddable_component'; -import { - ProfilingEmbeddableProvider, - ProfilingEmbeddablesDependencies, -} from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import { ProfilingEmbeddableProvider } from '../profiling_embeddable_provider'; import { useProfilingDependencies } from '../../components/contexts/profiling_dependencies/use_profiling_dependencies'; export type EmbeddableFlamegraphProps = FlamegraphProps & ProfilingEmbeddablesDependencies; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/index.tsx index 67efb183fd459..0b44b18baeac3 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/flamegraph/index.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { dynamic } from '@kbn/shared-ux-utility'; import type { EmbeddableFlamegraphSharedComponent, FlamegraphProps } from './embeddable_flamegraph'; -import { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; const LazyEmbeddableFlamegraph = dynamic(async () => { const Component = await import('./embeddable_flamegraph'); diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions.tsx index 851eeeb8fe103..cf4c53f9da8fd 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions.tsx @@ -6,12 +6,10 @@ */ import React, { useMemo } from 'react'; -import { TopNFunctions } from '@kbn/profiling-utils'; +import type { TopNFunctions } from '@kbn/profiling-utils'; import { AsyncEmbeddableComponent } from '../async_embeddable_component'; -import { - ProfilingEmbeddableProvider, - ProfilingEmbeddablesDependencies, -} from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import { ProfilingEmbeddableProvider } from '../profiling_embeddable_provider'; import { EmbeddableFunctionsGrid } from './embeddable_functions_grid'; export type EmbeddableFunctionsProps = FunctionsProps & ProfilingEmbeddablesDependencies; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions_grid.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions_grid.tsx index 8b4dfd5d62c27..7f1ac1b4f8040 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions_grid.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/embeddable_functions_grid.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { TopNFunctionSortField, TopNFunctions } from '@kbn/profiling-utils'; +import type { TopNFunctions } from '@kbn/profiling-utils'; +import { TopNFunctionSortField } from '@kbn/profiling-utils'; import React, { useState } from 'react'; -import { EuiDataGridSorting } from '@elastic/eui'; +import type { EuiDataGridSorting } from '@elastic/eui'; import { TopNFunctionsGrid } from '../../components/topn_functions'; interface Props { diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/index.tsx index 849907c57dab1..9b4ad86b02ba1 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/functions/index.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { dynamic } from '@kbn/shared-ux-utility'; import type { EmbeddableFunctionsSharedComponent, FunctionsProps } from './embeddable_functions'; -import { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; const LazyEmbeddableFunctions = dynamic(async () => { const Component = await import('./embeddable_functions'); diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/profiling_embeddable_provider.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/profiling_embeddable_provider.tsx index 3a26ede4faac1..39f32d7791049 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/profiling_embeddable_provider.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/profiling_embeddable_provider.tsx @@ -6,12 +6,13 @@ */ import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import React, { ReactChild, useMemo } from 'react'; -import { CoreSetup, CoreStart } from '@kbn/core/public'; +import type { ReactChild } from 'react'; +import React, { useMemo } from 'react'; +import type { CoreSetup, CoreStart } from '@kbn/core/public'; import { Storage } from '@kbn/kibana-utils-plugin/public'; import { ProfilingDependenciesContextProvider } from '../components/contexts/profiling_dependencies/profiling_dependencies_context'; -import { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from '../types'; -import { Services } from '../services'; +import type { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from '../types'; +import type { Services } from '../services'; export interface ProfilingEmbeddablesDependencies { coreStart: CoreStart; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/register_embeddables.ts b/x-pack/solutions/observability/plugins/profiling/public/embeddables/register_embeddables.ts index f4a775f007739..abbca58651b86 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/register_embeddables.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/register_embeddables.ts @@ -13,7 +13,7 @@ import { } from '@kbn/observability-shared-plugin/public'; import { getEmbeddableFlamegraphComponent } from './flamegraph'; import { getEmbeddableFunctionsComponent } from './functions'; -import { ProfilingEmbeddablesDependencies } from './profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from './profiling_embeddable_provider'; import { getEmbeddableStackTracesComponent } from './stack_traces'; import { getEmbeddableSearchBarComponent } from './search_bar'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/embeddable_search_bar.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/embeddable_search_bar.tsx index 1c370e96501d0..16a331ed4c218 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/embeddable_search_bar.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/embeddable_search_bar.tsx @@ -5,13 +5,11 @@ * 2.0. */ import { css } from '@emotion/react'; -import { EmbeddableProfilingSearchBarProps } from '@kbn/observability-shared-plugin/public'; +import type { EmbeddableProfilingSearchBarProps } from '@kbn/observability-shared-plugin/public'; import React from 'react'; import { ProfilingSearchBar } from '../../components/profiling_app_page_template/profiling_search_bar'; -import { - ProfilingEmbeddableProvider, - ProfilingEmbeddablesDependencies, -} from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import { ProfilingEmbeddableProvider } from '../profiling_embeddable_provider'; export type EmbeddableSearchBarProps = EmbeddableProfilingSearchBarProps & ProfilingEmbeddablesDependencies; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/index.tsx index f010ade0f2480..13bad17c4ce61 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/search_bar/index.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { dynamic } from '@kbn/shared-ux-utility'; import type { EmbeddableSearchBarSharedComponent } from './embeddable_search_bar'; -import { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; const LazyEmbeddableSearchBar = dynamic(async () => { const Component = await import('./embeddable_search_bar'); diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/embeddable_stack_traces.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/embeddable_stack_traces.tsx index efc9aeda9c6bd..ca4b5ebe78629 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/embeddable_stack_traces.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/embeddable_stack_traces.tsx @@ -6,11 +6,10 @@ */ import React from 'react'; -import { - ProfilingEmbeddableProvider, - ProfilingEmbeddablesDependencies, -} from '../profiling_embeddable_provider'; -import { StackTraces, StackTracesProps } from './stack_traces'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import { ProfilingEmbeddableProvider } from '../profiling_embeddable_provider'; +import type { StackTracesProps } from './stack_traces'; +import { StackTraces } from './stack_traces'; export type EmbeddableStackTracesProps = StackTracesProps & ProfilingEmbeddablesDependencies; diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/index.tsx index 29631941cd30e..8fd057a10a79e 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/index.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { dynamic } from '@kbn/shared-ux-utility'; import type { EmbeddableStackTracesSharedComponent } from './embeddable_stack_traces'; -import { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from '../profiling_embeddable_provider'; import type { StackTracesProps } from './stack_traces'; const LazyEmbeddableStackTraces = dynamic(async () => { diff --git a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/stack_traces.tsx b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/stack_traces.tsx index 9aae8b0ecc309..26b626af15ea3 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/stack_traces.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/embeddables/stack_traces/stack_traces.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { StackTracesDisplayOption, TopNType } from '@kbn/profiling-utils'; +import type { TopNType } from '@kbn/profiling-utils'; +import { StackTracesDisplayOption } from '@kbn/profiling-utils'; import React, { useState } from 'react'; import { groupSamplesByCategory } from '../../../common/topn'; import { useProfilingDependencies } from '../../components/contexts/profiling_dependencies/use_profiling_dependencies'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_async.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_async.ts index 856842f891900..7220b33255586 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_async.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_async.ts @@ -8,7 +8,8 @@ import { AbortError } from '@kbn/kibana-utils-plugin/common'; import { useCallback, useEffect, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { useProfilingDependencies } from '../components/contexts/profiling_dependencies/use_profiling_dependencies'; -import { AutoAbortedHttpService, useAutoAbortedHttpClient } from './use_auto_aborted_http_client'; +import type { AutoAbortedHttpService } from './use_auto_aborted_http_client'; +import { useAutoAbortedHttpClient } from './use_auto_aborted_http_client'; export enum AsyncStatus { Loading = 'loading', diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_auto_aborted_http_client.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_auto_aborted_http_client.ts index f88ca2f0f0b8b..276fd2c988430 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_auto_aborted_http_client.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_auto_aborted_http_client.ts @@ -6,8 +6,8 @@ */ import { useEffect, useMemo, useRef } from 'react'; -import { Overwrite, ValuesType } from 'utility-types'; -import { HttpFetchOptions, HttpHandler, HttpStart } from '@kbn/core/public'; +import type { Overwrite, ValuesType } from 'utility-types'; +import type { HttpFetchOptions, HttpHandler, HttpStart } from '@kbn/core/public'; import { useProfilingDependencies } from '../components/contexts/profiling_dependencies/use_profiling_dependencies'; const HTTP_METHODS = ['fetch', 'get', 'post', 'put', 'delete', 'patch'] as const; diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_charts_theme.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_charts_theme.ts index 40d3d68379094..a2be1b90f4f5c 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_charts_theme.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_charts_theme.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { PartialTheme } from '@elastic/charts'; +import type { PartialTheme } from '@elastic/charts'; import { useProfilingDependencies } from '../components/contexts/profiling_dependencies/use_profiling_dependencies'; const profilingThemeOverrides: PartialTheme = { diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_params.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_params.ts index 7c4c1f8beaecd..af6f1904097dc 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_params.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_params.ts @@ -4,9 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { PathsOf, TypeOf, useParams } from '@kbn/typed-react-router-config'; -import { ValuesType } from 'utility-types'; -import { ProfilingRoutes } from '../routing'; +import type { PathsOf, TypeOf } from '@kbn/typed-react-router-config'; +import { useParams } from '@kbn/typed-react-router-config'; +import type { ValuesType } from 'utility-types'; +import type { ProfilingRoutes } from '../routing'; export function useProfilingParams>( path: T, diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_route_path.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_route_path.ts index 91859984be453..5d70896448a0d 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_route_path.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_route_path.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { PathsOf, useRoutePath } from '@kbn/typed-react-router-config'; -import { ProfilingRoutes } from '../routing'; +import type { PathsOf } from '@kbn/typed-react-router-config'; +import { useRoutePath } from '@kbn/typed-react-router-config'; +import type { ProfilingRoutes } from '../routing'; export function useProfilingRoutePath(): PathsOf { return useRoutePath() as PathsOf; diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_router.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_router.ts index 0aa31af63dfa5..8457fb8ef05fb 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_router.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_profiling_router.ts @@ -5,10 +5,11 @@ * 2.0. */ -import { PathsOf, TypeOf, TypeAsArgs } from '@kbn/typed-react-router-config'; +import type { PathsOf, TypeOf, TypeAsArgs } from '@kbn/typed-react-router-config'; import { useHistory } from 'react-router-dom'; import { useProfilingDependencies } from '../components/contexts/profiling_dependencies/use_profiling_dependencies'; -import { ProfilingRouter, profilingRouter, ProfilingRoutes } from '../routing'; +import type { ProfilingRouter, ProfilingRoutes } from '../routing'; +import { profilingRouter } from '../routing'; export interface StatefulProfilingRouter extends ProfilingRouter { push>( diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range.ts index 3fc0552c582c8..e0a9f260197b1 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range.ts @@ -6,7 +6,7 @@ */ import { useMemo } from 'react'; -import { TimeRange } from '../../common/types'; +import type { TimeRange } from '../../common/types'; import { getNextTimeRange } from '../utils/get_next_time_range'; import { useTimeRangeContext } from './use_time_range_context'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range_async.ts b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range_async.ts index 37debb0dc486f..49dd7b48eade2 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range_async.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/hooks/use_time_range_async.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { UseAsync, useAsync } from './use_async'; +import type { UseAsync } from './use_async'; +import { useAsync } from './use_async'; import { useTimeRangeContext } from './use_time_range_context'; export const useTimeRangeAsync: UseAsync = (fn, dependencies) => { diff --git a/x-pack/solutions/observability/plugins/profiling/public/plugin.ts b/x-pack/solutions/observability/plugins/profiling/public/plugin.ts index 752b9c92a2195..bdb69f2a11b5b 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/plugin.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/plugin.ts @@ -5,23 +5,23 @@ * 2.0. */ -import { +import type { AppMountParameters, AppUpdater, CoreSetup, CoreStart, - DEFAULT_APP_CATEGORIES, Plugin, } from '@kbn/core/public'; +import { DEFAULT_APP_CATEGORIES } from '@kbn/core/public'; import { i18n } from '@kbn/i18n'; -import { NavigationSection } from '@kbn/observability-shared-plugin/public'; +import type { NavigationSection } from '@kbn/observability-shared-plugin/public'; import type { Location } from 'history'; import { BehaviorSubject, combineLatest, from, map, take } from 'rxjs'; import { OBLT_PROFILING_APP_ID } from '@kbn/deeplinks-observability'; import { registerEmbeddables } from './embeddables/register_embeddables'; import { getServices } from './services'; import type { ProfilingPluginPublicSetupDeps, ProfilingPluginPublicStartDeps } from './types'; -import { ProfilingEmbeddablesDependencies } from './embeddables/profiling_embeddable_provider'; +import type { ProfilingEmbeddablesDependencies } from './embeddables/profiling_embeddable_provider'; export type ProfilingPluginSetup = void; export type ProfilingPluginStart = void; diff --git a/x-pack/solutions/observability/plugins/profiling/public/routing/route_breadcrumb.tsx b/x-pack/solutions/observability/plugins/profiling/public/routing/route_breadcrumb.tsx index f49c5a2fc2aca..18166f583483e 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/routing/route_breadcrumb.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/routing/route_breadcrumb.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React from 'react'; +import type React from 'react'; import { useProfilingDependencies } from '../components/contexts/profiling_dependencies/use_profiling_dependencies'; import { useRouteBreadcrumb } from '../components/contexts/route_breadcrumbs_context/use_route_breadcrumb'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/routing/router_error_boundary.tsx b/x-pack/solutions/observability/plugins/profiling/public/routing/router_error_boundary.tsx index 0134f70ab1ec0..3e72c3b265873 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/routing/router_error_boundary.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/routing/router_error_boundary.tsx @@ -11,7 +11,7 @@ import React from 'react'; import { NotFoundPrompt } from '@kbn/shared-ux-prompt-not-found'; import { useLocation } from 'react-router-dom'; import { i18n } from '@kbn/i18n'; -import { ProfilingPluginPublicStartDeps } from '../types'; +import type { ProfilingPluginPublicStartDeps } from '../types'; export function RouterErrorBoundary({ children }: { children?: React.ReactNode }) { const location = useLocation(); diff --git a/x-pack/solutions/observability/plugins/profiling/public/services.ts b/x-pack/solutions/observability/plugins/profiling/public/services.ts index 67fde58c615d6..e4c03ba796992 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/services.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/services.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { HttpFetchQuery } from '@kbn/core/public'; +import type { HttpFetchQuery } from '@kbn/core/public'; +import type { TopNFunctions } from '@kbn/profiling-utils'; import { createFlameGraph, - TopNFunctions, type BaseFlameGraph, type ElasticFlameGraph, } from '@kbn/profiling-utils'; @@ -19,9 +19,9 @@ import type { StorageExplorerSummaryAPIResponse, StorageHostDetailsAPIResponse, } from '../common/storage_explorer'; -import { TopNResponse } from '../common/topn'; +import type { TopNResponse } from '../common/topn'; import type { SetupDataCollectionInstructions } from '../server/routes/setup/get_cloud_setup_instructions'; -import { AutoAbortedHttpService } from './hooks/use_auto_aborted_http_client'; +import type { AutoAbortedHttpService } from './hooks/use_auto_aborted_http_client'; export interface APMTransactionsPerService { [serviceName: string]: { diff --git a/x-pack/solutions/observability/plugins/profiling/public/types.ts b/x-pack/solutions/observability/plugins/profiling/public/types.ts index 31532150cc1fd..9ad6036a44439 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/types.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/types.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { DataPublicPluginSetup, DataPublicPluginStart } from '@kbn/data-plugin/public'; -import { +import type { DataPublicPluginSetup, DataPublicPluginStart } from '@kbn/data-plugin/public'; +import type { DataViewsPublicPluginSetup, DataViewsPublicPluginStart, } from '@kbn/data-views-plugin/public'; @@ -13,14 +13,14 @@ import type { ObservabilityPublicSetup, ObservabilityPublicStart, } from '@kbn/observability-plugin/public'; -import { +import type { ObservabilitySharedPluginSetup, ObservabilitySharedPluginStart, } from '@kbn/observability-shared-plugin/public/plugin'; -import { ChartsPluginSetup, ChartsPluginStart } from '@kbn/charts-plugin/public'; +import type { ChartsPluginSetup, ChartsPluginStart } from '@kbn/charts-plugin/public'; import type { LicensingPluginStart } from '@kbn/licensing-plugin/public'; import type { SharePluginSetup, SharePluginStart } from '@kbn/share-plugin/public'; -import { +import type { ObservabilityAIAssistantPublicSetup, ObservabilityAIAssistantPublicStart, } from '@kbn/observability-ai-assistant-plugin/public'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/utils/get_flamegraph_model/index.ts b/x-pack/solutions/observability/plugins/profiling/public/utils/get_flamegraph_model/index.ts index 614c17810a626..80f05ec04b2b8 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/utils/get_flamegraph_model/index.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/utils/get_flamegraph_model/index.ts @@ -4,12 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ColumnarViewModel } from '@elastic/charts'; +import type { ColumnarViewModel } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import d3 from 'd3'; import { compact, range, sum, uniqueId } from 'lodash'; -import { describeFrameType, FrameType } from '@kbn/profiling-utils'; -import type { ElasticFlameGraph } from '@kbn/profiling-utils'; +import { describeFrameType } from '@kbn/profiling-utils'; +import type { ElasticFlameGraph, FrameType } from '@kbn/profiling-utils'; import { createColumnarViewModel } from '../../../common/columnar_view_model'; import { FRAME_TYPE_COLOR_MAP, rgbToRGBA } from '../../../common/frame_type_colors'; import { ComparisonMode } from '../../components/normalization_menu'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/differential_flame_graph_search_panel.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/differential_flame_graph_search_panel.tsx index 3b737eb4498af..91a7c3f37ae2c 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/differential_flame_graph_search_panel.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/differential_flame_graph_search_panel.tsx @@ -10,10 +10,10 @@ import { useProfilingParams } from '../../../hooks/use_profiling_params'; import { useProfilingRouter } from '../../../hooks/use_profiling_router'; import { useProfilingRoutePath } from '../../../hooks/use_profiling_route_path'; import { PrimaryAndComparisonSearchBar } from '../../../components/primary_and_comparison_search_bar'; +import type { NormalizationOptions } from '../../../components/normalization_menu'; import { ComparisonMode, NormalizationMode, - NormalizationOptions, NormalizationMenu, } from '../../../components/normalization_menu'; import { DifferentialComparisonMode } from '../../../components/differential_comparison_mode'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/index.tsx index 4c87cfdab5f28..c60b4eb514fcd 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/differential_flamegraphs/index.tsx @@ -10,7 +10,8 @@ import { profilingShowErrorFrames } from '@kbn/observability-plugin/common'; import { AsyncComponent } from '../../../components/async_component'; import { useProfilingDependencies } from '../../../components/contexts/profiling_dependencies/use_profiling_dependencies'; import { FlameGraph } from '../../../components/flamegraph'; -import { NormalizationMode, NormalizationOptions } from '../../../components/normalization_menu'; +import type { NormalizationOptions } from '../../../components/normalization_menu'; +import { NormalizationMode } from '../../../components/normalization_menu'; import { useProfilingParams } from '../../../hooks/use_profiling_params'; import { useProfilingRoutePath } from '../../../hooks/use_profiling_route_path'; import { useProfilingRouter } from '../../../hooks/use_profiling_router'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/index.tsx index 09ff4806e628c..715ecead2b26b 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/flamegraphs/index.tsx @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiPageHeaderContentProps } from '@elastic/eui'; +import type { EuiPageHeaderContentProps } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { ProfilingAppPageTemplate } from '../../components/profiling_app_page_template'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/functions/differential_topn/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/functions/differential_topn/index.tsx index 33acae723b821..bdb153517d0fd 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/functions/differential_topn/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/functions/differential_topn/index.tsx @@ -9,15 +9,10 @@ import React from 'react'; import { AsyncComponent } from '../../../components/async_component'; import { useProfilingDependencies } from '../../../components/contexts/profiling_dependencies/use_profiling_dependencies'; import { FramesSummary } from '../../../components/frames_summary'; -import { - DifferentialTopNFunctionsGrid, - OnChangeSortParams, -} from '../../../components/differential_topn_functions_grid'; -import { - NormalizationMenu, - NormalizationMode, - NormalizationOptions, -} from '../../../components/normalization_menu'; +import type { OnChangeSortParams } from '../../../components/differential_topn_functions_grid'; +import { DifferentialTopNFunctionsGrid } from '../../../components/differential_topn_functions_grid'; +import type { NormalizationOptions } from '../../../components/normalization_menu'; +import { NormalizationMenu, NormalizationMode } from '../../../components/normalization_menu'; import { PrimaryAndComparisonSearchBar } from '../../../components/primary_and_comparison_search_bar'; import { AsyncStatus } from '../../../hooks/use_async'; import { useProfilingParams } from '../../../hooks/use_profiling_params'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/functions/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/functions/index.tsx index 2e4ddb32bc030..9ce7810820509 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/functions/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/functions/index.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { EuiPageHeaderContentProps } from '@elastic/eui'; +import type { EuiPageHeaderContentProps } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { TopNComparisonFunctionSortField } from '@kbn/profiling-utils'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/functions/topn/index.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/functions/topn/index.tsx index b5c6d0b3a3a8b..af6191157be15 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/functions/topn/index.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/functions/topn/index.tsx @@ -4,9 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { EuiDataGridSorting, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { EuiDataGridSorting } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import React from 'react'; -import { TopNFunctionSortField } from '@kbn/profiling-utils'; +import type { TopNFunctionSortField } from '@kbn/profiling-utils'; import { AsyncComponent } from '../../../components/async_component'; import { useProfilingDependencies } from '../../../components/contexts/profiling_dependencies/use_profiling_dependencies'; import { TopNFunctionsGrid } from '../../../components/topn_functions'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/get_stack_traces_tabs.ts b/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/get_stack_traces_tabs.ts index 5e2119a1243f9..9d31e1791ab20 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/get_stack_traces_tabs.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/get_stack_traces_tabs.ts @@ -6,10 +6,10 @@ */ import { i18n } from '@kbn/i18n'; -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { TopNType } from '@kbn/profiling-utils'; -import { StatefulProfilingRouter } from '../../hooks/use_profiling_router'; -import { ProfilingRoutes } from '../../routing'; +import type { StatefulProfilingRouter } from '../../hooks/use_profiling_router'; +import type { ProfilingRoutes } from '../../routing'; export function getStackTracesTabs({ path, diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/utils.ts b/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/utils.ts index 7aa4829d28164..4322819972be3 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/utils.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/views/stack_traces_view/utils.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { TypeOf } from '@kbn/typed-react-router-config'; +import type { TypeOf } from '@kbn/typed-react-router-config'; import { getFieldNameForTopNType, TopNType } from '@kbn/profiling-utils'; -import { ProfilingRoutes } from '../../routing'; +import type { ProfilingRoutes } from '../../routing'; export function getTracesViewRouteParams({ query, diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/grouped_index_details_chart.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/grouped_index_details_chart.tsx index 2feb7230d358a..a0b131296a7e7 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/grouped_index_details_chart.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/grouped_index_details_chart.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { Chart, Datum, Partition, Position, Settings } from '@elastic/charts'; +import type { Datum } from '@elastic/charts'; +import { Chart, Partition, Position, Settings } from '@elastic/charts'; import { euiPaletteColorBlind, EuiText, useEuiTheme } from '@elastic/eui'; import { asDynamicBytes } from '@kbn/observability-plugin/common'; import React from 'react'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/storage_details_table.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/storage_details_table.tsx index 16627d7c9fbaa..d08cbeca34af6 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/storage_details_table.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/storage_details_table.tsx @@ -5,17 +5,12 @@ * 2.0. */ -import { - CriteriaWithPagination, - EuiBasicTableColumn, - EuiInMemoryTable, - EuiText, - EuiTitle, -} from '@elastic/eui'; +import type { CriteriaWithPagination, EuiBasicTableColumn } from '@elastic/eui'; +import { EuiInMemoryTable, EuiText, EuiTitle } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useMemo, useState } from 'react'; import { asDynamicBytes, asInteger } from '@kbn/observability-plugin/common'; -import { StorageDetailsPerIndex } from '../../../../common/storage_explorer'; +import type { StorageDetailsPerIndex } from '../../../../common/storage_explorer'; import { NOT_AVAILABLE_LABEL } from '../../../../common'; interface Props { diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/utils.ts b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/utils.ts index 1c7311471a770..88864d91829fe 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/utils.ts +++ b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/data_breakdown/utils.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { StorageGroupedIndexNames } from '../../../../common/storage_explorer'; +import type { StorageGroupedIndexNames } from '../../../../common/storage_explorer'; export function getGroupedIndexLabel(label: StorageGroupedIndexNames) { switch (label) { diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/host_breakdown/hosts_table.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/host_breakdown/hosts_table.tsx index 993636e72317c..0a5c6e2435c3d 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/host_breakdown/hosts_table.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/host_breakdown/hosts_table.tsx @@ -5,10 +5,9 @@ * 2.0. */ +import type { CriteriaWithPagination, EuiBasicTableColumn } from '@elastic/eui'; import { - CriteriaWithPagination, EuiBadge, - EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem, EuiIcon, @@ -19,7 +18,7 @@ import { import { i18n } from '@kbn/i18n'; import { asDynamicBytes, asAbsoluteDateTime } from '@kbn/observability-plugin/common'; import React, { useMemo, useState } from 'react'; -import { StorageExplorerHostDetails } from '../../../../common/storage_explorer'; +import type { StorageExplorerHostDetails } from '../../../../common/storage_explorer'; import { LabelWithHint } from '../../../components/label_with_hint'; import { useProfilingParams } from '../../../hooks/use_profiling_params'; import { useProfilingRouter } from '../../../hooks/use_profiling_router'; diff --git a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/summary.tsx b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/summary.tsx index 7403c3e86fb9b..ac77c3f36c081 100644 --- a/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/summary.tsx +++ b/x-pack/solutions/observability/plugins/profiling/public/views/storage_explorer/summary.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import { asDynamicBytes } from '@kbn/observability-plugin/common'; import React from 'react'; import { StackTracesDisplayOption, TopNType } from '@kbn/profiling-utils'; -import { StorageExplorerSummaryAPIResponse } from '../../../common/storage_explorer'; +import type { StorageExplorerSummaryAPIResponse } from '../../../common/storage_explorer'; import { useProfilingDependencies } from '../../components/contexts/profiling_dependencies/use_profiling_dependencies'; import { LabelWithHint } from '../../components/label_with_hint'; import { useProfilingParams } from '../../hooks/use_profiling_params'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/index.ts b/x-pack/solutions/observability/plugins/profiling/server/index.ts index cbd429315cbb5..44df88d9cc6ca 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/index.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/index.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; /** diff --git a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/cluster_settings.ts b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/cluster_settings.ts index b1b2fb8a24724..5699fd0b79147 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/cluster_settings.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/cluster_settings.ts @@ -6,7 +6,7 @@ */ import { MAX_BUCKETS } from '@kbn/profiling-data-access-plugin/common'; -import { ProfilingSetupOptions } from '@kbn/profiling-data-access-plugin/common/setup'; +import type { ProfilingSetupOptions } from '@kbn/profiling-data-access-plugin/common/setup'; export async function setMaximumBuckets({ client }: ProfilingSetupOptions) { await client.getEsClient().cluster.putSettings({ diff --git a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.test.ts b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.test.ts index 95b20eab2bec1..d182117b4dd79 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.test.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PackageInputType } from '../..'; +import type { PackageInputType } from '../..'; import { getVarsFor } from './fleet_policies'; const secretTokenRegex = /^[a-zA-Z0-9]+$/; diff --git a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.ts b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.ts index 263062366eb45..2ad0e6825231f 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/fleet_policies.ts @@ -13,8 +13,8 @@ import { SYMBOLIZER_PACKAGE_POLICY_NAME, } from '@kbn/profiling-data-access-plugin/common'; import { omit } from 'lodash'; -import { PackageInputType } from '../..'; -import { ProfilingCloudSetupOptions } from './types'; +import type { PackageInputType } from '../..'; +import type { ProfilingCloudSetupOptions } from './types'; const CLOUD_AGENT_POLICY_ID = 'policy-elastic-agent-on-cloud'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/get_has_setup_privileges.ts b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/get_has_setup_privileges.ts index 8696c97dabd31..ad4a0879d9c88 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/get_has_setup_privileges.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/get_has_setup_privileges.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { KibanaRequest } from '@kbn/core/server'; +import type { KibanaRequest } from '@kbn/core/server'; import { INTEGRATIONS_PLUGIN_ID, PLUGIN_ID as FLEET_PLUGIN_ID } from '@kbn/fleet-plugin/common'; import { ApiOperation } from '@kbn/security-plugin-types-server'; -import { ProfilingPluginStartDeps } from '../../types'; +import type { ProfilingPluginStartDeps } from '../../types'; export async function getHasSetupPrivileges({ securityPluginStart, diff --git a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/types.ts b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/types.ts index 0ef5a5a4dd826..ca470785f2135 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/lib/setup/types.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/lib/setup/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ProfilingCloudSetupOptions as BaseProfilingCloudSetupOptions } from '@kbn/profiling-data-access-plugin/common'; -import { ProfilingConfig } from '../..'; +import type { ProfilingCloudSetupOptions as BaseProfilingCloudSetupOptions } from '@kbn/profiling-data-access-plugin/common'; +import type { ProfilingConfig } from '../..'; export interface ProfilingCloudSetupOptions extends BaseProfilingCloudSetupOptions { config: ProfilingConfig; diff --git a/x-pack/solutions/observability/plugins/profiling/server/plugin.ts b/x-pack/solutions/observability/plugins/profiling/server/plugin.ts index 27fbc4f958da1..4bf8e32c754ea 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/plugin.ts @@ -5,11 +5,17 @@ * 2.0. */ -import { CoreSetup, CoreStart, Logger, Plugin, PluginInitializerContext } from '@kbn/core/server'; -import { ProfilingConfig } from '.'; +import type { + CoreSetup, + CoreStart, + Logger, + Plugin, + PluginInitializerContext, +} from '@kbn/core/server'; +import type { ProfilingConfig } from '.'; import { PROFILING_FEATURE, PROFILING_SERVER_FEATURE_ID } from './feature'; import { registerRoutes } from './routes'; -import { +import type { ProfilingPluginSetup, ProfilingPluginSetupDeps, ProfilingPluginStart, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts index 7ad001831c0e4..9dc85ac8969b8 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts @@ -5,10 +5,12 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import { termQuery } from '@kbn/observability-plugin/server'; import { keyBy } from 'lodash'; -import { IDLE_SOCKET_TIMEOUT, RouteRegisterParameters } from '.'; +import type { RouteRegisterParameters } from '.'; +import { IDLE_SOCKET_TIMEOUT } from '.'; import { getRoutePaths } from '../../common'; import { handleRouteHandlerError } from '../utils/handle_route_error_handler'; import { getClient } from './compat'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/compat.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/compat.ts index 6969e84bff6e7..dd75512252e1e 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/compat.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/compat.ts @@ -11,7 +11,7 @@ // to address the incompatibilities between those two versions. import type { ElasticsearchClient } from '@kbn/core/server'; -import { ProfilingRequestHandlerContext } from '../types'; +import type { ProfilingRequestHandlerContext } from '../types'; export async function getClient( context: ProfilingRequestHandlerContext diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.test.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.test.ts index e4e527082aade..6d19f1ae9308e 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.test.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.test.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { DownsampledEventsIndex, getSampledTraceEventsIndex } from './downsampling'; +import type { DownsampledEventsIndex } from './downsampling'; +import { getSampledTraceEventsIndex } from './downsampling'; describe('Using down-sampled indexes', () => { test('getSampledTraceEventsIndex', () => { diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.ts index 2c0fe5dc6aee0..12399298fe8d2 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/downsampling.ts @@ -6,8 +6,8 @@ */ import type { Logger } from '@kbn/core/server'; -import { ProfilingESClient } from '../utils/create_profiling_es_client'; -import { ProjectTimeQuery } from './query'; +import type { ProfilingESClient } from '../utils/create_profiling_es_client'; +import type { ProjectTimeQuery } from './query'; export interface DownsampledEventsIndex { name: string; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/flamechart.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/flamechart.ts index 2b318e57eb364..d25e1de41aa94 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/flamechart.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/flamechart.ts @@ -7,7 +7,8 @@ import { schema } from '@kbn/config-schema'; import { kqlQuery } from '@kbn/observability-plugin/server'; -import { IDLE_SOCKET_TIMEOUT, RouteRegisterParameters } from '.'; +import type { RouteRegisterParameters } from '.'; +import { IDLE_SOCKET_TIMEOUT } from '.'; import { getRoutePaths } from '../../common'; import { handleRouteHandlerError } from '../utils/handle_route_error_handler'; import { getClient } from './compat'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts index 1689e707a9d80..9acd9026b0893 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts @@ -5,10 +5,12 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import { kqlQuery } from '@kbn/observability-plugin/server'; import { profilingFetchTopNFunctionsFromStacktraces } from '@kbn/observability-plugin/common'; -import { IDLE_SOCKET_TIMEOUT, RouteRegisterParameters } from '.'; +import type { RouteRegisterParameters } from '.'; +import { IDLE_SOCKET_TIMEOUT } from '.'; import { getRoutePaths } from '../../common'; import { handleRouteHandlerError } from '../utils/handle_route_error_handler'; import { getClient } from './compat'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/index.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/index.ts index 74e6e3b71be90..da9d1eb22affa 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/index.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/index.ts @@ -8,14 +8,14 @@ import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import type { KibanaRequest } from '@kbn/core-http-server'; import type { IRouter, Logger } from '@kbn/core/server'; -import { ProfilingConfig } from '..'; -import { +import type { ProfilingConfig } from '..'; +import type { ProfilingPluginSetupDeps, ProfilingPluginStartDeps, ProfilingRequestHandlerContext, TelemetryUsageCounter, } from '../types'; -import { ProfilingESClient } from '../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../utils/create_profiling_es_client'; import { registerTopNFunctionsAPMTransactionsRoute } from './apm'; import { registerFlameChartSearchRoute } from './flamechart'; import { registerTopNFunctionsSearchRoute } from './functions'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/query.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/query.ts index 79520b0520ffb..a160a7be82387 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/query.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslBoolQuery } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslBoolQuery } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { kqlQuery } from '@kbn/observability-plugin/server'; import { ProfilingESField } from '@kbn/profiling-utils'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/search_stacktraces.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/search_stacktraces.ts index a8f994842bc4f..4df550ce9dd3d 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/search_stacktraces.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/search_stacktraces.ts @@ -5,8 +5,8 @@ * 2.0. */ import { decodeStackTraceResponse } from '@kbn/profiling-utils'; -import { ProfilingESClient } from '../utils/create_profiling_es_client'; -import { ProjectTimeQuery } from './query'; +import type { ProfilingESClient } from '../utils/create_profiling_es_client'; +import type { ProjectTimeQuery } from './query'; export async function searchStackTraces({ client, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_cloud_setup_instructions.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_cloud_setup_instructions.ts index 5fd6513e15dff..4acd25472c18f 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_cloud_setup_instructions.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_cloud_setup_instructions.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { PackagePolicyClient } from '@kbn/fleet-plugin/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { PackagePolicyClient } from '@kbn/fleet-plugin/server'; import { fetchFindLatestPackageOrThrow } from '@kbn/fleet-plugin/server/services/epm/registry'; import { getCollectorPolicy, getSymbolizerPolicy } from '@kbn/profiling-data-access-plugin/common'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_self_managed_instructions.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_self_managed_instructions.ts index edd62bbc85aef..6b0948917665e 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_self_managed_instructions.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/get_self_managed_instructions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SetupDataCollectionInstructions } from './get_cloud_setup_instructions'; +import type { SetupDataCollectionInstructions } from './get_cloud_setup_instructions'; export function getSelfManagedInstructions({ stackVersion, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/route.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/route.ts index a5bc8d3187bda..968be5d3703f2 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/route.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/route.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { ProfilingSetupOptions } from '@kbn/profiling-data-access-plugin/common/setup'; +import type { ProfilingSetupOptions } from '@kbn/profiling-data-access-plugin/common/setup'; import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common'; -import { RouteRegisterParameters } from '..'; +import type { RouteRegisterParameters } from '..'; import { getRoutePaths } from '../../../common'; import { getHasSetupPrivileges } from '../../lib/setup/get_has_setup_privileges'; import { handleRouteHandlerError } from '../../utils/handle_route_error_handler'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_cloud.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_cloud.ts index 5e282e21e4c76..c119fa85c8d28 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_cloud.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_cloud.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { CloudSetupState } from '@kbn/profiling-data-access-plugin/common/cloud_setup'; +import type { CloudSetupState } from '@kbn/profiling-data-access-plugin/common/cloud_setup'; import { enableResourceManagement, setMaximumBuckets } from '../../lib/setup/cluster_settings'; import { createCollectorPackagePolicy, createSymbolizerPackagePolicy, removeProfilingFromApmPackagePolicy, } from '../../lib/setup/fleet_policies'; -import { ProfilingCloudSetupOptions } from '../../lib/setup/types'; +import type { ProfilingCloudSetupOptions } from '../../lib/setup/types'; export async function setupCloud({ setupState, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_self_managed.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_self_managed.ts index 4f15624f4c6af..4a31bafdd952d 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_self_managed.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/setup/setup_self_managed.ts @@ -5,7 +5,10 @@ * 2.0. */ -import { ProfilingSetupOptions, SetupState } from '@kbn/profiling-data-access-plugin/common/setup'; +import type { + ProfilingSetupOptions, + SetupState, +} from '@kbn/profiling-data-access-plugin/common/setup'; import { enableResourceManagement, setMaximumBuckets } from '../../lib/setup/cluster_settings'; export async function setupSelfManaged({ diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_daily_data_generation.size.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_daily_data_generation.size.ts index afab5be7329c9..19ce433b7aed6 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_daily_data_generation.size.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_daily_data_generation.size.ts @@ -4,9 +4,9 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { IndicesStatsIndicesStats } from '@elastic/elasticsearch/lib/api/types'; +import type { IndicesStatsIndicesStats } from '@elastic/elasticsearch/lib/api/types'; import { kqlQuery } from '@kbn/observability-plugin/server'; -import { ProfilingESClient } from '../../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../../utils/create_profiling_es_client'; export function getEstimatedSizeForDocumentsInIndex({ allIndicesStats, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_breakdown_size_timeseries.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_breakdown_size_timeseries.ts index 88e6a365c80da..724654ff92a09 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_breakdown_size_timeseries.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_breakdown_size_timeseries.ts @@ -8,12 +8,12 @@ import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProfilingESField } from '@kbn/profiling-utils'; import { computeBucketWidthFromTimeRangeAndBucketCount } from '../../../common/histogram'; +import type { StorageExplorerHostDetailsTimeseries } from '../../../common/storage_explorer'; import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, - StorageExplorerHostDetailsTimeseries, } from '../../../common/storage_explorer'; -import { ProfilingESClient } from '../../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../../utils/create_profiling_es_client'; import { getEstimatedSizeForDocumentsInIndex } from './get_daily_data_generation.size'; import { allIndices, getIndicesStats } from './get_indices_stats'; import { getProfilingHostsDetailsById } from './get_profiling_hosts_details_by_id'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_details.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_details.ts index 565fc76210516..46df7974c2161 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_details.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_details.ts @@ -7,12 +7,12 @@ import { kqlQuery, termQuery } from '@kbn/observability-plugin/server'; import { ProfilingESField } from '@kbn/profiling-utils'; +import type { StorageExplorerHostDetails } from '../../../common/storage_explorer'; import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, - StorageExplorerHostDetails, } from '../../../common/storage_explorer'; -import { ProfilingESClient } from '../../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../../utils/create_profiling_es_client'; import { getEstimatedSizeForDocumentsInIndex } from './get_daily_data_generation.size'; import { allIndices, getIndicesStats } from './get_indices_stats'; import { getProfilingHostsDetailsById } from './get_profiling_hosts_details_by_id'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_distinct_probabilistic_count.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_distinct_probabilistic_count.ts index ba8931491d678..b52107c976120 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_distinct_probabilistic_count.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_host_distinct_probabilistic_count.ts @@ -10,7 +10,7 @@ import { IndexLifecyclePhaseSelectOption, indexLifeCyclePhaseToDataTier, } from '../../../common/storage_explorer'; -import { ProfilingESClient } from '../../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../../utils/create_profiling_es_client'; export async function getHostAndDistinctProbabilisticCount({ client, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_indices_stats.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_indices_stats.ts index eb10cd30ec40a..014e2e85183f5 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_indices_stats.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_indices_stats.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; export const symbolsIndices = [ 'profiling-symbols-global', diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_profiling_hosts_details_by_id.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_profiling_hosts_details_by_id.ts index a2d2c7b2abcd1..335ad08f4149d 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_profiling_hosts_details_by_id.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_profiling_hosts_details_by_id.ts @@ -7,7 +7,7 @@ import { kqlQuery } from '@kbn/observability-plugin/server'; import { keyBy } from 'lodash'; import { ProfilingESField } from '@kbn/profiling-utils'; -import { ProfilingESClient } from '../../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../../utils/create_profiling_es_client'; interface HostDetails { hostId: string; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_grouped_by_index.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_grouped_by_index.ts index 2a4c741a9eaa4..4cf4e250bf6db 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_grouped_by_index.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_grouped_by_index.ts @@ -4,12 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { groupBy, sumBy } from 'lodash'; -import { - IndexLifecyclePhaseSelectOption, - StorageGroupedIndexNames, -} from '../../../common/storage_explorer'; +import type { StorageGroupedIndexNames } from '../../../common/storage_explorer'; +import { IndexLifecyclePhaseSelectOption } from '../../../common/storage_explorer'; import { getIndicesLifecycleStatus, getIndicesStats, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_per_index.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_per_index.ts index ca26ec0afc81e..1709c3da6c57a 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_per_index.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/get_storage_details_per_index.ts @@ -5,11 +5,9 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; -import { - IndexLifecyclePhaseSelectOption, - StorageDetailsPerIndex, -} from '../../../common/storage_explorer'; +import type { ElasticsearchClient } from '@kbn/core/server'; +import type { StorageDetailsPerIndex } from '../../../common/storage_explorer'; +import { IndexLifecyclePhaseSelectOption } from '../../../common/storage_explorer'; import { getIndicesLifecycleStatus, getIndicesStats, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/route.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/route.ts index d3148fd9ff03a..04cb9e0d2981d 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/route.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/storage_explorer/route.ts @@ -6,12 +6,10 @@ */ import { schema } from '@kbn/config-schema'; import { sumBy, values } from 'lodash'; -import { RouteRegisterParameters } from '..'; +import type { RouteRegisterParameters } from '..'; import { getRoutePaths } from '../../../common'; -import { - IndexLifecyclePhaseSelectOption, - StorageExplorerSummaryAPIResponse, -} from '../../../common/storage_explorer'; +import type { StorageExplorerSummaryAPIResponse } from '../../../common/storage_explorer'; +import { IndexLifecyclePhaseSelectOption } from '../../../common/storage_explorer'; import { getClient } from '../compat'; import { getDailyDataGenerationSize } from './get_daily_data_generation.size'; import { getHostBreakdownSizeTimeseries } from './get_host_breakdown_size_timeseries'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/topn.test.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/topn.test.ts index b576c3b54d144..607a1d3dd79e8 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/topn.test.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/topn.test.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { AggregationsAggregationContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { AggregationsAggregationContainer } from '@elastic/elasticsearch/lib/api/types'; import { coreMock } from '@kbn/core/server/mocks'; import { loggerMock } from '@kbn/logging-mocks'; import { ProfilingESField } from '@kbn/profiling-utils'; -import { ProfilingESClient } from '../utils/create_profiling_es_client'; +import type { ProfilingESClient } from '../utils/create_profiling_es_client'; import { topNElasticSearchQuery } from './topn'; const anyQuery = 'any::query'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/topn.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/topn.ts index a675cc8e4b31a..ca3385cf487ed 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/topn.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/topn.ts @@ -14,11 +14,13 @@ import { TopNType, } from '@kbn/profiling-utils'; import { profilingShowErrorFrames } from '@kbn/observability-plugin/common'; -import { IDLE_SOCKET_TIMEOUT, RouteRegisterParameters } from '.'; +import type { RouteRegisterParameters } from '.'; +import { IDLE_SOCKET_TIMEOUT } from '.'; import { getRoutePaths, INDEX_EVENTS } from '../../common'; import { computeBucketWidthFromTimeRangeAndBucketCount } from '../../common/histogram'; -import { createTopNSamples, getTopNAggregationRequest, TopNResponse } from '../../common/topn'; -import { ProfilingESClient } from '../utils/create_profiling_es_client'; +import type { TopNResponse } from '../../common/topn'; +import { createTopNSamples, getTopNAggregationRequest } from '../../common/topn'; +import type { ProfilingESClient } from '../utils/create_profiling_es_client'; import { handleRouteHandlerError } from '../utils/handle_route_error_handler'; import { withProfilingSpan } from '../utils/with_profiling_span'; import { getClient } from './compat'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/types.ts b/x-pack/solutions/observability/plugins/profiling/server/types.ts index 78d92b18fdf06..3b0133db2b3e1 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/types.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/types.ts @@ -5,19 +5,19 @@ * 2.0. */ -import { CustomRequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; +import type { CustomRequestHandlerContext } from '@kbn/core-http-request-handler-context-server'; import type { FeaturesPluginSetup } from '@kbn/features-plugin/server'; import type { ObservabilityPluginSetup } from '@kbn/observability-plugin/server'; -import { SpacesPluginStart, SpacesPluginSetup } from '@kbn/spaces-plugin/server'; -import { CloudSetup, CloudStart } from '@kbn/cloud-plugin/server'; -import { FleetSetupContract, FleetStartContract } from '@kbn/fleet-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { +import type { SpacesPluginStart, SpacesPluginSetup } from '@kbn/spaces-plugin/server'; +import type { CloudSetup, CloudStart } from '@kbn/cloud-plugin/server'; +import type { FleetSetupContract, FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { ProfilingDataAccessPluginSetup, ProfilingDataAccessPluginStart, } from '@kbn/profiling-data-access-plugin/server'; -import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; -import { +import type { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { ApmDataAccessPluginSetup, ApmDataAccessPluginStart, } from '@kbn/apm-data-access-plugin/server'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/utils/create_profiling_es_client.ts b/x-pack/solutions/observability/plugins/profiling/server/utils/create_profiling_es_client.ts index 402314ba891e4..aca25abfd56f2 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/utils/create_profiling_es_client.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/utils/create_profiling_es_client.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { KibanaRequest } from '@kbn/core/server'; import { unwrapEsResponse } from '@kbn/observability-plugin/server'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import type { AggregationField, BaseFlameGraph, diff --git a/x-pack/solutions/observability/plugins/profiling/server/utils/handle_route_error_handler.ts b/x-pack/solutions/observability/plugins/profiling/server/utils/handle_route_error_handler.ts index 6e50953877550..3697705f2b2e4 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/utils/handle_route_error_handler.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/utils/handle_route_error_handler.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { KibanaResponseFactory } from '@kbn/core-http-server'; -import { Logger } from '@kbn/logging'; +import type { KibanaResponseFactory } from '@kbn/core-http-server'; +import type { Logger } from '@kbn/logging'; import { WrappedElasticsearchClientError } from '@kbn/observability-plugin/server'; import { errors } from '@elastic/elasticsearch'; diff --git a/x-pack/solutions/observability/plugins/profiling/server/utils/with_profiling_span.ts b/x-pack/solutions/observability/plugins/profiling/server/utils/with_profiling_span.ts index 6d366799780e7..201b9643cb49d 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/utils/with_profiling_span.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/utils/with_profiling_span.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { withSpan, SpanOptions, parseSpanOptions } from '@kbn/apm-utils'; +import type { SpanOptions } from '@kbn/apm-utils'; +import { withSpan, parseSpanOptions } from '@kbn/apm-utils'; export function withProfilingSpan( optionsOrName: SpanOptions | string, diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.test.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.test.ts index 3071177cab26e..4d80a7d47c3e6 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.test.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.test.ts @@ -5,11 +5,8 @@ * 2.0. */ -import { - areCloudResourcesSetup, - createDefaultCloudSetupState, - PartialCloudSetupState, -} from './cloud_setup'; +import type { PartialCloudSetupState } from './cloud_setup'; +import { areCloudResourcesSetup, createDefaultCloudSetupState } from './cloud_setup'; import { mergePartialSetupStates } from './setup'; const createCloudState = (available: boolean): PartialCloudSetupState => ({ cloud: { available } }); diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.ts index 1c03451cbd2b2..095f40c2c5e5e 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/cloud_setup.ts @@ -6,12 +6,8 @@ */ import type { RecursivePartial } from '@elastic/eui'; import type { PackagePolicyClient } from '@kbn/fleet-plugin/server'; -import { - areResourcesSetup, - createDefaultSetupState, - ProfilingSetupOptions, - SetupState, -} from './setup'; +import type { ProfilingSetupOptions, SetupState } from './setup'; +import { areResourcesSetup, createDefaultSetupState } from './setup'; export interface ProfilingCloudSetupOptions extends ProfilingSetupOptions { packagePolicyClient: PackagePolicyClient; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/cluster_settings.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/cluster_settings.ts index e1e65330f47d4..beff3dbeee34d 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/cluster_settings.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/cluster_settings.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PartialSetupState, ProfilingSetupOptions } from './setup'; +import type { PartialSetupState, ProfilingSetupOptions } from './setup'; export const MAX_BUCKETS = 150000; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/fleet_policies.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/fleet_policies.ts index ecdd2fc1cc684..5315ba450b7b5 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/fleet_policies.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/fleet_policies.ts @@ -7,9 +7,10 @@ import type { SavedObjectsClientContract } from '@kbn/core/server'; import type { PackagePolicyClient } from '@kbn/fleet-plugin/server'; -import { PACKAGE_POLICY_SAVED_OBJECT_TYPE, PackagePolicy } from '@kbn/fleet-plugin/common'; +import type { PackagePolicy } from '@kbn/fleet-plugin/common'; +import { PACKAGE_POLICY_SAVED_OBJECT_TYPE } from '@kbn/fleet-plugin/common'; import { getApmPolicy } from './get_apm_policy'; -import { PartialCloudSetupState, ProfilingCloudSetupOptions } from './cloud_setup'; +import type { PartialCloudSetupState, ProfilingCloudSetupOptions } from './cloud_setup'; export const COLLECTOR_PACKAGE_POLICY_NAME = 'elastic-universal-profiling-collector'; export const SYMBOLIZER_PACKAGE_POLICY_NAME = 'elastic-universal-profiling-symbolizer'; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/has_profiling_data.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/has_profiling_data.ts index 1f62b6e1510a9..d51d1e67d641c 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/has_profiling_data.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/has_profiling_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PartialSetupState, ProfilingSetupOptions } from './setup'; +import type { PartialSetupState, ProfilingSetupOptions } from './setup'; export async function hasProfilingData({ clientWithProfilingAuth, diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts index 788cb0106861c..639b5ac5174cd 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import type { ElasticsearchClient } from '@kbn/core/server'; import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.test.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.test.ts index 5b63b64732da8..175dbe62fce83 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.test.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.test.ts @@ -5,12 +5,8 @@ * 2.0. */ -import { - mergePartialSetupStates, - PartialSetupState, - areResourcesSetup, - createDefaultSetupState, -} from './setup'; +import type { PartialSetupState } from './setup'; +import { mergePartialSetupStates, areResourcesSetup, createDefaultSetupState } from './setup'; const createDataState = (available: boolean): PartialSetupState => ({ data: { available } }); diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.ts index de80da6c7532e..d2b23bea4a03f 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/setup.ts @@ -4,10 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { RecursivePartial } from '@elastic/eui'; +import type { RecursivePartial } from '@elastic/eui'; import type { Logger, SavedObjectsClientContract } from '@kbn/core/server'; import { merge } from 'lodash'; -import { ProfilingESClient } from './profiling_es_client'; +import type { ProfilingESClient } from './profiling_es_client'; export interface ProfilingSetupOptions { client: ProfilingESClient; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/index.ts index c245297c86bd8..03b4656e2b68f 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/index.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; import type { PluginInitializerContext } from '@kbn/core/server'; import type { ProfilingDataAccessPluginSetup, ProfilingDataAccessPluginStart } from './plugin'; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/plugin.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/plugin.ts index 12705b9508c30..f7e5b5a436104 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/plugin.ts @@ -12,10 +12,10 @@ import type { Plugin, PluginInitializerContext, } from '@kbn/core/server'; -import { ProfilingConfig } from '.'; +import type { ProfilingConfig } from '.'; import { registerServices } from './services/register_services'; import { createProfilingEsClient } from './utils/create_profiling_es_client'; -import { ProfilingPluginStartDeps } from './types'; +import type { ProfilingPluginStartDeps } from './types'; export type ProfilingDataAccessPluginSetup = ReturnType; export type ProfilingDataAccessPluginStart = ReturnType; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/fetch_flamechart/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/fetch_flamechart/index.ts index 5fe47a9e56079..9280cba74579f 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/fetch_flamechart/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/fetch_flamechart/index.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; import { profilingAWSCostDiscountRate, profilingCo2PerKWH, @@ -16,7 +16,7 @@ import { profilingAzureCostDiscountRate, } from '@kbn/observability-plugin/common'; import { percentToFactor } from '../../utils/percent_to_factor'; -import { RegisterServicesParams } from '../register_services'; +import type { RegisterServicesParams } from '../register_services'; export interface FetchFlamechartParams { esClient: ElasticsearchClient; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts index 2692af8f2fdc0..abda08a1a6a62 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts @@ -14,15 +14,11 @@ import { profilingAzureCostDiscountRate, profilingShowErrorFrames, } from '@kbn/observability-plugin/common'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; -import { - AggregationField, - convertTonsToKgs, - ESTopNFunctions, - TopNFunctions, -} from '@kbn/profiling-utils'; -import { RegisterServicesParams } from '../register_services'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; +import type { AggregationField, ESTopNFunctions, TopNFunctions } from '@kbn/profiling-utils'; +import { convertTonsToKgs } from '@kbn/profiling-utils'; +import type { RegisterServicesParams } from '../register_services'; import { percentToFactor } from '../../utils/percent_to_factor'; export interface FetchFunctionsParams { diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/index.ts index 5f3e8fae8c89b..fe1d8340931d7 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/index.ts @@ -14,12 +14,12 @@ import { profilingAzureCostDiscountRate, profilingShowErrorFrames, } from '@kbn/observability-plugin/common'; -import { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; +import type { CoreRequestHandlerContext, ElasticsearchClient } from '@kbn/core/server'; import { createTopNFunctions } from '@kbn/profiling-utils'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { percentToFactor } from '../../utils/percent_to_factor'; import { withProfilingSpan } from '../../utils/with_profiling_span'; -import { RegisterServicesParams } from '../register_services'; +import type { RegisterServicesParams } from '../register_services'; import { searchStackTraces } from '../search_stack_traces'; export interface FetchFunctionsParams { diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/register_services.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/register_services.ts index 57cb21ee57a74..468451c46a706 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/register_services.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/register_services.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { CloudStart } from '@kbn/cloud-plugin/server'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { CloudStart } from '@kbn/cloud-plugin/server'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { FleetStartContract } from '@kbn/fleet-plugin/server'; import { createFetchFlamechart } from './fetch_flamechart'; import { createGetStatusService } from './status'; -import { ProfilingESClient } from '../../common/profiling_es_client'; +import type { ProfilingESClient } from '../../common/profiling_es_client'; import { createFetchFunctions } from './functions'; import { createSetupState } from './setup_state'; import { createFetchESFunctions } from './functions/es_functions'; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/search_stack_traces/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/search_stack_traces/index.ts index 5ed44f9b0f6d0..d246ceaf96104 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/search_stack_traces/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/search_stack_traces/index.ts @@ -6,8 +6,8 @@ */ import { decodeStackTraceResponse } from '@kbn/profiling-utils'; -import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { ProfilingESClient } from '../../../common/profiling_es_client'; +import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import type { ProfilingESClient } from '../../../common/profiling_es_client'; interface Params { client: ProfilingESClient; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/cloud_setup_state.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/cloud_setup_state.ts index 3673e4191e3fc..ea7cc7fa7762d 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/cloud_setup_state.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/cloud_setup_state.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { RecursivePartial } from '@elastic/eui'; -import { ProfilingCloudSetupOptions } from '../../../common'; -import { CloudSetupState, createDefaultCloudSetupState } from '../../../common/cloud_setup'; +import type { RecursivePartial } from '@elastic/eui'; +import type { ProfilingCloudSetupOptions } from '../../../common'; +import type { CloudSetupState } from '../../../common/cloud_setup'; +import { createDefaultCloudSetupState } from '../../../common/cloud_setup'; import { validateMaximumBuckets, validateResourceManagement, diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/index.ts index 6e1b62b28f85d..ada348dcf986d 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/index.ts @@ -4,11 +4,11 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { IScopedClusterClient, SavedObjectsClientContract } from '@kbn/core/server'; +import type { IScopedClusterClient, SavedObjectsClientContract } from '@kbn/core/server'; import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common'; -import { CloudSetupStateType } from '../../../common/cloud_setup'; -import { SetupStateType } from '../../../common/setup'; -import { RegisterServicesParams } from '../register_services'; +import type { CloudSetupStateType } from '../../../common/cloud_setup'; +import type { SetupStateType } from '../../../common/setup'; +import type { RegisterServicesParams } from '../register_services'; import { cloudSetupState } from './cloud_setup_state'; import { selfManagedSetupState } from './self_managed_setup_state'; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/self_managed_setup_state.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/self_managed_setup_state.ts index ac7ff7ae7459e..1ea23616d4b2e 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/self_managed_setup_state.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/setup_state/self_managed_setup_state.ts @@ -10,12 +10,8 @@ import { validateResourceManagement, } from '../../../common/cluster_settings'; import { hasProfilingData } from '../../../common/has_profiling_data'; -import { - createDefaultSetupState, - mergePartialSetupStates, - ProfilingSetupOptions, - SetupState, -} from '../../../common/setup'; +import type { ProfilingSetupOptions, SetupState } from '../../../common/setup'; +import { createDefaultSetupState, mergePartialSetupStates } from '../../../common/setup'; export async function selfManagedSetupState(params: ProfilingSetupOptions): Promise { const state = createDefaultSetupState(); diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/status/index.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/status/index.ts index b7f791a166385..8042853bf81dd 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/status/index.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/status/index.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { IScopedClusterClient, SavedObjectsClientContract } from '@kbn/core/server'; -import { ProfilingStatus } from '@kbn/profiling-utils'; +import type { IScopedClusterClient, SavedObjectsClientContract } from '@kbn/core/server'; +import type { ProfilingStatus } from '@kbn/profiling-utils'; import { areCloudResourcesSetup } from '../../../common/cloud_setup'; import { areResourcesSetup } from '../../../common/setup'; -import { RegisterServicesParams } from '../register_services'; +import type { RegisterServicesParams } from '../register_services'; import { getSetupState } from '../setup_state'; export interface HasSetupParams { diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/types.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/types.ts index f7adb62b63b19..04eef1084033e 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/types.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/types.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CloudStart } from '@kbn/cloud-plugin/server'; -import { FleetStartContract } from '@kbn/fleet-plugin/server'; +import type { CloudStart } from '@kbn/cloud-plugin/server'; +import type { FleetStartContract } from '@kbn/fleet-plugin/server'; export interface ProfilingPluginStartDeps { fleet?: FleetStartContract; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts index e80a36087b533..5e595a3ce0eb0 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { BaseFlameGraph, @@ -13,7 +13,7 @@ import type { ProfilingStatusResponse, StackTraceResponse, } from '@kbn/profiling-utils'; -import { ProfilingESClient } from '../../common/profiling_es_client'; +import type { ProfilingESClient } from '../../common/profiling_es_client'; import { unwrapEsResponse } from './unwrap_es_response'; import { withProfilingSpan } from './with_profiling_span'; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/with_profiling_span.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/with_profiling_span.ts index 6d366799780e7..201b9643cb49d 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/with_profiling_span.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/with_profiling_span.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { withSpan, SpanOptions, parseSpanOptions } from '@kbn/apm-utils'; +import type { SpanOptions } from '@kbn/apm-utils'; +import { withSpan, parseSpanOptions } from '@kbn/apm-utils'; export function withProfilingSpan( optionsOrName: SpanOptions | string, diff --git a/x-pack/solutions/observability/plugins/slo/public/application.tsx b/x-pack/solutions/observability/plugins/slo/public/application.tsx index 12019ae1fdf75..813b13d9c0c88 100644 --- a/x-pack/solutions/observability/plugins/slo/public/application.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/application.tsx @@ -145,7 +145,7 @@ function App() { const routes = getRoutes(isServerless); return ( - + {Object.keys(routes).map((path) => { const { handler, exact } = routes[path]; const Wrapper = () => { diff --git a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/group_view.tsx b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/group_view.tsx index 76221ecabe496..db2e2a213a20a 100644 --- a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/group_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/group_view.tsx @@ -9,16 +9,14 @@ import { Filter } from '@kbn/es-query'; import React, { useEffect, useState } from 'react'; import { Subject } from 'rxjs'; import { GroupView } from '../../../../pages/slos/components/grouped_slos/group_view'; -import { GroupByField } from '../../../../pages/slos/components/slo_list_group_by'; -import { SLOView } from '../../../../pages/slos/components/toggle_slo_view'; -import { SortField } from '../../../../pages/slos/hooks/use_url_search_state'; +import type { ViewType, GroupByField, SortField } from '../../../../pages/slos/types'; import { buildCombinedKqlQuery } from './helpers/build_kql_query'; interface Props { groupBy: GroupByField; groups?: string[]; kqlQuery?: string; - view: SLOView; + view: ViewType; sort?: SortField; filters?: Filter[]; reloadSubject: Subject; diff --git a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.test.ts b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.test.ts index fff968f7459f3..8d007e99c831d 100644 --- a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.test.ts +++ b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GroupByField } from '../../../../../pages/slos/components/slo_list_group_by'; +import type { GroupByField } from '../../../../../pages/slos/types'; import { buildCombinedKqlQuery } from './build_kql_query'; describe('buildCombinedKqlQuery', () => { diff --git a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.ts b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.ts index 019536a2156a5..1319bbdb39009 100644 --- a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.ts +++ b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/group_view/helpers/build_kql_query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GroupByField } from '../../../../../pages/slos/components/slo_list_group_by'; +import type { GroupByField } from '../../../../../pages/slos/types'; interface Props { kqlQuery: string; diff --git a/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_groups.ts b/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_groups.ts index 4b409a2c56562..da9b93e0eb209 100644 --- a/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_groups.ts +++ b/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_groups.ts @@ -18,7 +18,7 @@ import { DEFAULT_SLO_GROUPS_PAGE_SIZE, SLO_SUMMARY_DESTINATION_INDEX_PATTERN, } from '../../common/constants'; -import { GroupByField } from '../pages/slos/components/slo_list_group_by'; +import type { GroupByField } from '../pages/slos/types'; import { SearchState } from '../pages/slos/hooks/use_url_search_state'; import { useKibana } from './use_kibana'; import { sloKeys } from './query_key_factory'; diff --git a/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_list.ts b/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_list.ts index aba2fe66dcb03..2ed986fd1ffc8 100644 --- a/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_list.ts +++ b/x-pack/solutions/observability/plugins/slo/public/hooks/use_fetch_slo_list.ts @@ -14,11 +14,12 @@ import { DEFAULT_SLO_PAGE_SIZE, SLO_SUMMARY_DESTINATION_INDEX_PATTERN, } from '../../common/constants'; -import { SearchState, SortDirection, SortField } from '../pages/slos/hooks/use_url_search_state'; +import { SearchState } from '../pages/slos/hooks/use_url_search_state'; import { useKibana } from './use_kibana'; import { sloKeys } from './query_key_factory'; import { useCreateDataView } from './use_create_data_view'; import { usePluginContext } from './use_plugin_context'; +import type { SortDirection, SortField } from '../pages/slos/types'; export interface SLOListParams { kqlQuery?: string; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/common/sort_by_select.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/common/sort_by_select.tsx index 189dbee8b4f8c..d7114800f5bec 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/common/sort_by_select.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/common/sort_by_select.tsx @@ -9,9 +9,10 @@ import { EuiPanel, EuiSelectableOption, EuiText } from '@elastic/eui'; import { EuiSelectableOptionCheckedType } from '@elastic/eui/src/components/selectable/selectable_option'; import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; -import type { SortField, SearchState } from '../../hooks/use_url_search_state'; +import type { SearchState } from '../../hooks/use_url_search_state'; import type { Option } from '../slo_context_menu'; import { ContextMenuItem, SLOContextMenu } from '../slo_context_menu'; +import type { SortField } from '../../types'; export interface Props { onStateChange: (newState: Partial) => void; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_list_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_list_view.tsx index a433b57073e3b..98e4d64283486 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_list_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_list_view.tsx @@ -28,16 +28,14 @@ import { paths } from '../../../../../common/locators/paths'; import { useFetchSloList } from '../../../../hooks/use_fetch_slo_list'; import { useKibana } from '../../../../hooks/use_kibana'; import { useSloFormattedSLIValue } from '../../hooks/use_slo_summary'; -import type { SortDirection, SortField } from '../../hooks/use_url_search_state'; import { SlosView } from '../slos_view'; -import { GroupByField } from '../slo_list_group_by'; -import { SLOView } from '../toggle_slo_view'; +import type { ViewType, GroupByField, SortDirection, SortField } from '../../types'; import { useGroupName } from './hooks/use_group_name'; interface Props { group: string; kqlQuery?: string; - view: SLOView; + view: ViewType; sort?: SortField; direction?: SortDirection; groupBy: GroupByField; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_view.tsx index 3cec6fef539e6..bbccbfb40b532 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/group_view.tsx @@ -8,10 +8,8 @@ import { EuiEmptyPrompt, EuiFlexItem, EuiLoadingSpinner, EuiTablePagination } fr import { Filter } from '@kbn/es-query'; import React, { useEffect } from 'react'; import { useFetchSloGroups } from '../../../../hooks/use_fetch_slo_groups'; -import type { SortDirection } from '../../hooks/use_url_search_state'; -import { SortField, useUrlSearchState } from '../../hooks/use_url_search_state'; -import { GroupByField } from '../slo_list_group_by'; -import { SLOView } from '../toggle_slo_view'; +import { useUrlSearchState } from '../../hooks/use_url_search_state'; +import type { ViewType, GroupByField, SortDirection, SortField } from '../../types'; import { SloGroupListEmpty } from './group_list_empty'; import { SloGroupListError } from './group_list_error'; import { GroupListView } from './group_list_view'; @@ -19,7 +17,7 @@ import { GroupListView } from './group_list_view'; interface Props { groupBy: GroupByField; kqlQuery?: string; - view: SLOView; + view: ViewType; sort?: SortField; direction?: SortDirection; filters?: Filter[]; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/hooks/use_group_name.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/hooks/use_group_name.ts index ba19459d4dded..689c0ec1819d8 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/hooks/use_group_name.ts +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/grouped_slos/hooks/use_group_name.ts @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import { ALL_VALUE, GroupSummary } from '@kbn/slo-schema'; import { assertNever } from '@kbn/std'; import { SLI_OPTIONS } from '../../../../slo_edit/constants'; -import { GroupByField } from '../../slo_list_group_by'; +import type { GroupByField } from '../../../types'; export function useGroupName(groupBy: GroupByField, group: string, summary?: GroupSummary) { const groupName = group.toLowerCase(); diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_list_group_by.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_list_group_by.tsx index 7223f91d49519..a7f0de71e1054 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_list_group_by.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_list_group_by.tsx @@ -12,14 +12,8 @@ import { useGetSettings } from '../../slo_settings/hooks/use_get_settings'; import type { SearchState } from '../hooks/use_url_search_state'; import type { Option } from './slo_context_menu'; import { ContextMenuItem, SLOContextMenu } from './slo_context_menu'; +import type { GroupByField } from '../types'; -export type GroupByField = - | 'ungrouped' - | 'slo.tags' - | 'status' - | 'slo.indicator.type' - | 'slo.instanceId' - | '_index'; export interface Props { onStateChange: (newState: Partial) => void; state: SearchState; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx index eca4282508404..02b624577ab9b 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx @@ -14,13 +14,13 @@ import { HealthCallout } from './health_callout/health_callout'; import { SloListEmpty } from './slo_list_empty'; import { SloListError } from './slo_list_error'; import { SloListView } from './slo_list_view/slo_list_view'; -import { SLOView } from './toggle_slo_view'; +import type { ViewType } from '../types'; export interface Props { sloList: SLOWithSummaryResponse[]; loading: boolean; error: boolean; - view: SLOView; + view: ViewType; } export function SlosView({ sloList, loading, error, view }: Props) { diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/toggle_slo_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/toggle_slo_view.tsx index a6a35912269a1..03470fd0dde5f 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/toggle_slo_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/toggle_slo_view.tsx @@ -13,12 +13,12 @@ import React from 'react'; import type { SearchState } from '../hooks/use_url_search_state'; import { SLOSortBy } from './common/sort_by_select'; import { SloGroupBy } from './slo_list_group_by'; -export type SLOView = 'cardView' | 'listView' | 'compactView'; +import type { ViewType } from '../types'; interface Props { - onChangeView: (view: SLOView) => void; + onChangeView: (view: ViewType) => void; onStateChange: (newState: Partial) => void; - view: SLOView; + view: ViewType; state: SearchState; sloList?: FindSLOResponse; loading: boolean; @@ -96,7 +96,7 @@ export function ToggleSLOView({ })} options={toggleButtonsIcons} idSelected={view} - onChange={(id) => onChangeView(id as SLOView)} + onChange={(id) => onChangeView(id as ViewType)} isIconOnly isDisabled={loading} /> diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/ungrouped_slos/ungrouped_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/ungrouped_slos/ungrouped_view.tsx index 0374204b7e651..a96d3ba963634 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/ungrouped_slos/ungrouped_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/ungrouped_slos/ungrouped_view.tsx @@ -10,13 +10,13 @@ import { FindSLOResponse } from '@kbn/slo-schema'; import React from 'react'; import { useUrlSearchState } from '../../hooks/use_url_search_state'; import { SlosView } from '../slos_view'; -import { SLOView } from '../toggle_slo_view'; +import type { ViewType } from '../../types'; export interface Props { sloList: FindSLOResponse | undefined; loading: boolean; error: boolean; - view: SLOView; + view: ViewType; } export function UngroupedView({ sloList, loading, error, view }: Props) { diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_url_search_state.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_url_search_state.ts index 5da3b4596ed71..e3d81c3d1144b 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_url_search_state.ts +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_url_search_state.ts @@ -6,25 +6,19 @@ */ import type { Filter } from '@kbn/es-query'; -import { createKbnUrlStateStorage } from '@kbn/kibana-utils-plugin/public'; +import { + createKbnUrlStateStorage, + createSessionStorageStateStorage, +} from '@kbn/kibana-utils-plugin/public'; import deepmerge from 'deepmerge'; +import { pick } from 'lodash'; import { useCallback, useEffect, useRef, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { DEFAULT_SLO_PAGE_SIZE } from '../../../../common/constants'; -import type { GroupByField } from '../components/slo_list_group_by'; -import type { SLOView } from '../components/toggle_slo_view'; +import type { GroupByField, SortDirection, SortField, ViewType } from '../types'; export const SLO_LIST_SEARCH_URL_STORAGE_KEY = 'search'; -export type SortField = - | 'sli_value' - | 'error_budget_consumed' - | 'error_budget_remaining' - | 'status' - | 'burn_rate_5m' - | 'burn_rate_1h' - | 'burn_rate_1d'; - -export type SortDirection = 'asc' | 'desc'; +export const SLO_LIST_SEARCH_SESSION_STORAGE_KEY = 'slo.list_page_search_state'; export interface SearchState { kqlQuery: string; @@ -34,7 +28,7 @@ export interface SearchState { by: SortField; direction: SortDirection; }; - view: SLOView; + view: ViewType; groupBy: GroupByField; filters: Filter[]; lastRefresh?: number; @@ -42,13 +36,13 @@ export interface SearchState { statusFilter?: Filter; } -export const DEFAULT_STATE = { +export const DEFAULT_STATE: SearchState = { kqlQuery: '', page: 0, perPage: DEFAULT_SLO_PAGE_SIZE, - sort: { by: 'status' as const, direction: 'desc' as const }, - view: 'cardView' as const, - groupBy: 'ungrouped' as const, + sort: { by: 'status', direction: 'desc' }, + view: 'cardView', + groupBy: 'ungrouped', filters: [], lastRefresh: 0, }; @@ -67,6 +61,8 @@ export function useUrlSearchState(): { }) ); + const sessionStorage = useRef(createSessionStorageStateStorage(window.localStorage)); + useEffect(() => { const sub = urlStateStorage.current ?.change$(SLO_LIST_SEARCH_URL_STORAGE_KEY) @@ -77,21 +73,30 @@ export function useUrlSearchState(): { }); setState( - urlStateStorage.current?.get(SLO_LIST_SEARCH_URL_STORAGE_KEY) ?? DEFAULT_STATE + urlStateStorage.current?.get(SLO_LIST_SEARCH_URL_STORAGE_KEY) ?? + sessionStorage.current?.get(SLO_LIST_SEARCH_SESSION_STORAGE_KEY) ?? + DEFAULT_STATE ); return () => { sub?.unsubscribe(); }; - }, [urlStateStorage]); + }, [urlStateStorage, sessionStorage]); const onStateChange = useCallback( (newState: Partial) => { const updatedState = { ...state, page: 0, ...newState }; - setState((stateN) => updatedState); + setState(() => updatedState); + urlStateStorage.current?.set(SLO_LIST_SEARCH_URL_STORAGE_KEY, updatedState, { replace: true, }); + + // Discard search itself from session storage. Keep only view preferences + sessionStorage.current?.set( + SLO_LIST_SEARCH_SESSION_STORAGE_KEY, + pick(updatedState, 'sort', 'view', 'groupBy') + ); }, [state] ); diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/types.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slos/types.ts new file mode 100644 index 0000000000000..aae9533a8a542 --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/types.ts @@ -0,0 +1,24 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +export type ViewType = 'cardView' | 'listView' | 'compactView'; +export type GroupByField = + | 'ungrouped' + | 'slo.tags' + | 'status' + | 'slo.indicator.type' + | 'slo.instanceId' + | '_index'; +export type SortDirection = 'asc' | 'desc'; +export type SortField = + | 'sli_value' + | 'error_budget_consumed' + | 'error_budget_remaining' + | 'status' + | 'burn_rate_5m' + | 'burn_rate_1h' + | 'burn_rate_1d'; diff --git a/x-pack/solutions/observability/plugins/slo/server/plugin.ts b/x-pack/solutions/observability/plugins/slo/server/plugin.ts index e7b25fe06ef32..c7a5a1dda3280 100644 --- a/x-pack/solutions/observability/plugins/slo/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/slo/server/plugin.ts @@ -160,8 +160,8 @@ export class SLOPlugin const sloInstaller = new DefaultSLOInstaller(sloResourceInstaller, this.logger); await sloInstaller.install(); }) - .catch((error) => { - this.logger.error(`Failed to install the default SLOs: ${error}`); + .catch(() => { + // noop - error already logged from the installer }); this.sloOrphanCleanupTask = new SloOrphanSummaryCleanupTask( diff --git a/x-pack/solutions/observability/plugins/slo/server/services/create_slo.ts b/x-pack/solutions/observability/plugins/slo/server/services/create_slo.ts index a8e01fb4681f4..c74f49c1ccac8 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/create_slo.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/create_slo.ts @@ -100,14 +100,14 @@ export class CreateSLO { ]); } catch (err) { this.logger.error( - `Cannot install the SLO [id: ${slo.id}, revision: ${slo.revision}]. Rolling back.` + `Cannot create the SLO [id: ${slo.id}, revision: ${slo.revision}]. Rolling back. ${err}` ); await asyncForEach(rollbackOperations.reverse(), async (operation) => { try { await operation(); } catch (rollbackErr) { - this.logger.error('Rollback operation failed', rollbackErr); + this.logger.error(`Rollback operation failed. ${rollbackErr}`); } }); diff --git a/x-pack/solutions/observability/plugins/slo/server/services/reset_slo.ts b/x-pack/solutions/observability/plugins/slo/server/services/reset_slo.ts index c9da382c2d6ce..e91e720b4fd8d 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/reset_slo.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/reset_slo.ts @@ -87,7 +87,7 @@ export class ResetSLO { ); } catch (err) { this.logger.error( - `Cannot reset the SLO [id: ${slo.id}, revision: ${slo.revision}]. Rolling back.` + `Cannot reset the SLO [id: ${slo.id}, revision: ${slo.revision}]. Rolling back. ${err}` ); await this.summaryTransformManager.stop(summaryTransformId); diff --git a/x-pack/solutions/observability/plugins/slo/server/services/resource_installer.ts b/x-pack/solutions/observability/plugins/slo/server/services/resource_installer.ts index b81fbe183c4ff..d6544d352f90f 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/resource_installer.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/resource_installer.ts @@ -79,7 +79,7 @@ export class DefaultResourceInstaller implements ResourceInstaller { await this.createIndex(SLO_SUMMARY_DESTINATION_INDEX_NAME); await this.createIndex(SLO_SUMMARY_TEMP_INDEX_NAME); } catch (err) { - this.logger.error(`Error installing resources shared for SLO: ${err.message}`); + this.logger.error(`Error while installing SLO shared resources: ${err}`); throw err; } } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/slo_installer.ts b/x-pack/solutions/observability/plugins/slo/server/services/slo_installer.ts index 9484ecd907d9f..eab4c266aae8e 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/slo_installer.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/slo_installer.ts @@ -29,7 +29,7 @@ export class DefaultSLOInstaller implements SLOInstaller { await this.sloResourceInstaller.ensureCommonResourcesInstalled(); } catch (error) { - this.logger.error('Failed to install SLO common resources'); + this.logger.error(`Failed to install SLO common resources: ${error}`); } finally { this.isInstalling = false; clearTimeout(installTimeout); diff --git a/x-pack/solutions/observability/plugins/slo/server/services/summary_search_client.ts b/x-pack/solutions/observability/plugins/slo/server/services/summary_search_client.ts index 6493e613bbedc..c4f0de5b38b25 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/summary_search_client.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/summary_search_client.ts @@ -6,11 +6,12 @@ */ import { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types'; +import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ElasticsearchClient, Logger, SavedObjectsClientContract } from '@kbn/core/server'; +import { isCCSRemoteIndexName } from '@kbn/es-query'; import { ALL_VALUE, Paginated, Pagination } from '@kbn/slo-schema'; import { assertNever } from '@kbn/std'; import { partition } from 'lodash'; -import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { SLO_SUMMARY_DESTINATION_INDEX_PATTERN } from '../../common/constants'; import { Groupings, SLODefinition, SLOId, StoredSLOSettings, Summary } from '../domain/models'; import { toHighPrecision } from '../utils/number'; @@ -177,7 +178,7 @@ export class DefaultSummarySearchClient implements SummarySearchClient { }), }; } catch (err) { - this.logger.error(new Error(`Summary search query error, ${err.message}`, { cause: err })); + this.logger.error(`Error while searching SLO summary documents. ${err}`); return { total: 0, perPage: pagination.perPage, page: pagination.page, results: [] }; } } @@ -225,8 +226,8 @@ function excludeStaleSummaryFilter( } function getRemoteClusterName(index: string) { - if (index.includes(':')) { - return index.split(':')[0]; + if (isCCSRemoteIndexName(index)) { + return index.substring(0, index.indexOf(':')); } } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/summay_transform_manager.ts b/x-pack/solutions/observability/plugins/slo/server/services/summay_transform_manager.ts index 27d24e7fb5039..9389210505b4c 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/summay_transform_manager.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/summay_transform_manager.ts @@ -32,7 +32,7 @@ export class DefaultSummaryTransformManager implements TransformManager { } ); } catch (err) { - this.logger.error(`Cannot create summary transform for SLO [${slo.id}]`); + this.logger.error(`Cannot create summary transform for SLO [${slo.id}]. ${err}`); if (err.meta?.body?.error?.type === 'security_exception') { throw new SecurityException(err.meta.body.error.reason); } @@ -57,7 +57,7 @@ export class DefaultSummaryTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot preview SLO summary transform [${transformId}]`); + this.logger.error(`Cannot preview SLO summary transform [${transformId}]. ${err}`); throw err; } } @@ -75,7 +75,7 @@ export class DefaultSummaryTransformManager implements TransformManager { } ); } catch (err) { - this.logger.error(`Cannot start SLO summary transform [${transformId}]`); + this.logger.error(`Cannot start SLO summary transform [${transformId}]. ${err}`); throw err; } } @@ -91,7 +91,7 @@ export class DefaultSummaryTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot stop SLO summary transform [${transformId}]`); + this.logger.error(`Cannot stop SLO summary transform [${transformId}]. ${err}`); throw err; } } @@ -107,7 +107,7 @@ export class DefaultSummaryTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot delete SLO summary transform [${transformId}]`); + this.logger.error(`Cannot delete SLO summary transform [${transformId}]. ${err}`); throw err; } } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/tasks/orphan_summary_cleanup_task.ts b/x-pack/solutions/observability/plugins/slo/server/services/tasks/orphan_summary_cleanup_task.ts index c3d56854f4946..6d0aa1ee9c587 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/tasks/orphan_summary_cleanup_task.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/tasks/orphan_summary_cleanup_task.ts @@ -67,7 +67,7 @@ export class SloOrphanSummaryCleanupTask { }, cancel: async () => { - this.abortController.abort('[SLO] Definitions clean up Task timed out'); + this.abortController.abort('orphan-slo-summary-cleanup task timed out'); }, }; }, @@ -101,7 +101,7 @@ export class SloOrphanSummaryCleanupTask { if (sloSummaryIdsToDelete.length > 0) { this.logger.info( - `[SLO] Deleting ${sloSummaryIdsToDelete.length} SLO Summaries from the summary index` + `[SLO] Deleting ${sloSummaryIdsToDelete.length} SLO Summary documents from the summary index` ); await this.esClient.deleteByQuery({ @@ -124,7 +124,7 @@ export class SloOrphanSummaryCleanupTask { searchAfter?: AggregationsCompositeAggregateKey; sloSummaryIds: Array<{ id: string; revision: number }>; }> => { - this.logger.debug(`[SLO] Fetching SLO Summaries ids after ${searchAfter}`); + this.logger.debug(`[TASK] Fetching SLO Summary ids after ${searchAfter}`); if (!this.esClient) { return { searchAfter: undefined, @@ -227,7 +227,9 @@ export class SloOrphanSummaryCleanupTask { this.esClient = esClient; if (!taskManager) { - this.logger.info('[SLO] Missing required service during startup, skipping task.'); + this.logger.info( + 'Missing required service during startup, skipping orphan-slo-summary-cleanup task.' + ); return; } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/transform_generators/common.ts b/x-pack/solutions/observability/plugins/slo/server/services/transform_generators/common.ts index 35a6e180650fa..4958a65a17a15 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/transform_generators/common.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/transform_generators/common.ts @@ -39,7 +39,7 @@ export function parseStringFilters(filters: string, logger: Logger) { try { return JSON.parse(filters); } catch (e) { - logger.error(`Failed to parse filters: ${e.message}`); + logger.info(`Failed to parse filters: ${e}`); } return {}; diff --git a/x-pack/solutions/observability/plugins/slo/server/services/transform_manager.ts b/x-pack/solutions/observability/plugins/slo/server/services/transform_manager.ts index 464d1f1aeaa59..c07c8d78a5ca4 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/transform_manager.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/transform_manager.ts @@ -46,7 +46,9 @@ export class DefaultTransformManager implements TransformManager { } ); } catch (err) { - this.logger.error(`Cannot create SLO transform for indicator type [${slo.indicator.type}]`); + this.logger.error( + `Cannot create SLO transform for indicator type [${slo.indicator.type}]. ${err}` + ); if (err.meta?.body?.error?.type === 'security_exception') { throw new SecurityException(err.meta.body.error.reason); } @@ -77,7 +79,7 @@ export class DefaultTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot preview SLO transform [${transformId}]`); + this.logger.error(`Cannot preview SLO transform [${transformId}]. ${err}`); throw err; } } @@ -94,7 +96,7 @@ export class DefaultTransformManager implements TransformManager { ); await this.scheduleNowTransform(transformId); } catch (err) { - this.logger.error(`Cannot start SLO transform [${transformId}]`); + this.logger.error(`Cannot start SLO transform [${transformId}]. ${err}`); throw err; } } @@ -110,7 +112,7 @@ export class DefaultTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot stop SLO transform [${transformId}]`); + this.logger.error(`Cannot stop SLO transform [${transformId}]. ${err}`); throw err; } } @@ -126,7 +128,7 @@ export class DefaultTransformManager implements TransformManager { { logger: this.logger } ); } catch (err) { - this.logger.error(`Cannot delete SLO transform [${transformId}]`); + this.logger.error(`Cannot delete SLO transform [${transformId}]. ${err}`); throw err; } } @@ -138,8 +140,7 @@ export class DefaultTransformManager implements TransformManager { this.logger.debug(`SLO transform [${transformId}] scheduled now successfully`); }) .catch((e) => { - this.logger.error(`Cannot schedule now SLO transform [${transformId}]`); - this.logger.error(e); + this.logger.error(`Cannot schedule now SLO transform [${transformId}]. ${e}`); }); } } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/update_slo.ts b/x-pack/solutions/observability/plugins/slo/server/services/update_slo.ts index 402ca82acecd4..30d62140f80d9 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/update_slo.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/update_slo.ts @@ -103,14 +103,14 @@ export class UpdateSLO { ); } catch (err) { this.logger.error( - `Cannot update the SLO summary pipeline [id: ${updatedSlo.id}, revision: ${updatedSlo.revision}].` + `Cannot update the SLO summary pipeline [id: ${updatedSlo.id}, revision: ${updatedSlo.revision}]. ${err}` ); await asyncForEach(rollbackOperations.reverse(), async (operation) => { try { await operation(); } catch (rollbackErr) { - this.logger.error('Rollback operation failed', rollbackErr); + this.logger.error(`Rollback operation failed. ${rollbackErr}`); } }); @@ -182,14 +182,14 @@ export class UpdateSLO { ); } catch (err) { this.logger.error( - `Cannot update the SLO [id: ${updatedSlo.id}, revision: ${updatedSlo.revision}]. Rolling back.` + `Cannot update the SLO [id: ${updatedSlo.id}, revision: ${updatedSlo.revision}]. Rolling back. ${err}` ); await asyncForEach(rollbackOperations.reverse(), async (operation) => { try { await operation(); } catch (rollbackErr) { - this.logger.error('Rollback operation failed', rollbackErr); + this.logger.error(`Rollback operation failed. ${rollbackErr}`); } }); diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/routes.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/routes.tsx index 8f475f458deef..8c302e6d7a786 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/routes.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/routes.tsx @@ -189,7 +189,7 @@ export const PageRouter: FC = () => { const isUnprivileged = useSyntheticsPrivileges(); return ( - + {routes.map( ({ title, diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.test.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.test.tsx new file mode 100644 index 0000000000000..94c19ba7ce869 --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.test.tsx @@ -0,0 +1,51 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React from 'react'; + +import { MemoryRouter } from 'react-router-dom'; + +import { render, waitFor } from '@testing-library/react'; + +import { useKibana } from '@kbn/kibana-react-plugin/public'; + +import { ApplicationRedirect } from '.'; + +jest.mock('@kbn/kibana-react-plugin/public', () => ({ + useKibana: jest.fn(), +})); + +describe('RedirectWithReplace', () => { + const navigateToUrlMock = jest.fn(); + const coreMock = { + application: { + navigateToUrl: navigateToUrlMock, + }, + }; + + beforeEach(() => { + (useKibana as jest.Mock).mockReturnValue({ services: coreMock }); + + // Mock window.location.pathname + Object.defineProperty(window, 'location', { + writable: true, + value: { pathname: '/enterprise_search/content/search_indices' }, + }); + }); + + it('should redirect to the new path', async () => { + render( + + + + ); + + await waitFor(() => { + expect(navigateToUrlMock).toHaveBeenCalledWith('/elasticsearch/content/search_indices'); + }); + }); +}); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.tsx new file mode 100644 index 0000000000000..d861f9e65c580 --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/index.tsx @@ -0,0 +1,35 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React, { useEffect } from 'react'; + +import { useKibana } from '@kbn/kibana-react-plugin/public'; +import { Routes, Route } from '@kbn/shared-ux-router'; + +const RedirectWithReplace = () => { + const { application } = useKibana().services; + + useEffect(() => { + const fullPath = location.pathname; + + // Construct the new path by replacing 'enterprise_search' with 'elasticsearch' + const newPath = fullPath.replace('/enterprise_search', '/elasticsearch'); + + // Perform the client-side navigation using core + application?.navigateToUrl(newPath); + }, []); + + return null; +}; + +export const ApplicationRedirect = () => { + return ( + + + + ); +}; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/jest.config.js b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/jest.config.js new file mode 100644 index 0000000000000..776cca733229a --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect/jest.config.js @@ -0,0 +1,28 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../../..', + roots: [ + '/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect', + ], + collectCoverage: true, + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/solutions/search/plugins/enterprise_search/public/applications/**/*.{ts,tsx}', + '!/x-pack/solutions/search/plugins/enterprise_search/public/*.ts', + '!/x-pack/solutions/search/plugins/enterprise_search/server/*.ts', + '!/x-pack/solutions/search/plugins/enterprise_search/public/applications/test_helpers/**/*.{ts,tsx}', + ], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_redirect', + modulePathIgnorePatterns: [ + '/x-pack/solutions/search/plugins/enterprise_search/public/applications/app_search/cypress', + '/x-pack/solutions/search/plugins/enterprise_search/public/applications/workplace_search/cypress', + ], +}; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts b/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts index 0a472cd2aa564..6c33d08913c54 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts @@ -489,6 +489,23 @@ export class EnterpriseSearchPlugin implements Plugin { visibleIn: [], }); + core.application.register({ + appRoute: '/app/enterprise_search', + category: DEFAULT_APP_CATEGORIES.enterpriseSearch, + id: 'enterpriseSearchRedirect', + mount: async (params: AppMountParameters) => { + const kibanaDeps = await this.getKibanaDeps(core, params, cloud); + const pluginData = this.getPluginData(); + + const { renderApp } = await import('./applications'); + const { ApplicationRedirect } = await import('./applications/enterprise_search_redirect'); + + return renderApp(ApplicationRedirect, kibanaDeps, pluginData); + }, + title: 'EnterpriseSearchRedirect', + visibleIn: [], + }); + if (plugins.home) { plugins.home.featureCatalogue.registerSolution({ description: ENTERPRISE_SEARCH_OVERVIEW_PLUGIN.DESCRIPTION, diff --git a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx index fb990fc295bbf..51c4b26f6255c 100644 --- a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx +++ b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/actions/chat/index.tsx @@ -6,9 +6,10 @@ */ import React, { FC, useCallback } from 'react'; -import { AssistantAvatar, NewChat } from '@kbn/elastic-assistant'; +import { NewChat } from '@kbn/elastic-assistant'; import styled from 'styled-components'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import { DATA_QUALITY_DASHBOARD_CONVERSATION_ID, DATA_QUALITY_PROMPT_CONTEXT_PILL, @@ -44,7 +45,7 @@ const ChatActionComponent: FC = ({ indexName, markdownComment }) => { iconType={null} > - + {ASK_ASSISTANT} diff --git a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json index 2d76e9b8b0b4b..95cb9be72b6ce 100644 --- a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json +++ b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json @@ -26,5 +26,6 @@ "@kbn/core", "@kbn/core-notifications-browser", "@kbn/core-notifications-browser-mocks", + "@kbn/ai-assistant-icon", ] } diff --git a/x-pack/solutions/security/packages/upselling/sections/attack_discovery/index.tsx b/x-pack/solutions/security/packages/upselling/sections/attack_discovery/index.tsx index 0c6a12c88d7fd..db9bc7c24ea69 100644 --- a/x-pack/solutions/security/packages/upselling/sections/attack_discovery/index.tsx +++ b/x-pack/solutions/security/packages/upselling/sections/attack_discovery/index.tsx @@ -5,10 +5,10 @@ * 2.0. */ -import { EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; import React, { useMemo } from 'react'; +import { EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; +import { AssistantBeacon } from '@kbn/ai-assistant-icon'; -import { AssistantAvatar } from './assistant_avatar/assistant_avatar'; import * as i18n from './translations'; interface Props { @@ -30,7 +30,7 @@ const AttackDiscoveryUpsellingSectionComponent: React.FC = ({ () => ( - + diff --git a/x-pack/solutions/security/packages/upselling/tsconfig.json b/x-pack/solutions/security/packages/upselling/tsconfig.json index 653738495ed81..93486d9365016 100644 --- a/x-pack/solutions/security/packages/upselling/tsconfig.json +++ b/x-pack/solutions/security/packages/upselling/tsconfig.json @@ -20,6 +20,7 @@ "@kbn/i18n", "@kbn/security-solution-navigation", "@kbn/shared-ux-page-kibana-template", + "@kbn/ai-assistant-icon", ], "exclude": [ "target/**/*" diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts index 4a91112c5b905..acae48846c82c 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts @@ -17,7 +17,7 @@ import { z } from '@kbn/zod'; export type IdField = z.infer; -export const IdField = z.enum(['host.name', 'user.name']); +export const IdField = z.enum(['host.name', 'user.name', 'service.name']); export type IdFieldEnum = typeof IdField.enum; export const IdFieldEnum = IdField.enum; @@ -78,6 +78,16 @@ export const AssetCriticalityRecordEcsParts = z.object({ .optional(), }) .optional(), + service: z + .object({ + name: z.string(), + asset: z + .object({ + criticality: AssetCriticalityLevel, + }) + .optional(), + }) + .optional(), }); export type AssetCriticalityRecord = z.infer; diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.schema.yaml index 2bc401d410a2d..2dd4f3f635599 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.schema.yaml @@ -28,6 +28,7 @@ components: enum: - 'host.name' - 'user.name' + - 'service.name' AssetCriticalityRecordIdParts: type: object properties: @@ -109,5 +110,19 @@ components: - 'criticality' required: - 'name' + 'service': + type: object + properties: + 'name': + type: string + 'asset': + type: object + properties: + 'criticality': + $ref: '#/components/schemas/AssetCriticalityLevel' + required: + - 'criticality' + required: + - 'name' required: - 'asset' diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts index 267cf4d59a956..d16878ceccded 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts @@ -39,6 +39,7 @@ export type AfterKeys = z.infer; export const AfterKeys = z.object({ host: EntityAfterKey.optional(), user: EntityAfterKey.optional(), + service: EntityAfterKey.optional(), }); /** @@ -72,7 +73,7 @@ export const DateRange = z.object({ }); export type IdentifierType = z.infer; -export const IdentifierType = z.enum(['host', 'user']); +export const IdentifierType = z.enum(['host', 'user', 'service']); export type IdentifierTypeEnum = typeof IdentifierType.enum; export const IdentifierTypeEnum = IdentifierType.enum; @@ -169,22 +170,33 @@ export const RiskScoreWeightGlobalShared = z.object({ type: z.literal('global_identifier'), }); -export type RiskScoreWeight = z.infer; -export const RiskScoreWeight = z.union([ +export const RiskScoreWeightInternal = z.union([ RiskScoreWeightGlobalShared.merge( z.object({ host: RiskScoreEntityIdentifierWeights, user: RiskScoreEntityIdentifierWeights.optional(), + service: RiskScoreEntityIdentifierWeights.optional(), }) ), RiskScoreWeightGlobalShared.merge( z.object({ host: RiskScoreEntityIdentifierWeights.optional(), user: RiskScoreEntityIdentifierWeights, + service: RiskScoreEntityIdentifierWeights.optional(), + }) + ), + RiskScoreWeightGlobalShared.merge( + z.object({ + host: RiskScoreEntityIdentifierWeights.optional(), + user: RiskScoreEntityIdentifierWeights.optional(), + service: RiskScoreEntityIdentifierWeights, }) ), ]); +export type RiskScoreWeight = z.infer; +export const RiskScoreWeight = RiskScoreWeightInternal as z.ZodType; + /** * A list of weights to be applied to the scoring calculation. */ diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml index 1da4eca994aed..9eb4bf0570ef7 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml @@ -52,11 +52,16 @@ components: $ref: '#/components/schemas/EntityAfterKey' user: $ref: '#/components/schemas/EntityAfterKey' + service: + $ref: '#/components/schemas/EntityAfterKey' example: host: 'host.name': 'example.host' user: 'user.name': 'example_user_name' + service: + 'service.name': 'example_service_name' + DataViewId: description: The identifier of the Kibana data view to be used when generating risk scores. @@ -94,6 +99,7 @@ components: enum: - host - user + - service RiskScoreInput: description: A generic representation of a document contributing to a Risk Score. @@ -247,6 +253,8 @@ components: $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' user: $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' + service: + $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' - allOf: - $ref: '#/components/schemas/RiskScoreWeightGlobalShared' @@ -258,7 +266,20 @@ components: $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' user: $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' - + service: + $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' + - allOf: + - $ref: '#/components/schemas/RiskScoreWeightGlobalShared' + - type: object + required: + - service + properties: + host: + $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' + user: + $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' + service: + $ref: '#/components/schemas/RiskScoreEntityIdentifierWeights' RiskScoreWeights: description: 'A list of weights to be applied to the scoring calculation.' type: array @@ -268,6 +289,7 @@ components: - type: 'global_identifier' host: 0.5 user: 0.1 + service: 0.4 TaskManagerUnavailableResponse: description: Task manager is unavailable diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/risk_weights.schema.test.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/risk_weights.schema.test.ts index 97aa908c66c51..fd7948e0cb2a4 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/risk_weights.schema.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/risk_weights.schema.test.ts @@ -121,7 +121,7 @@ describe('risk weight schema', () => { expect(decoded.success).toBeFalsy(); expect(stringifyZodError(decoded.error)).toEqual( - 'type: Invalid literal value, expected "global_identifier", host: Required, type: Invalid literal value, expected "global_identifier"' + 'type: Invalid literal value, expected "global_identifier", host: Required, type: Invalid literal value, expected "global_identifier", type: Invalid literal value, expected "global_identifier", service: Required' ); }); diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.gen.ts index bde077b2a951e..c261c02c4b308 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.gen.ts @@ -42,6 +42,10 @@ export const RiskScoresCalculationResponse = z.object({ * A list of user risk scores */ user: z.array(EntityRiskScoreRecord).optional(), + /** + * A list of service risk scores + */ + service: z.array(EntityRiskScoreRecord).optional(), /** * If 'wait_for' the request will wait for the index refresh. */ diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.schema.yaml index 857971ddbf555..55047a484e9e5 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/calculation_route.schema.yaml @@ -40,6 +40,11 @@ components: items: $ref: '../common/common.schema.yaml#/components/schemas/EntityRiskScoreRecord' description: A list of user risk scores + service: + type: array + items: + $ref: '../common/common.schema.yaml#/components/schemas/EntityRiskScoreRecord' + description: A list of service risk scores refresh: type: string enum: [wait_for] diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.gen.ts index 1b410a143683a..949aa5f8acb26 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.gen.ts @@ -89,6 +89,10 @@ export const RiskScoresPreviewResponse = z.object({ * A list of user risk scores */ user: z.array(EntityRiskScoreRecord).optional(), + /** + * A list of service risk scores + */ + service: z.array(EntityRiskScoreRecord).optional(), }), }); diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.schema.yaml index 45d40a057f22c..a313ccb502b59 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/risk_engine/preview_route.schema.yaml @@ -101,3 +101,8 @@ components: items: $ref: '../common/common.schema.yaml#/components/schemas/EntityRiskScoreRecord' description: A list of user risk scores + service: + type: array + items: + $ref: '../common/common.schema.yaml#/components/schemas/EntityRiskScoreRecord' + description: A list of service risk scores diff --git a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.test.ts b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.test.ts index f71f3c14aff40..21c0785db5c28 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.test.ts @@ -46,7 +46,7 @@ describe('parseAssetCriticalityCsvRow', () => { // @ts-ignore result can now only be InvalidRecord expect(result.error).toMatchInlineSnapshot( - `"Invalid entity type \\"invalid\\", expected host or user"` + `"Invalid entity type \\"invalid\\", expected to be one of: user, host, service"` ); }); @@ -57,7 +57,7 @@ describe('parseAssetCriticalityCsvRow', () => { // @ts-ignore result can now only be InvalidRecord expect(result.error).toMatchInlineSnapshot( - `"Invalid entity type \\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...\\", expected host or user"` + `"Invalid entity type \\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...\\", expected to be one of: user, host, service"` ); }); diff --git a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.ts b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.ts index 0ec045dd71657..12bf3f30610eb 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/asset_criticality/parse_asset_criticality_csv_row.ts @@ -7,7 +7,9 @@ import { i18n } from '@kbn/i18n'; import type { CriticalityLevels } from './constants'; import { ValidCriticalityLevels } from './constants'; -import type { AssetCriticalityUpsert, CriticalityLevel } from './types'; +import { type AssetCriticalityUpsert, type CriticalityLevel } from './types'; +import { IDENTITY_FIELD_MAP, getAvailableEntityTypes } from '../entity_store/constants'; +import type { EntityType } from '../../api/entity_analytics'; const MAX_COLUMN_CHARS = 1000; @@ -98,16 +100,19 @@ export const parseAssetCriticalityCsvRow = (row: string[]): ReturnType => { ); } - if (entityType !== 'host' && entityType !== 'user') { + if (!getAvailableEntityTypes().includes(entityType as EntityType)) { return validationErrorWithMessage( i18n.translate('xpack.securitySolution.assetCriticality.csvUpload.invalidEntityTypeError', { - defaultMessage: 'Invalid entity type "{entityType}", expected host or user', - values: { entityType: trimColumn(entityType) }, + defaultMessage: 'Invalid entity type "{entityType}", expected to be one of: {validTypes}', + values: { + entityType: trimColumn(entityType), + validTypes: getAvailableEntityTypes().join(', '), + }, }) ); } - const idField = entityType === 'host' ? 'host.name' : 'user.name'; + const idField = IDENTITY_FIELD_MAP[entityType as EntityType]; return { valid: true, diff --git a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/entity_store/constants.ts b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/entity_store/constants.ts index b6834422c8cfc..d74c0fdd3735d 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/entity_store/constants.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/entity_store/constants.ts @@ -5,6 +5,9 @@ * 2.0. */ +import type { EntityType, IdField } from '../../api/entity_analytics'; +import { EntityTypeEnum } from '../../api/entity_analytics'; + /** * Entity Store routes */ @@ -23,3 +26,12 @@ export const ENTITY_STORE_REQUIRED_ES_CLUSTER_PRIVILEGES = [ // The index pattern for the entity store has to support '.entities.v1.latest.noop' index export const ENTITY_STORE_INDEX_PATTERN = '.entities.v1.latest.*'; + +export const IDENTITY_FIELD_MAP: Record = { + [EntityTypeEnum.host]: 'host.name', + [EntityTypeEnum.user]: 'user.name', + [EntityTypeEnum.service]: 'service.name', +}; + +export const getAvailableEntityTypes = (): EntityType[] => + Object.keys(EntityTypeEnum) as EntityType[]; diff --git a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/identifier_types.ts b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/identifier_types.ts index 3741e321d4b0b..9311b38fffe32 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/identifier_types.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/identifier_types.ts @@ -7,6 +7,6 @@ import * as t from 'io-ts'; -export const identifierTypeSchema = t.keyof({ user: null, host: null }); +export const identifierTypeSchema = t.keyof({ user: null, host: null, service: null }); export type IdentifierTypeSchema = t.TypeOf; export type IdentifierType = IdentifierTypeSchema; diff --git a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/types.ts b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/types.ts index a6c429126e297..7f936fcb8fca1 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/types.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/entity_analytics/risk_engine/types.ts @@ -10,7 +10,10 @@ import type { EntityRiskScoreRecord, RiskScoreInput } from '../../api/entity_ana export enum RiskScoreEntity { host = 'host', user = 'user', + // TODO Add service when FE is updated https://github.com/elastic/security-team/issues/11326 } +// TODO: Remove this when FE is updated https://github.com/elastic/security-team/issues/11326 +export const SERVICE_RISK_SCORE_ENTITY = 'service'; export interface InitRiskEngineResult { legacyRiskEngineDisabled: boolean; diff --git a/x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts b/x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts index 94ffd959b680f..2c7fa430907a2 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/experimental_features.ts @@ -271,7 +271,7 @@ export const allowedExperimentalValues = Object.freeze({ /** * Enables the Asset Inventory feature */ - assetInventoryStoreEnabled: false, + assetInventoryUXEnabled: false, }); type ExperimentalConfigKeys = Array; diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml index 1db469620f680..05daf410e6eff 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml @@ -800,6 +800,20 @@ components: type: string required: - name + service: + type: object + properties: + asset: + type: object + properties: + criticality: + $ref: '#/components/schemas/AssetCriticalityLevel' + required: + - criticality + name: + type: string + required: + - name user: type: object properties: @@ -1130,6 +1144,7 @@ components: enum: - host.name - user.name + - service.name type: string IndexPattern: type: string diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml index 184eb912ad7d1..8bbeb3c2486ff 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml @@ -800,6 +800,20 @@ components: type: string required: - name + service: + type: object + properties: + asset: + type: object + properties: + criticality: + $ref: '#/components/schemas/AssetCriticalityLevel' + required: + - criticality + name: + type: string + required: + - name user: type: object properties: @@ -1130,6 +1144,7 @@ components: enum: - host.name - user.name + - service.name type: string IndexPattern: type: string diff --git a/x-pack/solutions/security/plugins/security_solution/public/app/actions/add_to_timeline/lens/add_to_timeline.test.ts b/x-pack/solutions/security/plugins/security_solution/public/app/actions/add_to_timeline/lens/add_to_timeline.test.ts index ef920458f51dd..362fb5f9ee885 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/app/actions/add_to_timeline/lens/add_to_timeline.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/app/actions/add_to_timeline/lens/add_to_timeline.test.ts @@ -5,8 +5,7 @@ * 2.0. */ import { BehaviorSubject, Subject } from 'rxjs'; -import type { CellValueContext, EmbeddableInput, IEmbeddable } from '@kbn/embeddable-plugin/public'; -import { ErrorEmbeddable } from '@kbn/embeddable-plugin/public'; +import type { CellValueContext } from '@kbn/embeddable-plugin/public'; import type { SecurityAppStore } from '../../../../common/store/types'; import { createAddToTimelineLensAction, getInvestigatedValue } from './add_to_timeline'; import { KibanaServices } from '../../../../common/lib/kibana'; @@ -15,7 +14,7 @@ import type { DataProvider } from '../../../../../common/types'; import { TimelineId, EXISTS_OPERATOR } from '../../../../../common/types'; import { addProvider } from '../../../../timelines/store/actions'; import type { ActionExecutionContext } from '@kbn/ui-actions-plugin/public'; -import type { Query, Filter, AggregateQuery, TimeRange } from '@kbn/es-query'; +import type { TimeRange } from '@kbn/es-query'; import type { LensApi } from '@kbn/lens-plugin/public'; import { getLensApiMock } from '@kbn/lens-plugin/public/react_embeddable/mocks'; @@ -46,16 +45,6 @@ const getMockLensApi = ( saveToLibrary: jest.fn(async () => 'saved-id'), }); -const getMockEmbeddable = (type: string): IEmbeddable => - ({ - type, - filters$: new BehaviorSubject([]), - query$: new BehaviorSubject({ - query: 'test', - language: 'kuery', - }), - } as unknown as IEmbeddable); - const lensEmbeddable = getMockLensApi(); const columnMeta = { @@ -90,11 +79,14 @@ describe('createAddToTimelineLensAction', () => { }); describe('isCompatible', () => { - it('should return false if error embeddable', async () => { + it('should return false if lens embeddable has blocking error', async () => { expect( await addToTimelineAction.isCompatible({ ...context, - embeddable: new ErrorEmbeddable('some error', {} as EmbeddableInput), + embeddable: { + ...getMockLensApi(), + blockingError: new BehaviorSubject(new Error('some error')), + }, }) ).toEqual(false); }); @@ -103,7 +95,9 @@ describe('createAddToTimelineLensAction', () => { expect( await addToTimelineAction.isCompatible({ ...context, - embeddable: getMockEmbeddable('not_lens') as unknown as IEmbeddable, + embeddable: { + type: 'not_lens', + }, }) ).toEqual(false); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/app/actions/copy_to_clipboard/lens/copy_to_clipboard.test.ts b/x-pack/solutions/security/plugins/security_solution/public/app/actions/copy_to_clipboard/lens/copy_to_clipboard.test.ts index 0ec4e00848348..98a8b07fd127d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/app/actions/copy_to_clipboard/lens/copy_to_clipboard.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/app/actions/copy_to_clipboard/lens/copy_to_clipboard.test.ts @@ -5,8 +5,7 @@ * 2.0. */ -import type { CellValueContext, EmbeddableInput, IEmbeddable } from '@kbn/embeddable-plugin/public'; -import { ErrorEmbeddable } from '@kbn/embeddable-plugin/public'; +import type { CellValueContext } from '@kbn/embeddable-plugin/public'; import type { LensApi } from '@kbn/lens-plugin/public'; import { createCopyToClipboardLensAction } from './copy_to_clipboard'; import { KibanaServices } from '../../../../common/lib/kibana'; @@ -40,13 +39,6 @@ const getMockLensApi = ( saveToLibrary: jest.fn(async () => 'saved-id'), }); -const getMockEmbeddable = (type: string): IEmbeddable => - ({ - type, - getFilters: jest.fn(), - getQuery: jest.fn(), - } as unknown as IEmbeddable); - const lensEmbeddable = getMockLensApi(); const columnMeta = { @@ -83,7 +75,10 @@ describe('createCopyToClipboardLensAction', () => { expect( await copyToClipboardAction.isCompatible({ ...context, - embeddable: new ErrorEmbeddable('some error', {} as EmbeddableInput), + embeddable: { + ...getMockLensApi(), + blockingError: new BehaviorSubject(new Error('some error')), + }, }) ).toEqual(false); }); @@ -92,7 +87,9 @@ describe('createCopyToClipboardLensAction', () => { expect( await copyToClipboardAction.isCompatible({ ...context, - embeddable: getMockEmbeddable('not_lens') as unknown as IEmbeddable, + embeddable: { + type: 'not_lens', + }, }) ).toEqual(false); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts index 2eb5902006744..c53b74ae6f693 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts @@ -19,7 +19,7 @@ export const links: LinkItem = { defaultMessage: 'Inventory', }), ], - experimentalKey: 'assetInventoryStoreEnabled', + experimentalKey: 'assetInventoryUXEnabled', id: SecurityPageName.assetInventory, path: ASSET_INVENTORY_PATH, title: INVENTORY, diff --git a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/routes.tsx b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/routes.tsx index 5707d859d844e..9bc38e0eee356 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/routes.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/routes.tsx @@ -11,7 +11,6 @@ import { SecurityPageName } from '../app/types'; import { ASSET_INVENTORY_PATH } from '../../common/constants'; import { PluginTemplateWrapper } from '../common/components/plugin_template_wrapper'; import { SecurityRoutePageWrapper } from '../common/components/security_route_page_wrapper'; -import { ExperimentalFeaturesService } from '../common/experimental_features_service'; import { AssetInventoryContainer } from './pages'; export const AssetInventoryRoutes = () => ( @@ -24,7 +23,7 @@ export const AssetInventoryRoutes = () => ( export const routes: SecuritySubPluginRoutes = [ { - path: ExperimentalFeaturesService.get().assetInventoryStoreEnabled ? ASSET_INVENTORY_PATH : [], + path: ASSET_INVENTORY_PATH, component: AssetInventoryRoutes, }, ]; diff --git a/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx index b3be6370e905d..8b9dc2f2c80f4 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/assistant/get_comments/index.tsx @@ -9,7 +9,7 @@ import type { ClientMessage, GetAssistantMessages } from '@kbn/elastic-assistant import { EuiAvatar, EuiLoadingSpinner } from '@elastic/eui'; import React from 'react'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantAvatar } from '@kbn/ai-assistant-icon'; import type { Replacements } from '@kbn/elastic-assistant-common'; import { replaceAnonymizedValuesWithOriginalValues } from '@kbn/elastic-assistant-common'; import styled from '@emotion/styled'; @@ -117,9 +117,7 @@ export const getComments: GetAssistantMessages = ({ ? [ { username: i18n.SYSTEM, - timelineAvatar: ( - - ), + timelineAvatar: , timestamp: currentConversation.messages[0].timestamp.length === 0 ? new Date().toLocaleString() @@ -148,7 +146,7 @@ export const getComments: GetAssistantMessages = ({ timelineAvatar: isUser ? ( ) : ( - + ), timestamp: i18n.AT( message.timestamp.length === 0 diff --git a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx b/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx index 342a95454cdb4..afbe0abd9fb01 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx @@ -10,7 +10,7 @@ import React, { useCallback } from 'react'; import { i18n } from '@kbn/i18n'; import { useAssistantContext } from '@kbn/elastic-assistant/impl/assistant_context'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; const isMac = navigator.platform.toLowerCase().indexOf('mac') >= 0; @@ -45,7 +45,7 @@ export const AssistantHeaderLink = () => { - + {LINK_LABEL} diff --git a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx index 13326a07adc70..40e258f5c5116 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/title/index.tsx @@ -6,7 +6,6 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiSkeletonTitle, EuiTitle, useEuiTheme } from '@elastic/eui'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; import { replaceAnonymizedValuesWithOriginalValues, type Replacements, @@ -14,6 +13,7 @@ import { import { css } from '@emotion/react'; import React, { useMemo } from 'react'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; const AVATAR_SIZE = 24; // px @@ -55,11 +55,11 @@ const TitleComponent: React.FC = ({ data-test-subj="assistantAvatar" grow={false} > - diff --git a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx index e254ce5d334b8..3a10a9be9c8c6 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/attack_discovery_panel/view_in_ai_assistant/index.tsx @@ -5,11 +5,11 @@ * 2.0. */ -import { AssistantAvatar } from '@kbn/elastic-assistant'; import type { AttackDiscovery, Replacements } from '@kbn/elastic-assistant-common'; import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import React from 'react'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import * as i18n from './translations'; import { useViewInAiAssistant } from './use_view_in_ai_assistant'; @@ -48,7 +48,7 @@ const ViewInAiAssistantComponent: React.FC = ({ > - + {i18n.VIEW_IN_AI_ASSISTANT} diff --git a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx index 3d89f5be87030..ecaf1753a3263 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/empty_prompt/index.tsx @@ -5,7 +5,6 @@ * 2.0. */ -import { AssistantAvatar } from '@kbn/elastic-assistant'; import { EuiEmptyPrompt, EuiFlexGroup, @@ -19,6 +18,7 @@ import { import { css } from '@emotion/react'; import React, { useMemo } from 'react'; +import { AssistantBeacon } from '@kbn/ai-assistant-icon'; import { AnimatedCounter } from './animated_counter'; import { Generate } from '../generate'; import * as i18n from './translations'; @@ -50,7 +50,7 @@ const EmptyPromptComponent: React.FC = ({ gutterSize="none" > - + diff --git a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx index ace75f568bf3d..216b7355fe486 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/no_alerts/index.tsx @@ -5,7 +5,6 @@ * 2.0. */ -import { AssistantAvatar } from '@kbn/elastic-assistant'; import { EuiEmptyPrompt, EuiFlexGroup, @@ -16,6 +15,7 @@ import { } from '@elastic/eui'; import React, { useMemo } from 'react'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import * as i18n from './translations'; import { Generate } from '../generate'; @@ -35,7 +35,7 @@ const NoAlertsComponent: React.FC = ({ isDisabled, isLoading, onGenerate gutterSize="none" > - + diff --git a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx index 7ab90b524bb93..f03727fc87dbe 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/attack_discovery/pages/results/empty_states/welcome/index.tsx @@ -5,11 +5,11 @@ * 2.0. */ -import { AssistantAvatar } from '@kbn/elastic-assistant'; import { ConnectorSetup } from '@kbn/elastic-assistant/impl/connectorland/connector_setup'; import { EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; import React, { useMemo } from 'react'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import * as i18n from './translations'; const WelcomeComponent: React.FC = () => { @@ -22,7 +22,7 @@ const WelcomeComponent: React.FC = () => { gutterSize="none" > - + diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/create_description_list.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/create_description_list.tsx index 7ca8bf81ed06e..b197daff4d301 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/create_description_list.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/create_description_list.tsx @@ -11,7 +11,7 @@ import styled from 'styled-components'; import type { DescriptionList } from '../../../../../common/utility_types'; import type { Anomaly, NarrowDateRange } from '../types'; -import { getScoreString } from './score_health'; +import { getScoreString } from './get_score_string'; import { PreferenceFormattedDate } from '../../formatted_date'; import { createInfluencers } from '../influencers/create_influencers'; import * as i18n from './translations'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.test.ts index 1eeaa3521f030..87b2d092ada78 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { getScoreString } from './score_health'; +import { getScoreString } from './get_score_string'; describe('create_influencers', () => { test('it rounds up to 1 from 0.3', () => { diff --git a/x-pack/platform/plugins/shared/ml/public/application/styles.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.ts similarity index 52% rename from x-pack/platform/plugins/shared/ml/public/application/styles.ts rename to x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.ts index 86f4dbe3bbcd4..d0edd52c68f1e 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/styles.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/get_score_string.ts @@ -5,13 +5,4 @@ * 2.0. */ -// Replacement for ./_variables.scss as we aim to remove the scss files - -export const mlColors = { - critical: '#FE5050', - major: '#FBA740', - minor: '#FDEC25', - warning: '#8BC8FB', - lowWarning: '#D2E9F7', - unknown: '#C0C0C0', -}; +export const getScoreString = (score: number) => String(Math.ceil(score)); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score.tsx index 3c5030706da05..b4baad7b392c8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score.tsx @@ -13,7 +13,7 @@ import { } from '../../cell_actions'; import type { Anomaly } from '../types'; import { Spacer } from '../../page'; -import { getScoreString } from './score_health'; +import { getScoreString } from './get_score_string'; export const ScoreComponent = ({ index = 0, diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score_health.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score_health.tsx deleted file mode 100644 index ac179b2ac8337..0000000000000 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/score/score_health.tsx +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import React from 'react'; -import { EuiHealth } from '@elastic/eui'; - -interface Props { - score: number; -} - -export const getScoreString = (score: number) => String(Math.ceil(score)); - -export const ScoreHealth = React.memo(({ score }) => { - const scoreCeiling = getScoreString(score); - const color = getSeverityColor(score); - return {scoreCeiling}; -}); - -ScoreHealth.displayName = 'ScoreHealth'; - -// ಠ_ಠ A hard-fork of the @kbn/ml-anomaly-utils;#getSeverityColor ಠ_ಠ -// -// Returns a severity label (one of critical, major, minor, warning, low or unknown) -// for the supplied normalized anomaly score (a value between 0 and 100), where scores -// less than 3 are assigned a severity of 'low'. -export const getSeverityColor = (normalizedScore: number): string => { - if (normalizedScore >= 75) { - return '#fe5050'; - } else if (normalizedScore >= 50) { - return '#fba740'; - } else if (normalizedScore >= 25) { - return '#fdec25'; - } else if (normalizedScore >= 3) { - return '#8bc8fb'; - } else if (normalizedScore >= 0) { - return '#d2e9f7'; - } else { - return '#ffffff'; - } -}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx index b0142b0e32f7e..8900e69254753 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/ai_assistant/index.tsx @@ -9,8 +9,10 @@ import React, { useCallback } from 'react'; import { EuiSpacer } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { NewChat, AssistantAvatar } from '@kbn/elastic-assistant'; +import { NewChat } from '@kbn/elastic-assistant'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; +import { css } from '@emotion/react'; import { METRIC_TYPE, TELEMETRY_EVENT, track } from '../../../../common/lib/telemetry'; import { useAssistantAvailability } from '../../../../assistant/use_assistant_availability'; import * as i18nAssistant from '../../../../detections/pages/detection_engine/translations'; @@ -116,7 +118,13 @@ Proposed solution should be valid and must not contain new line symbols (\\n)`; isAssistantEnabled={isAssistantEnabled} onExportCodeBlock={handleOnExportCodeBlock} > - {i18n.ASK_ASSISTANT_ERROR_BUTTON} + {' '} + {i18n.ASK_ASSISTANT_ERROR_BUTTON} ), }} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_upgrade_with_conflicts_modal/upgrade_modal.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_upgrade_with_conflicts_modal/upgrade_modal.tsx index 3374ae5c16b4d..0b0c7bb9cc72c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_upgrade_with_conflicts_modal/upgrade_modal.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_upgrade_with_conflicts_modal/upgrade_modal.tsx @@ -27,7 +27,7 @@ export const UpgradeWithConflictsModal = memo(function ConfirmUpgradeWithConflic confirmButtonText={i18n.UPGRADE_CONFLICTS_MODAL_CONFIRM} buttonColor="primary" defaultFocusedButton="confirm" - data-test-subj="confirmUpgradeWithConflictsModal" + data-test-subj="upgradeConflictsModal" > {i18n.UPGRADE_CONFLICTS_MODAL_BODY} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.test.tsx index 2599b10b93a48..c590bd12bddb1 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.test.tsx @@ -5,10 +5,8 @@ * 2.0. */ import type { Action, ActionExecutionContext } from '@kbn/ui-actions-plugin/public'; -import type { Embeddable } from '@kbn/embeddable-plugin/public'; import { createResetGroupByFieldAction, showInitialLoadingSpinner } from './helpers'; -import type { LensDataTableEmbeddable } from '../../../../common/components/visualization_actions/types'; describe('helpers', () => { describe('showInitialLoadingSpinner', () => { @@ -69,13 +67,13 @@ describe('createResetGroupByFieldAction', () => { }, }, }, - } as unknown as Embeddable), + }), updateInput: jest.fn(), }; const context = { embeddable, - } as unknown as ActionExecutionContext>; + } as unknown as ActionExecutionContext; const mockCallback = jest.fn(); beforeAll(async () => { action = createResetGroupByFieldAction({ callback: mockCallback }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.tsx index 8757316038b4a..0b928864053ad 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/helpers.tsx @@ -6,10 +6,14 @@ */ import type { Action, ActionExecutionContext } from '@kbn/ui-actions-plugin/public'; -import type { Embeddable } from '@kbn/embeddable-plugin/public'; import { RESET_GROUP_BY_FIELDS } from '../../../../common/components/chart_settings_popover/configurations/default/translations'; import type { LensDataTableEmbeddable } from '../../../../common/components/visualization_actions/types'; +interface LegacyLensEmbeddable { + getInput: () => LensDataTableEmbeddable; + updateInput: (input: LensDataTableEmbeddable) => void; +} + /** * Returns `true` when the alerts histogram initial loading spinner should be shown * @@ -48,7 +52,7 @@ export const createResetGroupByFieldAction: CreateResetGroupByFieldAction = ({ async execute({ embeddable, }: ActionExecutionContext<{ - embeddable: Embeddable; + embeddable: LegacyLensEmbeddable; }>): Promise { callback?.(); diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx index 74b1147531a01..2bb37cb74b67c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/insights/workflow_insights_scan.tsx @@ -8,7 +8,6 @@ import React, { useCallback, useMemo } from 'react'; import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiPanel, EuiText } from '@elastic/eui'; import { - AssistantAvatar, DEFEND_INSIGHTS_STORAGE_KEY, ConnectorSelectorInline, DEFAULT_ASSISTANT_NAMESPACE, @@ -17,6 +16,7 @@ import { import { noop } from 'lodash/fp'; import useLocalStorage from 'react-use/lib/useLocalStorage'; import { some } from 'lodash'; +import { AssistantBeacon } from '@kbn/ai-assistant-icon'; import { useSpaceId } from '../../../../../../../common/hooks/use_space_id'; import { WORKFLOW_INSIGHTS } from '../../../translations'; import { useKibana } from '../../../../../../../common/lib/kibana'; @@ -106,7 +106,7 @@ export const WorkflowInsightsScanSection = ({ - + diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts index 4850b1ee2d865..e1a8640249b39 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/assistant/index.ts @@ -6,7 +6,7 @@ */ import React from 'react'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import type { OnboardingCardConfig } from '../../../../types'; import { OnboardingCardId } from '../../../../constants'; import { ASSISTANT_CARD_TITLE } from './translations'; @@ -16,7 +16,7 @@ import type { AssistantCardMetadata } from './types'; export const assistantCardConfig: OnboardingCardConfig = { id: OnboardingCardId.assistant, title: ASSISTANT_CARD_TITLE, - icon: AssistantAvatar, + icon: AssistantIcon, Component: React.lazy( () => import( diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts index d0b32eb1bd638..9e8426df92ddc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/siem_migrations/ai_connector/index.ts @@ -6,7 +6,7 @@ */ import React from 'react'; -import { AssistantAvatar } from '@kbn/elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; import type { OnboardingCardConfig } from '../../../../../types'; import { OnboardingCardId } from '../../../../../constants'; import { AI_CONNECTOR_CARD_TITLE } from './translations'; @@ -16,7 +16,7 @@ import type { AIConnectorCardMetadata } from './types'; export const aiConnectorCardConfig: OnboardingCardConfig = { id: OnboardingCardId.siemMigrationsAiConnectors, title: AI_CONNECTOR_CARD_TITLE, - icon: AssistantAvatar, + icon: AssistantIcon, Component: React.lazy( () => import( diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx index 8561eff458a26..ab5d9deb3852d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rule_details_flyout/tabs/summary/index.tsx @@ -7,9 +7,9 @@ import React, { useMemo } from 'react'; import type { EuiCommentProps } from '@elastic/eui'; -import { EuiAvatar, EuiCommentList, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; +import { EuiCommentList, EuiMarkdownFormat, EuiSpacer } from '@elastic/eui'; import moment from 'moment'; -import { AssistantAvatar } from '@kbn/elastic-assistant'; +import { AssistantAvatar } from '@kbn/ai-assistant-icon'; import { RuleMigrationStatusEnum, type RuleMigration, @@ -31,9 +31,7 @@ export const SummaryTab: React.FC = React.memo(({ ruleMigration return { username: i18n.ASSISTANT_USERNAME, timelineAvatarAriaLabel: i18n.ASSISTANT_USERNAME, - timelineAvatar: ( - - ), + timelineAvatar: , event: ruleMigration.status === RuleMigrationStatusEnum.failed ? i18n.COMMENT_EVENT_FAILED diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.test.ts index 0907af8fa92d5..e9cc5273b58a6 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.test.ts @@ -42,6 +42,9 @@ describe('AssetCriticalityDataClient', () => { options: { index: '.asset-criticality.asset-criticality-default', mappings: { + _meta: { + version: 2, + }, dynamic: 'strict', properties: { id_field: { @@ -81,6 +84,20 @@ describe('AssetCriticalityDataClient', () => { }, }, }, + service: { + properties: { + asset: { + properties: { + criticality: { + type: 'keyword', + }, + }, + }, + name: { + type: 'keyword', + }, + }, + }, user: { properties: { asset: { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts index 760fec7f58f3b..14b4fb64fbd33 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_data_client.ts @@ -10,7 +10,6 @@ import type { Logger, ElasticsearchClient } from '@kbn/core/server'; import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; import type { AuditLogger } from '@kbn/security-plugin-types-server'; import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query'; - import type { BulkUpsertAssetCriticalityRecordsResponse, AssetCriticalityUpsert, @@ -19,7 +18,11 @@ import type { AssetCriticalityRecord } from '../../../../common/api/entity_analy import { createOrUpdateIndex } from '../utils/create_or_update_index'; import { getAssetCriticalityIndex } from '../../../../common/entity_analytics/asset_criticality'; import type { CriticalityValues } from './constants'; -import { CRITICALITY_VALUES, assetCriticalityFieldMap } from './constants'; +import { + ASSET_CRITICALITY_MAPPINGS_VERSIONS, + CRITICALITY_VALUES, + assetCriticalityFieldMap, +} from './constants'; import { AssetCriticalityAuditActions } from './audit'; import { AUDIT_CATEGORY, AUDIT_OUTCOME, AUDIT_TYPE } from '../audit'; import { getImplicitEntityFields } from './helpers'; @@ -81,7 +84,12 @@ export class AssetCriticalityDataClient { logger: this.options.logger, options: { index: this.getIndex(), - mappings: mappingFromFieldMap(assetCriticalityFieldMap, 'strict'), + mappings: { + ...mappingFromFieldMap(assetCriticalityFieldMap, 'strict'), + _meta: { + version: ASSET_CRITICALITY_MAPPINGS_VERSIONS, + }, + }, }, }); } @@ -178,9 +186,12 @@ export class AssetCriticalityDataClient { } public getIndexMappings() { - return this.options.esClient.indices.getMapping({ - index: this.getIndex(), - }); + return this.options.esClient.indices.getMapping( + { + index: this.getIndex(), + }, + { ignore: [404] } + ); } public async get(idParts: AssetCriticalityIdParts): Promise { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.test.ts index 6dec2c6a7e42f..27c7a7b30f2c0 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.test.ts @@ -5,10 +5,11 @@ * 2.0. */ -import { AssetCriticalityEcsMigrationClient } from './asset_criticality_migration_client'; +import { AssetCriticalityMigrationClient } from './asset_criticality_migration_client'; import { AssetCriticalityDataClient } from './asset_criticality_data_client'; import type { Logger, ElasticsearchClient } from '@kbn/core/server'; import type { AuditLogger } from '@kbn/security-plugin-types-server'; +import { ASSET_CRITICALITY_MAPPINGS_VERSIONS } from './constants'; jest.mock('./asset_criticality_data_client'); @@ -19,12 +20,12 @@ const emptySearchResponse = { hits: { hits: [] }, }; -describe('AssetCriticalityEcsMigrationClient', () => { +describe('AssetCriticalityMigrationClient', () => { let logger: Logger; let auditLogger: AuditLogger | undefined; let esClient: ElasticsearchClient; let assetCriticalityDataClient: jest.Mocked; - let migrationClient: AssetCriticalityEcsMigrationClient; + let migrationClient: AssetCriticalityMigrationClient; beforeEach(() => { logger = { info: jest.fn(), error: jest.fn() } as unknown as Logger; @@ -39,27 +40,28 @@ describe('AssetCriticalityEcsMigrationClient', () => { (AssetCriticalityDataClient as jest.Mock).mockImplementation(() => assetCriticalityDataClient); - migrationClient = new AssetCriticalityEcsMigrationClient({ logger, auditLogger, esClient }); + migrationClient = new AssetCriticalityMigrationClient({ logger, auditLogger, esClient }); }); - describe('isEcsMappingsMigrationRequired', () => { - it('should return true if any index mappings do not have asset property', async () => { + describe('isMappingsMigrationRequired', () => { + it('should return true if versions are different', async () => { assetCriticalityDataClient.getIndexMappings.mockResolvedValue({ index1: { mappings: { properties: {} } }, - index2: { mappings: { properties: { asset: {} } } }, + index2: { mappings: { properties: {}, _meta: { version: '9999' } } }, }); - const result = await migrationClient.isEcsMappingsMigrationRequired(); + const result = await migrationClient.isMappingsMigrationRequired(); expect(result).toBe(true); }); - it('should return false if all index mappings have asset property', async () => { + it('should return false if versions are equal', async () => { assetCriticalityDataClient.getIndexMappings.mockResolvedValue({ - index1: { mappings: { properties: { asset: {} } } }, - index2: { mappings: { properties: { asset: {} } } }, + index1: { + mappings: { properties: {}, _meta: { version: ASSET_CRITICALITY_MAPPINGS_VERSIONS } }, + }, }); - const result = await migrationClient.isEcsMappingsMigrationRequired(); + const result = await migrationClient.isMappingsMigrationRequired(); expect(result).toBe(false); }); }); @@ -83,9 +85,9 @@ describe('AssetCriticalityEcsMigrationClient', () => { }); }); - describe('migrateEcsMappings', () => { + describe('migrateMappings', () => { it('should call createOrUpdateIndex on assetCriticalityDataClient', async () => { - await migrationClient.migrateEcsMappings(); + await migrationClient.migrateMappings(); expect(assetCriticalityDataClient.createOrUpdateIndex).toHaveBeenCalled(); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.ts index b87a172b4c746..dfa3b3fdb6325 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/asset_criticality_migration_client.ts @@ -7,8 +7,9 @@ import type { Logger, ElasticsearchClient } from '@kbn/core/server'; import type { AuditLogger } from '@kbn/security-plugin-types-server'; import { AssetCriticalityDataClient } from './asset_criticality_data_client'; +import { ASSET_CRITICALITY_MAPPINGS_VERSIONS } from './constants'; -interface AssetCriticalityEcsMigrationClientOpts { +interface AssetCriticalityMigrationClientOpts { logger: Logger; auditLogger: AuditLogger | undefined; esClient: ElasticsearchClient; @@ -40,20 +41,20 @@ if (ctx._source.id_field == 'user.name') { ctx._source.host = host; }`; -export class AssetCriticalityEcsMigrationClient { +export class AssetCriticalityMigrationClient { private readonly assetCriticalityDataClient: AssetCriticalityDataClient; - constructor(private readonly options: AssetCriticalityEcsMigrationClientOpts) { + constructor(private readonly options: AssetCriticalityMigrationClientOpts) { this.assetCriticalityDataClient = new AssetCriticalityDataClient({ ...options, namespace: '*', // The migration is applied to all spaces }); } - public isEcsMappingsMigrationRequired = async () => { + public isMappingsMigrationRequired = async () => { const indicesMappings = await this.assetCriticalityDataClient.getIndexMappings(); return Object.values(indicesMappings).some( - ({ mappings }) => mappings?.properties?.asset === undefined + ({ mappings }) => mappings._meta?.version !== ASSET_CRITICALITY_MAPPINGS_VERSIONS ); }; @@ -66,7 +67,7 @@ export class AssetCriticalityEcsMigrationClient { return resp.hits.hits.length > 0; }; - public migrateEcsMappings = () => { + public migrateMappings = () => { return this.assetCriticalityDataClient.createOrUpdateIndex(); }; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/check_and_init_asset_criticality_resources.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/check_and_init_asset_criticality_resources.ts index 95f6df08eefcf..6a9ad175ff129 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/check_and_init_asset_criticality_resources.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/check_and_init_asset_criticality_resources.ts @@ -30,7 +30,6 @@ export const checkAndInitAssetCriticalityResources = async ( }); const doesIndexExist = await assetCriticalityDataClient.doesIndexExist(); - if (!doesIndexExist) { logger.info('Asset criticality resources are not installed, initialising...'); await assetCriticalityDataClient.init(); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.test.ts new file mode 100644 index 0000000000000..deb2a1d5d8d4c --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.test.ts @@ -0,0 +1,78 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { ASSET_CRITICALITY_MAPPINGS_VERSIONS, assetCriticalityFieldMap } from './constants'; + +describe('asset criticality - constants', () => { + it("please bump 'ASSET_CRITICALITY_MAPPINGS_VERSIONS' when mappings change", () => { + expect(ASSET_CRITICALITY_MAPPINGS_VERSIONS).toEqual(2); + expect(assetCriticalityFieldMap).toMatchInlineSnapshot(` + Object { + "@timestamp": Object { + "array": false, + "required": false, + "type": "date", + }, + "asset.criticality": Object { + "array": false, + "required": true, + "type": "keyword", + }, + "criticality_level": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.asset.criticality": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "id_field": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "id_value": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.asset.criticality": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "updated_at": Object { + "array": false, + "required": false, + "type": "date", + }, + "user.asset.criticality": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + } + `); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.ts index b1241cf2c5e2c..f536e7e649086 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/constants.ts @@ -16,6 +16,9 @@ const assetCriticalityMapping = { required: false, }; +// Upgrade this value to force a mappings update on the next Kibana startup +export const ASSET_CRITICALITY_MAPPINGS_VERSIONS = 2; + export const assetCriticalityFieldMap: FieldMap = { '@timestamp': { type: 'date', @@ -55,6 +58,12 @@ export const assetCriticalityFieldMap: FieldMap = { required: false, }, 'user.asset.criticality': assetCriticalityMapping, + 'service.name': { + type: 'keyword', + array: false, + required: false, + }, + 'service.asset.criticality': assetCriticalityMapping, } as const; export const CRITICALITY_VALUES: { readonly [K in CriticalityValues as Uppercase]: K } = { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.test.ts index 4c818c4d067e4..f2d2aedfdd791 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.test.ts @@ -4,8 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ - -import { applyCriticalityToScore } from './helpers'; +import type { MappingProperty } from '@elastic/elasticsearch/lib/api/types'; +import { applyCriticalityToScore, getMappingForFlattenedField } from './helpers'; describe('applyCriticalityToScore', () => { describe('integer scores', () => { @@ -60,4 +60,41 @@ describe('applyCriticalityToScore', () => { expect(result).toEqual(99.9993992827436); }); }); + + describe('getMappingForFlattenedField', () => { + const mappingProperty: MappingProperty = { type: 'keyword' }; + const mapping: Record = { + user: { + properties: { + asset: { + properties: { + criticality: mappingProperty, + }, + }, + }, + }, + name: mappingProperty, + }; + + it('returns the correct mapping for a simple field', () => { + const field = 'name'; + + const result = getMappingForFlattenedField(field, mapping); + expect(result).toEqual(mappingProperty); + }); + + it('returns the correct mapping for a nested field', () => { + const field = 'user.asset.criticality'; + + const result = getMappingForFlattenedField(field, mapping); + expect(result).toEqual(mappingProperty); + }); + + it('returns undefined for a non-existent field', () => { + const field = 'user.asset.nonExistentField'; + + const result = getMappingForFlattenedField(field, mapping); + expect(result).toBeUndefined(); + }); + }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.ts index 442a052ff588b..5ae034fe5d86d 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/helpers.ts @@ -5,6 +5,8 @@ * 2.0. */ +import type { MappingProperty } from '@elastic/elasticsearch/lib/api/types'; +import { get } from 'lodash/fp'; import { CriticalityModifiers } from '../../../../common/entity_analytics/asset_criticality'; import type { AssetCriticalityUpsert, @@ -76,8 +78,14 @@ type AssetCriticalityUpsertWithDeleted = { : AssetCriticalityUpsert[K]; }; +const entityTypeByIdField = { + 'host.name': 'host', + 'user.name': 'user', + 'service.name': 'service', +} as const; + export const getImplicitEntityFields = (record: AssetCriticalityUpsertWithDeleted) => { - const entityType = record.idField === 'host.name' ? 'host' : 'user'; + const entityType = entityTypeByIdField[record.idField]; return { [entityType]: { asset: { criticality: record.criticalityLevel }, @@ -85,3 +93,17 @@ export const getImplicitEntityFields = (record: AssetCriticalityUpsertWithDelete }, }; }; + +/** + * Finds the mapping for a flatten field name + * + * @example + * const field = `user.asset.criticality` + * const mapping = {user: {properties: {asset: {properties: {criticality: {type: 'keyword'}}}}}}; + * getMappingForFlattenedField(field, mapping) // returns {type: 'keyword'} + * + */ +export const getMappingForFlattenedField = ( + field: string, + mapping: Record +) => get(field.replaceAll('.', '.properties.'), mapping); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.test.ts index 0cf01fd2f7429..2acd91f22bda9 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.test.ts @@ -15,18 +15,14 @@ import { taskManagerMock } from '@kbn/task-manager-plugin/server/mocks'; import { elasticsearchServiceMock } from '@kbn/core-elasticsearch-server-mocks'; import { auditLoggerMock } from '@kbn/core-security-server-mocks'; -const mockMigrateEcsMappings = jest.fn().mockResolvedValue(false); -const mockIsEcsMappingsMigrationRequired = jest.fn().mockResolvedValue(false); const mockIsEcsDataMigrationRequired = jest.fn().mockResolvedValue(false); const mockMigrateEcsData = jest.fn().mockResolvedValue({ updated: 100, failures: [], }); jest.mock('../asset_criticality_migration_client', () => ({ - AssetCriticalityEcsMigrationClient: jest.fn().mockImplementation(() => ({ - isEcsMappingsMigrationRequired: mockIsEcsMappingsMigrationRequired, + AssetCriticalityMigrationClient: jest.fn().mockImplementation(() => ({ isEcsDataMigrationRequired: mockIsEcsDataMigrationRequired, - migrateEcsMappings: mockMigrateEcsMappings, migrateEcsData: mockMigrateEcsData, })), })); @@ -61,6 +57,7 @@ describe('scheduleAssetCriticalityEcsCompliancyMigration', () => { taskManager, logger, getStartServices, + kibanaVersion: '8.0.0', }); expect(taskManager.registerTaskDefinitions).toHaveBeenCalledWith({ @@ -75,40 +72,11 @@ describe('scheduleAssetCriticalityEcsCompliancyMigration', () => { taskManager: undefined, logger, getStartServices, + kibanaVersion: '8.0.0', }) ).resolves.not.toThrow(); }); - it('should migrate mappings if required', async () => { - const taskManager = taskManagerMock.createSetup(); - - mockIsEcsMappingsMigrationRequired.mockResolvedValue(true); - - await scheduleAssetCriticalityEcsCompliancyMigration({ - auditLogger, - taskManager, - logger, - getStartServices, - }); - - expect(mockMigrateEcsMappings).toHaveBeenCalled(); - }); - - it('should not migrate mappings if not required', async () => { - const taskManager = taskManagerMock.createSetup(); - - mockIsEcsMappingsMigrationRequired.mockResolvedValue(false); - - await scheduleAssetCriticalityEcsCompliancyMigration({ - auditLogger, - taskManager, - logger, - getStartServices, - }); - - expect(mockMigrateEcsMappings).not.toHaveBeenCalled(); - }); - it('should schedule the task if data migration is required', async () => { mockIsEcsDataMigrationRequired.mockResolvedValue(true); @@ -117,6 +85,7 @@ describe('scheduleAssetCriticalityEcsCompliancyMigration', () => { taskManager: taskManagerMock.createSetup(), logger, getStartServices, + kibanaVersion: '8.0.0', }); expect(mockTaskManagerStart.ensureScheduled).toHaveBeenCalledWith( @@ -136,6 +105,7 @@ describe('scheduleAssetCriticalityEcsCompliancyMigration', () => { taskManager: taskManagerMock.createSetup(), logger, getStartServices, + kibanaVersion: '8.0.0', }); expect(logger.error).toHaveBeenCalledWith( @@ -151,6 +121,7 @@ describe('scheduleAssetCriticalityEcsCompliancyMigration', () => { taskManager: taskManagerMock.createSetup(), logger, getStartServices, + kibanaVersion: '8.0.0', }); expect(mockTaskManagerStart.ensureScheduled).not.toHaveBeenCalled(); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.ts index 16cecabb4eadc..061107a3bfae3 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/schedule_ecs_compliancy_migration.ts @@ -6,7 +6,7 @@ */ import type { EntityAnalyticsMigrationsParams } from '../../migrations'; -import { AssetCriticalityEcsMigrationClient } from '../asset_criticality_migration_client'; +import { AssetCriticalityMigrationClient } from '../asset_criticality_migration_client'; const TASK_TYPE = 'security-solution-ea-asset-criticality-ecs-migration'; const TASK_ID = `${TASK_TYPE}-task-id`; @@ -37,18 +37,12 @@ export const scheduleAssetCriticalityEcsCompliancyMigration = async ({ const taskManagerStart = depsStart.taskManager; const esClient = coreStart.elasticsearch.client.asInternalUser; - const migrationClient = new AssetCriticalityEcsMigrationClient({ + const migrationClient = new AssetCriticalityMigrationClient({ esClient, logger, auditLogger, }); - const shouldMigrateMappings = await migrationClient.isEcsMappingsMigrationRequired(); - if (shouldMigrateMappings) { - logger.debug('Migrating Asset Criticality mappings'); - await migrationClient.migrateEcsMappings(); - } - const shouldMigrateData = await migrationClient.isEcsDataMigrationRequired(); if (shouldMigrateData && taskManagerStart) { logger.debug(`Task scheduled: "${TASK_TYPE}"`); @@ -83,7 +77,7 @@ export const createMigrationTask = abortController = new AbortController(); const [coreStart] = await getStartServices(); const esClient = coreStart.elasticsearch.client.asInternalUser; - const migrationClient = new AssetCriticalityEcsMigrationClient({ + const migrationClient = new AssetCriticalityMigrationClient({ esClient, logger, auditLogger, diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.test.ts new file mode 100644 index 0000000000000..a0b91a9e73599 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.test.ts @@ -0,0 +1,58 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { updateAssetCriticalityMappings } from './update_asset_criticality_mappings'; +import type { Logger } from '@kbn/core/server'; + +const mockisMappingsMigrationRequired = jest.fn(); +const mockmigrateMappings = jest.fn(); + +jest.mock('../asset_criticality_migration_client', () => ({ + AssetCriticalityMigrationClient: jest.fn().mockImplementation(() => ({ + isMappingsMigrationRequired: () => mockisMappingsMigrationRequired(), + migrateMappings: () => mockmigrateMappings(), + })), +})); + +describe('updateAssetCriticalityMappings', () => { + const mockLogger = { info: jest.fn(), error: jest.fn() } as unknown as Logger; + const mockGetStartServices = jest + .fn() + .mockResolvedValue([{ elasticsearch: { client: { asInternalUser: {} } } }]); + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should migrate mappings if migration is required', async () => { + mockisMappingsMigrationRequired.mockResolvedValue(true); + + await updateAssetCriticalityMappings({ + auditLogger: undefined, + logger: mockLogger, + getStartServices: mockGetStartServices, + kibanaVersion: '8.0.0', + }); + + expect(mockLogger.info).toHaveBeenCalledWith('Migrating Asset Criticality mappings'); + expect(mockmigrateMappings).toHaveBeenCalled(); + }); + + it('should not migrate mappings if migration is not required', async () => { + mockisMappingsMigrationRequired.mockResolvedValue(false); + + await updateAssetCriticalityMappings({ + auditLogger: undefined, + logger: mockLogger, + getStartServices: mockGetStartServices, + kibanaVersion: '8.0.0', + }); + + expect(mockisMappingsMigrationRequired).toHaveBeenCalled(); + expect(mockLogger.info).not.toHaveBeenCalledWith('Migrating Asset Criticality mappings'); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.ts new file mode 100644 index 0000000000000..f44c4677c79e1 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/asset_criticality/migrations/update_asset_criticality_mappings.ts @@ -0,0 +1,31 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { EntityAnalyticsMigrationsParams } from '../../migrations'; + +import { AssetCriticalityMigrationClient } from '../asset_criticality_migration_client'; + +export const updateAssetCriticalityMappings = async ({ + auditLogger, + logger, + getStartServices, +}: EntityAnalyticsMigrationsParams) => { + const [coreStart] = await getStartServices(); + const esClient = coreStart.elasticsearch.client.asInternalUser; + + const migrationClient = new AssetCriticalityMigrationClient({ + esClient, + logger, + auditLogger, + }); + + const shouldMigrateMappings = await migrationClient.isMappingsMigrationRequired(); + if (shouldMigrateMappings) { + logger.info('Migrating Asset Criticality mappings'); + await migrationClient.migrateMappings(); + } +}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/entity_store_data_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/entity_store_data_client.ts index faf2edc154192..f9889f3a0d530 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/entity_store_data_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/entity_store_data_client.ts @@ -50,7 +50,7 @@ import type { } from '../../../../common/api/entity_analytics'; import { EngineDescriptorClient } from './saved_object/engine_descriptor'; import { ENGINE_STATUS, ENTITY_STORE_STATUS, MAX_SEARCH_RESPONSE_SIZE } from './constants'; -import { AssetCriticalityEcsMigrationClient } from '../asset_criticality/asset_criticality_migration_client'; +import { AssetCriticalityMigrationClient } from '../asset_criticality/asset_criticality_migration_client'; import { getUnitedEntityDefinition } from './united_entity_definitions'; import { startEntityStoreFieldRetentionEnrichTask, @@ -128,7 +128,7 @@ interface SearchEntitiesParams { export class EntityStoreDataClient { private engineClient: EngineDescriptorClient; - private assetCriticalityMigrationClient: AssetCriticalityEcsMigrationClient; + private assetCriticalityMigrationClient: AssetCriticalityMigrationClient; private entityClient: EntityClient; private riskScoreDataClient: RiskScoreDataClient; private esClient: ElasticsearchClient; @@ -148,7 +148,7 @@ export class EntityStoreDataClient { namespace, }); - this.assetCriticalityMigrationClient = new AssetCriticalityEcsMigrationClient({ + this.assetCriticalityMigrationClient = new AssetCriticalityMigrationClient({ esClient: this.esClient, logger, auditLogger, @@ -288,7 +288,7 @@ export class EntityStoreDataClient { const { config } = this.options; - await this.riskScoreDataClient.createRiskScoreLatestIndex().catch((e) => { + await this.riskScoreDataClient.createOrUpdateRiskScoreLatestIndex().catch((e) => { if (e.meta.body.error.type === 'resource_already_exists_exception') { this.options.logger.debug( `Risk score index for ${entityType} already exists, skipping creation.` diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/task/field_retention_enrichment_task.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/task/field_retention_enrichment_task.ts index 3d103ea2af467..d60f994488fca 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/task/field_retention_enrichment_task.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/task/field_retention_enrichment_task.ts @@ -13,6 +13,7 @@ import type { TaskManagerSetupContract, TaskManagerStartContract, } from '@kbn/task-manager-plugin/server'; +import { getAvailableEntityTypes } from '../../../../../common/entity_analytics/entity_store/constants'; import { EngineComponentResourceEnum, type EntityType, @@ -24,10 +25,7 @@ import { } from './state'; import { INTERVAL, SCOPE, TIMEOUT, TYPE, VERSION } from './constants'; import type { EntityAnalyticsRoutesDeps } from '../../types'; -import { - getAvailableEntityTypes, - getUnitedEntityDefinitionVersion, -} from '../united_entity_definitions'; +import { getUnitedEntityDefinitionVersion } from '../united_entity_definitions'; import { executeFieldRetentionEnrichPolicy } from '../elasticsearch_assets'; import { getEntitiesIndexName } from '../utils'; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/united_entity_definitions/get_united_definition.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/united_entity_definitions/get_united_definition.ts index ae54e802574cf..28685172dc7d4 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/united_entity_definitions/get_united_definition.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/united_entity_definitions/get_united_definition.ts @@ -67,6 +67,3 @@ const versionByEntityType: Record = { export const getUnitedEntityDefinitionVersion = (entityType: EntityType): string => versionByEntityType[entityType]; - -export const getAvailableEntityTypes = (): EntityType[] => - Object.keys(unitedDefinitionBuilders) as EntityType[]; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/utils/entity_utils.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/utils/entity_utils.ts index 1a10bddb428fa..c889d3a8ce34b 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/utils/entity_utils.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/entity_store/utils/entity_utils.ts @@ -11,23 +11,15 @@ import { entitiesIndexPattern, } from '@kbn/entities-schema'; import type { DataViewsService, DataView } from '@kbn/data-views-plugin/common'; +import { IDENTITY_FIELD_MAP } from '../../../../../common/entity_analytics/entity_store/constants'; import type { AppClient } from '../../../../types'; import { getRiskScoreLatestIndex } from '../../../../../common/entity_analytics/risk_engine'; import { getAssetCriticalityIndex } from '../../../../../common/entity_analytics/asset_criticality'; -import { - EntityTypeEnum, - type EntityType, -} from '../../../../../common/api/entity_analytics/entity_store/common.gen'; +import { type EntityType } from '../../../../../common/api/entity_analytics/entity_store/common.gen'; import { entityEngineDescriptorTypeName } from '../saved_object'; -const identityFieldMap: Record = { - [EntityTypeEnum.host]: 'host.name', - [EntityTypeEnum.user]: 'user.name', - [EntityTypeEnum.service]: 'service.name', -}; - export const getIdentityFieldForEntityType = (entityType: EntityType) => { - return identityFieldMap[entityType]; + return IDENTITY_FIELD_MAP[entityType]; }; export const buildIndexPatterns = async ( diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/migrations/index.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/migrations/index.ts index 293bf951fdb7d..dac3099a0b3f8 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/migrations/index.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/migrations/index.ts @@ -9,16 +9,37 @@ import type { AuditLogger, Logger, StartServicesAccessor } from '@kbn/core/serve import type { TaskManagerSetupContract } from '@kbn/task-manager-plugin/server'; import type { StartPlugins } from '../../../plugin'; import { scheduleAssetCriticalityEcsCompliancyMigration } from '../asset_criticality/migrations/schedule_ecs_compliancy_migration'; +import { updateAssetCriticalityMappings } from '../asset_criticality/migrations/update_asset_criticality_mappings'; +import { updateRiskScoreMappings } from '../risk_engine/migrations/update_risk_score_mappings'; export interface EntityAnalyticsMigrationsParams { taskManager?: TaskManagerSetupContract; logger: Logger; getStartServices: StartServicesAccessor; auditLogger: AuditLogger | undefined; + kibanaVersion: string; } +/** + * ### How to add a new field to the risk score index and template mappings? + + * - Update the mapping object [here](../risk_score/configurations.ts) + * - Pump the `mappingsVersion` version [here](../risk_engine/utils/saved_object_configuration.ts) + * + * ### How to add a new field to the asset criticality index? + * - Update the mapping object [here](../asset_criticality/constants.ts) + * - Pump the `ASSET_CRITICALITY_MAPPINGS_VERSIONS` version [here](../asset_criticality/constants.ts) + * + * ### How to update the risk score transform config? + * - Update the transform config [here](../risk_score/configurations.ts) + * - Pump the `version` [here](../risk_score/configurations.ts) + * + * note: If you change the `latest` property, the transform will reinstall after the engine task runs. + */ export const scheduleEntityAnalyticsMigration = async (params: EntityAnalyticsMigrationsParams) => { const scopedLogger = params.logger.get('entityAnalytics.migration'); + await updateAssetCriticalityMappings({ ...params, logger: scopedLogger }); await scheduleAssetCriticalityEcsCompliancyMigration({ ...params, logger: scopedLogger }); + await updateRiskScoreMappings({ ...params, logger: scopedLogger }); }; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.test.ts new file mode 100644 index 0000000000000..cdb4d19772545 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.test.ts @@ -0,0 +1,164 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { updateRiskScoreMappings } from './update_risk_score_mappings'; +import { coreMock, loggingSystemMock, savedObjectsClientMock } from '@kbn/core/server/mocks'; +import { elasticsearchServiceMock } from '@kbn/core-elasticsearch-server-mocks'; +import { auditLoggerMock } from '@kbn/core-security-server-mocks'; + +const mockCreateOrUpdateComponentTemplate = jest.fn(); +const mockCreateOrUpdateIndex = jest.fn(); +const mockUpdateUnderlyingMapping = jest.fn(); + +jest.mock('@kbn/alerting-plugin/server', () => ({ + createOrUpdateComponentTemplate: (...params: unknown[]) => + mockCreateOrUpdateComponentTemplate(...params), +})); + +jest.mock('../../utils/create_or_update_index', () => ({ + createOrUpdateIndex: (...params: unknown[]) => mockCreateOrUpdateIndex(...params), +})); + +jest.mock('../../utils/create_datastream', () => ({ + updateUnderlyingMapping: (...params: unknown[]) => mockUpdateUnderlyingMapping(...params), +})); + +const mockGetDefaultRiskEngineConfiguration = jest.fn(); +const mockUpdateSavedObjectAttribute = jest.fn(); +jest.mock('../utils/saved_object_configuration', () => ({ + ...jest.requireActual('../utils/saved_object_configuration'), + getDefaultRiskEngineConfiguration: () => mockGetDefaultRiskEngineConfiguration(), + updateSavedObjectAttribute: (...params: unknown[]) => mockUpdateSavedObjectAttribute(...params), +})); + +describe('updateRiskScoreMappings', () => { + const logger = loggingSystemMock.createLogger(); + const mockAuditLogger = auditLoggerMock.create(); + const coreStart = coreMock.createStart(); + const soClient = savedObjectsClientMock.create(); + const esClient = elasticsearchServiceMock.createElasticsearchClient(); + + const getStartServicesMock = jest.fn().mockReturnValue([ + { + ...coreStart, + savedObjects: { + createInternalRepository: jest.fn().mockReturnValue(soClient), + getScopedClient: jest.fn().mockReturnValue(soClient), + }, + elasticsearch: { client: { asInternalUser: esClient } }, + }, + ]); + const kibanaVersion = '8.0.0'; + + const buildSavedObject = (attributes = {}) => ({ + namespaces: ['default'], + attributes, + id: 'id', + type: 'type', + references: [], + score: 1, + }); + + const mockSavedObjectsResponseDefaults = { + total: 1, + page: 1, + per_page: 10, + saved_objects: [], + }; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should update risk score mappings when versions are different', async () => { + const mockSavedObjectsResponse = { + ...mockSavedObjectsResponseDefaults, + saved_objects: [buildSavedObject({ _meta: { mappingsVersion: '1.0.0' } })], + }; + + soClient.find.mockResolvedValue(mockSavedObjectsResponse); + + const newConfig = { _meta: { mappingsVersion: '2.0.0' } }; + mockGetDefaultRiskEngineConfiguration.mockResolvedValue(newConfig); + + await updateRiskScoreMappings({ + auditLogger: mockAuditLogger, + logger, + kibanaVersion, + getStartServices: getStartServicesMock, + }); + + expect(mockCreateOrUpdateIndex).toHaveBeenCalledWith( + expect.objectContaining({ + options: expect.objectContaining({ index: 'risk-score.risk-score-latest-default' }), + }) + ); + expect(mockCreateOrUpdateComponentTemplate).toHaveBeenCalledWith( + expect.objectContaining({ + template: expect.objectContaining({ name: '.risk-score-mappings-default' }), + }) + ); + expect(mockUpdateUnderlyingMapping).toHaveBeenCalledWith( + expect.objectContaining({ index: 'risk-score.risk-score-default' }) + ); + expect(mockUpdateSavedObjectAttribute).toHaveBeenCalledWith( + expect.objectContaining({ attributes: { _meta: { mappingsVersion: '2.0.0' } } }) + ); + }); + + it('should not update risk score mappings when versions are the same', async () => { + const savedObjectsResponse = { + ...mockSavedObjectsResponseDefaults, + saved_objects: [buildSavedObject({ _meta: { mappingsVersion: '2.0.0' } })], + }; + soClient.find.mockResolvedValue(savedObjectsResponse); + + const newConfig = { _meta: { mappingsVersion: '2.0.0' } }; + mockGetDefaultRiskEngineConfiguration.mockResolvedValue(newConfig); + + await updateRiskScoreMappings({ + auditLogger: mockAuditLogger, + logger, + getStartServices: getStartServicesMock, + kibanaVersion, + }); + + expect(mockCreateOrUpdateIndex).not.toHaveBeenCalled(); + expect(mockCreateOrUpdateComponentTemplate).not.toHaveBeenCalled(); + expect(mockUpdateUnderlyingMapping).not.toHaveBeenCalled(); + expect(mockUpdateSavedObjectAttribute).not.toHaveBeenCalled(); + }); + + it('should update risk score mappings for every space when versions are different', async () => { + const mockSavedObjectsResponse = { + ...mockSavedObjectsResponseDefaults, + saved_objects: [ + buildSavedObject({ _meta: { mappingsVersion: '1.0.0' } }), + buildSavedObject({ _meta: { mappingsVersion: '1.0.0' } }), + buildSavedObject({ _meta: { mappingsVersion: '1.0.0' } }), + buildSavedObject({ _meta: { mappingsVersion: '1.0.0' } }), + ], + }; + + soClient.find.mockResolvedValue(mockSavedObjectsResponse); + + const newConfig = { _meta: { mappingsVersion: '2.0.0' } }; + mockGetDefaultRiskEngineConfiguration.mockResolvedValue(newConfig); + + await updateRiskScoreMappings({ + auditLogger: mockAuditLogger, + logger, + kibanaVersion, + getStartServices: getStartServicesMock, + }); + + expect(mockCreateOrUpdateIndex).toHaveBeenCalledTimes(4); + expect(mockCreateOrUpdateComponentTemplate).toHaveBeenCalledTimes(4); + expect(mockUpdateUnderlyingMapping).toHaveBeenCalledTimes(4); + expect(mockUpdateSavedObjectAttribute).toHaveBeenCalledTimes(4); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.ts new file mode 100644 index 0000000000000..d671dee80799e --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/migrations/update_risk_score_mappings.ts @@ -0,0 +1,84 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { asyncForEach } from '@kbn/std'; +import { first } from 'lodash/fp'; +import type { EntityAnalyticsMigrationsParams } from '../../migrations'; +import { RiskEngineDataClient } from '../risk_engine_data_client'; +import { getDefaultRiskEngineConfiguration } from '../utils/saved_object_configuration'; +import { RiskScoreDataClient } from '../../risk_score/risk_score_data_client'; +import type { RiskEngineConfiguration } from '../../types'; +import { riskEngineConfigurationTypeName } from '../saved_object'; +import { buildScopedInternalSavedObjectsClientUnsafe } from '../../risk_score/tasks/helpers'; + +export const MAX_PER_PAGE = 10_000; + +export const updateRiskScoreMappings = async ({ + auditLogger, + logger, + getStartServices, + kibanaVersion, +}: EntityAnalyticsMigrationsParams) => { + const [coreStart] = await getStartServices(); + const soClientKibanaUser = coreStart.savedObjects.createInternalRepository(); + + // Get all installed Risk Engine Configurations + const savedObjectsResponse = await soClientKibanaUser.find({ + type: riskEngineConfigurationTypeName, + perPage: MAX_PER_PAGE, + namespaces: ['*'], + }); + + await asyncForEach(savedObjectsResponse.saved_objects, async (savedObject) => { + const namespace = first(savedObject.namespaces); // We install one Risk Engine Configuration object per space + + if (!namespace) { + logger.error('Unexpected saved object. Risk Score saved objects must have a namespace'); + return; + } + + const newConfig = await getDefaultRiskEngineConfiguration({ namespace }); + + if (savedObject.attributes._meta?.mappingsVersion !== newConfig._meta.mappingsVersion) { + logger.info( + `Starting Risk Score mappings update from version ${savedObject.attributes._meta?.mappingsVersion} to version ${newConfig._meta.mappingsVersion} on namespace ${namespace}` + ); + + const esClient = coreStart.elasticsearch.client.asInternalUser; + const soClient = buildScopedInternalSavedObjectsClientUnsafe({ coreStart, namespace }); + const riskEngineDataClient = new RiskEngineDataClient({ + logger, + kibanaVersion, + esClient, + namespace, + soClient, + auditLogger, + }); + const riskScoreDataClient = new RiskScoreDataClient({ + logger, + kibanaVersion, + esClient, + namespace, + soClient, + auditLogger, + }); + + await riskScoreDataClient.createOrUpdateRiskScoreLatestIndex(); + await riskScoreDataClient.createOrUpdateRiskScoreIndexTemplate(); + await riskScoreDataClient.updateRiskScoreTimeSeriesIndexMappings(); + await riskEngineDataClient.updateConfiguration({ + _meta: { + mappingsVersion: newConfig._meta.mappingsVersion, + }, + }); + + logger.debug( + `Risk score mappings updated to version ${newConfig._meta.mappingsVersion} on namespace ${namespace}` + ); + } + }); +}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/risk_engine_data_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/risk_engine_data_client.ts index 09ef77d3df6ac..bb60c228bec46 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/risk_engine_data_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/risk_engine_data_client.ts @@ -9,8 +9,10 @@ import type { Logger, ElasticsearchClient, SavedObjectsClientContract } from '@k import type { TaskManagerStartContract } from '@kbn/task-manager-plugin/server'; import type { AuditLogger } from '@kbn/security-plugin-types-server'; import { RiskEngineStatusEnum } from '../../../../common/api/entity_analytics'; -import type { InitRiskEngineResult } from '../../../../common/entity_analytics/risk_engine'; -import { RiskScoreEntity } from '../../../../common/entity_analytics/risk_engine'; +import { + RiskScoreEntity, + type InitRiskEngineResult, +} from '../../../../common/entity_analytics/risk_engine'; import { removeLegacyTransforms, getLegacyTransforms } from '../utils/transforms'; import { updateSavedObjectAttribute, @@ -24,6 +26,7 @@ import { removeRiskScoringTask, startRiskScoringTask } from '../risk_score/tasks import { RiskEngineAuditActions } from './audit'; import { AUDIT_CATEGORY, AUDIT_OUTCOME, AUDIT_TYPE } from '../audit'; import { getRiskScoringTaskStatus, scheduleNow } from '../risk_score/tasks/risk_scoring_task'; +import type { RiskEngineConfiguration } from '../types'; interface InitOpts { namespace: string; @@ -112,6 +115,12 @@ export class RiskEngineDataClient { savedObjectsClient: this.options.soClient, }); + public updateConfiguration = (config: Partial) => + updateSavedObjectAttribute({ + savedObjectsClient: this.options.soClient, + attributes: config, + }); + public async getStatus({ namespace, taskManager, diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.test.ts new file mode 100644 index 0000000000000..60e9f44965a7c --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.test.ts @@ -0,0 +1,282 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { riskScoreFieldMap } from '../../risk_score/configurations'; +import { getDefaultRiskEngineConfiguration } from './saved_object_configuration'; + +describe('#getDefaultRiskEngineConfiguration', () => { + it("please bump 'mappingsVersion' when mappings change", () => { + const namespace = 'default'; + const config = getDefaultRiskEngineConfiguration({ namespace }); + + expect(config._meta.mappingsVersion).toEqual(2); + expect(riskScoreFieldMap).toMatchInlineSnapshot(` + Object { + "@timestamp": Object { + "array": false, + "required": false, + "type": "date", + }, + "host.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk": Object { + "array": false, + "required": false, + "type": "object", + }, + "host.risk.calculated_level": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.calculated_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "host.risk.calculated_score_norm": Object { + "array": false, + "required": false, + "type": "float", + }, + "host.risk.category_1_count": Object { + "array": false, + "required": false, + "type": "long", + }, + "host.risk.category_1_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "host.risk.id_field": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.id_value": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.inputs": Object { + "array": true, + "required": false, + "type": "object", + }, + "host.risk.inputs.category": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.inputs.description": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.inputs.id": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.inputs.index": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "host.risk.inputs.risk_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "host.risk.inputs.timestamp": Object { + "array": false, + "required": false, + "type": "date", + }, + "host.risk.notes": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk": Object { + "array": false, + "required": false, + "type": "object", + }, + "service.risk.calculated_level": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.calculated_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "service.risk.calculated_score_norm": Object { + "array": false, + "required": false, + "type": "float", + }, + "service.risk.category_1_count": Object { + "array": false, + "required": false, + "type": "long", + }, + "service.risk.category_1_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "service.risk.id_field": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.id_value": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.inputs": Object { + "array": true, + "required": false, + "type": "object", + }, + "service.risk.inputs.category": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.inputs.description": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.inputs.id": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.inputs.index": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "service.risk.inputs.risk_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "service.risk.inputs.timestamp": Object { + "array": false, + "required": false, + "type": "date", + }, + "service.risk.notes": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.name": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk": Object { + "array": false, + "required": false, + "type": "object", + }, + "user.risk.calculated_level": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.calculated_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "user.risk.calculated_score_norm": Object { + "array": false, + "required": false, + "type": "float", + }, + "user.risk.category_1_count": Object { + "array": false, + "required": false, + "type": "long", + }, + "user.risk.category_1_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "user.risk.id_field": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.id_value": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.inputs": Object { + "array": true, + "required": false, + "type": "object", + }, + "user.risk.inputs.category": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.inputs.description": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.inputs.id": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.inputs.index": Object { + "array": false, + "required": false, + "type": "keyword", + }, + "user.risk.inputs.risk_score": Object { + "array": false, + "required": false, + "type": "float", + }, + "user.risk.inputs.timestamp": Object { + "array": false, + "required": false, + "type": "date", + }, + "user.risk.notes": Object { + "array": false, + "required": false, + "type": "keyword", + }, + } + `); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.ts index a72835a92c1f4..f0d977fce2751 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_engine/utils/saved_object_configuration.ts @@ -14,7 +14,7 @@ export interface SavedObjectsClientArg { savedObjectsClient: SavedObjectsClientContract; } -const getDefaultRiskEngineConfiguration = ({ +export const getDefaultRiskEngineConfiguration = ({ namespace, }: { namespace: string; @@ -26,6 +26,10 @@ const getDefaultRiskEngineConfiguration = ({ interval: '1h', pageSize: 3_500, range: { start: 'now-30d', end: 'now' }, + _meta: { + // Upgrade this property when changing mappings + mappingsVersion: 2, + }, }); const getConfigurationSavedObject = async ({ @@ -41,12 +45,7 @@ export const updateSavedObjectAttribute = async ({ savedObjectsClient, attributes, }: SavedObjectsClientArg & { - attributes: { - enabled?: boolean; - excludeAlertIds?: string[]; - range?: { start: string; end: string }; - excludeAlertTags?: string[]; - }; + attributes: Partial; }) => { const savedObjectConfiguration = await getConfigurationSavedObject({ savedObjectsClient, diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/__snapshots__/risk_score_data_client.test.ts.snap b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/__snapshots__/risk_score_data_client.test.ts.snap new file mode 100644 index 0000000000000..922ae18a4dfc7 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/__snapshots__/risk_score_data_client.test.ts.snap @@ -0,0 +1,193 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`RiskScoreDataClient init success should initialize risk engine resources in the appropriate space 1`] = ` +Object { + "mappings": Object { + "dynamic": "strict", + "properties": Object { + "@timestamp": Object { + "ignore_malformed": false, + "type": "date", + }, + "host": Object { + "properties": Object { + "name": Object { + "type": "keyword", + }, + "risk": Object { + "properties": Object { + "calculated_level": Object { + "type": "keyword", + }, + "calculated_score": Object { + "type": "float", + }, + "calculated_score_norm": Object { + "type": "float", + }, + "category_1_count": Object { + "type": "long", + }, + "category_1_score": Object { + "type": "float", + }, + "id_field": Object { + "type": "keyword", + }, + "id_value": Object { + "type": "keyword", + }, + "inputs": Object { + "properties": Object { + "category": Object { + "type": "keyword", + }, + "description": Object { + "type": "keyword", + }, + "id": Object { + "type": "keyword", + }, + "index": Object { + "type": "keyword", + }, + "risk_score": Object { + "type": "float", + }, + "timestamp": Object { + "type": "date", + }, + }, + "type": "object", + }, + "notes": Object { + "type": "keyword", + }, + }, + "type": "object", + }, + }, + }, + "service": Object { + "properties": Object { + "name": Object { + "type": "keyword", + }, + "risk": Object { + "properties": Object { + "calculated_level": Object { + "type": "keyword", + }, + "calculated_score": Object { + "type": "float", + }, + "calculated_score_norm": Object { + "type": "float", + }, + "category_1_count": Object { + "type": "long", + }, + "category_1_score": Object { + "type": "float", + }, + "id_field": Object { + "type": "keyword", + }, + "id_value": Object { + "type": "keyword", + }, + "inputs": Object { + "properties": Object { + "category": Object { + "type": "keyword", + }, + "description": Object { + "type": "keyword", + }, + "id": Object { + "type": "keyword", + }, + "index": Object { + "type": "keyword", + }, + "risk_score": Object { + "type": "float", + }, + "timestamp": Object { + "type": "date", + }, + }, + "type": "object", + }, + "notes": Object { + "type": "keyword", + }, + }, + "type": "object", + }, + }, + }, + "user": Object { + "properties": Object { + "name": Object { + "type": "keyword", + }, + "risk": Object { + "properties": Object { + "calculated_level": Object { + "type": "keyword", + }, + "calculated_score": Object { + "type": "float", + }, + "calculated_score_norm": Object { + "type": "float", + }, + "category_1_count": Object { + "type": "long", + }, + "category_1_score": Object { + "type": "float", + }, + "id_field": Object { + "type": "keyword", + }, + "id_value": Object { + "type": "keyword", + }, + "inputs": Object { + "properties": Object { + "category": Object { + "type": "keyword", + }, + "description": Object { + "type": "keyword", + }, + "id": Object { + "type": "keyword", + }, + "index": Object { + "type": "keyword", + }, + "risk_score": Object { + "type": "float", + }, + "timestamp": Object { + "type": "date", + }, + }, + "type": "object", + }, + "notes": Object { + "type": "keyword", + }, + }, + "type": "object", + }, + }, + }, + }, + }, + "settings": Object {}, +} +`; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.test.ts index ba5b23074a469..97992f5e7ea5e 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.test.ts @@ -14,8 +14,10 @@ import { calculateRiskScores } from './calculate_risk_scores'; import { calculateRiskScoresMock } from './calculate_risk_scores.mock'; import { riskScoreDataClientMock } from './risk_score_data_client.mock'; import type { RiskScoreDataClient } from './risk_score_data_client'; +import type { ExperimentalFeatures } from '../../../../common'; jest.mock('./calculate_risk_scores'); +const mockExperimentalFeatures = {} as ExperimentalFeatures; const calculateAndPersistRecentHostRiskScores = ( esClient: ElasticsearchClient, @@ -34,6 +36,7 @@ const calculateAndPersistRecentHostRiskScores = ( riskScoreDataClient, assetCriticalityService: assetCriticalityServiceMock.create(), runtimeMappings: {}, + experimentalFeatures: mockExperimentalFeatures, }); }; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.ts index 73b2ec9af025b..b9d18dea31e2d 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_and_persist_risk_scores.ts @@ -7,6 +7,7 @@ import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ExperimentalFeatures } from '../../../../common'; import type { RiskScoresCalculationResponse } from '../../../../common/api/entity_analytics'; import type { RiskScoreDataClient } from './risk_score_data_client'; import type { AssetCriticalityService } from '../asset_criticality/asset_criticality_service'; @@ -20,6 +21,7 @@ export const calculateAndPersistRiskScores = async ( logger: Logger; spaceId: string; riskScoreDataClient: RiskScoreDataClient; + experimentalFeatures: ExperimentalFeatures; } ): Promise => { const { riskScoreDataClient, spaceId, returnScores, refresh, ...rest } = params; @@ -29,7 +31,7 @@ export const calculateAndPersistRiskScores = async ( }); const { after_keys: afterKeys, scores } = await calculateRiskScores(rest); - if (!scores.host?.length && !scores.user?.length) { + if (!scores.host?.length && !scores.user?.length && !scores.service?.length) { return { after_keys: {}, errors: [], scores_written: 0 }; } diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.mock.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.mock.ts index e050150b885d3..8827dab40aabe 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.mock.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.mock.ts @@ -54,6 +54,13 @@ const buildAggregationResponseMock = ( after_key: { 'user.name': 'username' }, buckets: [buildRiskScoreBucketMock(), buildRiskScoreBucketMock()], }, + service: { + after_key: { 'service.name': 'service_name' }, + buckets: [ + buildRiskScoreBucketMock({ key: { 'service.name': 'serviceName' } }), + buildRiskScoreBucketMock({ key: { 'service.name': 'serviceName' } }), + ], + }, ...overrides, }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.test.ts index 77d2bacfd5a58..289a647873118 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.test.ts @@ -13,6 +13,7 @@ import { calculateRiskScores } from './calculate_risk_scores'; import { calculateRiskScoresMock } from './calculate_risk_scores.mock'; import { ALERT_WORKFLOW_STATUS } from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; +import { mockGlobalState } from '../../../../public/common/mock'; describe('calculateRiskScores()', () => { let params: Parameters[0]; @@ -31,6 +32,7 @@ describe('calculateRiskScores()', () => { pageSize: 500, range: { start: 'now - 15d', end: 'now' }, runtimeMappings: {}, + experimentalFeatures: mockGlobalState.app.enableExperimental, }; }); @@ -198,6 +200,31 @@ describe('calculateRiskScores()', () => { expect(response).toHaveProperty('scores'); expect(response.scores.host).toHaveLength(2); expect(response.scores.user).toHaveLength(2); + expect(response.scores.service).toHaveLength(0); + }); + + it('calculates risk score for service when the experimental flag is enabled', async () => { + const response = await calculateRiskScores({ + ...params, + experimentalFeatures: { + ...mockGlobalState.app.enableExperimental, + serviceEntityStoreEnabled: true, + }, + }); + + expect(response.scores.service).toHaveLength(2); + }); + + it('does NOT calculates risk score for service when the experimental flag is disabled', async () => { + const response = await calculateRiskScores({ + ...params, + experimentalFeatures: { + ...mockGlobalState.app.enableExperimental, + serviceEntityStoreEnabled: false, + }, + }); + + expect(response.scores.service).toHaveLength(0); }); it('returns scores in the expected format', async () => { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.ts index 3981781ca3fac..1eb3b818da134 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/calculate_risk_scores.ts @@ -16,6 +16,7 @@ import { ALERT_WORKFLOW_STATUS, ALERT_WORKFLOW_TAGS, } from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; +import type { ExperimentalFeatures } from '../../../../common'; import type { AssetCriticalityRecord, RiskScoresPreviewResponse, @@ -220,11 +221,13 @@ export const calculateRiskScores = async ({ weights, alertSampleSizePerShard = 10_000, excludeAlertStatuses = [], + experimentalFeatures, excludeAlertTags = [], }: { assetCriticalityService: AssetCriticalityService; esClient: ElasticsearchClient; logger: Logger; + experimentalFeatures: ExperimentalFeatures; } & CalculateScoresParams): Promise => withSecuritySpan('calculateRiskScores', async () => { const now = new Date().toISOString(); @@ -243,7 +246,12 @@ export const calculateRiskScores = async ({ bool: { must_not: { terms: { [ALERT_WORKFLOW_TAGS]: excludeAlertTags } } }, }); } - const identifierTypes: IdentifierType[] = identifierType ? [identifierType] : ['host', 'user']; + const identifierTypes: IdentifierType[] = identifierType + ? [identifierType] + : experimentalFeatures.serviceEntityStoreEnabled + ? ['host', 'user', 'service'] + : ['host', 'user']; + const request = { size: 0, _source: false, @@ -297,16 +305,21 @@ export const calculateRiskScores = async ({ scores: { host: [], user: [], + service: [], }, }; } const userBuckets = response.aggregations.user?.buckets ?? []; const hostBuckets = response.aggregations.host?.buckets ?? []; + const serviceBuckets = experimentalFeatures.serviceEntityStoreEnabled + ? response.aggregations.service?.buckets ?? [] + : []; const afterKeys = { host: response.aggregations.host?.after_key, user: response.aggregations.user?.after_key, + service: experimentalFeatures ? response.aggregations.service?.after_key : undefined, }; const hostScores = await processScores({ @@ -323,6 +336,13 @@ export const calculateRiskScores = async ({ logger, now, }); + const serviceScores = await processScores({ + assetCriticalityService, + buckets: serviceBuckets, + identifierField: 'service.name', + logger, + now, + }); return { ...(debug ? { request, response } : {}), @@ -330,6 +350,7 @@ export const calculateRiskScores = async ({ scores: { host: hostScores, user: userScores, + service: serviceScores, }, }; }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.test.ts index b0fab13b109bf..a3d427e1f4e74 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.test.ts @@ -19,7 +19,7 @@ describe('getTransformOptions', () => { "_meta": Object { "managed": true, "managed_by": "security-entity-analytics", - "version": 2, + "version": 3, }, "dest": Object { "index": "dest", @@ -30,6 +30,7 @@ describe('getTransformOptions', () => { "unique_key": Array [ "host.name", "user.name", + "service.name", ], }, "settings": Object { @@ -39,6 +40,19 @@ describe('getTransformOptions', () => { "index": Array [ "source", ], + "query": Object { + "bool": Object { + "filter": Array [ + Object { + "range": Object { + "@timestamp": Object { + "gte": "now-24h", + }, + }, + }, + ], + }, + }, }, "sync": Object { "time": Object { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.ts index 610ada87f5159..4f92c4c794fc3 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/configurations.ts @@ -9,6 +9,7 @@ import type { FieldMap } from '@kbn/alerts-as-data-utils'; import type { IdentifierType } from '../../../../common/entity_analytics/risk_engine'; import { RiskScoreEntity, + SERVICE_RISK_SCORE_ENTITY, riskScoreBaseIndexName, } from '../../../../common/entity_analytics/risk_engine'; import type { IIndexPatternString } from '../utils/create_datastream'; @@ -126,6 +127,17 @@ export const riskScoreFieldMap: FieldMap = { required: false, }, ...buildIdentityRiskFields(RiskScoreEntity.user), + 'service.name': { + type: 'keyword', + array: false, + required: false, + }, + 'service.risk': { + type: 'object', + array: false, + required: false, + }, + ...buildIdentityRiskFields(SERVICE_RISK_SCORE_ENTITY), } as const; export const mappingComponentName = '.risk-score-mappings'; @@ -159,10 +171,24 @@ export const getTransformOptions = ({ }, latest: { sort: '@timestamp', - unique_key: [`host.name`, `user.name`], + unique_key: [`host.name`, `user.name`, `service.name`], }, source: { index: source, + query: { + bool: { + filter: [ + { + range: { + '@timestamp': { + // It prevents the transform from processing too much data on reinstall + gte: 'now-24h', + }, + }, + }, + ], + }, + }, }, frequency: '1h', // 1h is the maximum value sync: { @@ -175,8 +201,7 @@ export const getTransformOptions = ({ unattended: true, // In unattended mode, the transform retries indefinitely in case of an error }, _meta: { - version: 2, // When this field is updated we automatically update the transform - + version: 3, // When this field is updated we automatically update the transform managed: true, // Metadata that identifies the transform. It has no functionality managed_by: 'security-entity-analytics', // Metadata that identifies the transform. It has no functionality }, diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/helpers.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/helpers.ts index de4f9a908c95f..727fee5f9e993 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/helpers.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/helpers.ts @@ -9,8 +9,14 @@ import type { RiskScoresCalculationResponse } from '../../../../common/api/entit import type { AfterKeys, EntityAfterKey } from '../../../../common/api/entity_analytics/common'; import type { IdentifierType } from '../../../../common/entity_analytics/risk_engine'; +const identifierByEntityType = { + host: 'host.name', + user: 'user.name', + service: 'service.name', +}; + export const getFieldForIdentifier = (identifierType: IdentifierType): string => - identifierType === 'host' ? 'host.name' : 'user.name'; + identifierByEntityType[identifierType]; export const getAfterKeyForIdentifierType = ({ afterKeys, @@ -22,4 +28,5 @@ export const getAfterKeyForIdentifierType = ({ export const isRiskScoreCalculationComplete = (result: RiskScoresCalculationResponse): boolean => Object.keys(result.after_keys.host ?? {}).length === 0 && - Object.keys(result.after_keys.user ?? {}).length === 0; + Object.keys(result.after_keys.user ?? {}).length === 0 && + Object.keys(result.after_keys.service ?? {}).length === 0; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_engine_data_writer.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_engine_data_writer.ts index e24f09e7b2cc8..cd217df7a6b5e 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_engine_data_writer.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_engine_data_writer.ts @@ -19,6 +19,7 @@ interface WriterBulkResponse { interface BulkParams { host?: EntityRiskScoreRecord[]; user?: EntityRiskScoreRecord[]; + service?: EntityRiskScoreRecord[]; refresh?: 'wait_for'; } @@ -38,7 +39,7 @@ export class RiskEngineDataWriter implements RiskEngineDataWriter { public bulk = async (params: BulkParams) => { try { - if (!params.host?.length && !params.user?.length) { + if (!params.host?.length && !params.user?.length && !params.service?.length) { return { errors: [], docs_written: 0, took: 0 }; } @@ -81,7 +82,13 @@ export class RiskEngineDataWriter implements RiskEngineDataWriter { this.scoreToEcs(score, 'user'), ]) ?? []; - return hostBody.concat(userBody) as BulkOperationContainer[]; + const serviceBody = + params.service?.flatMap((score) => [ + { create: { _index: this.options.index } }, + this.scoreToEcs(score, 'service'), + ]) ?? []; + + return [...hostBody, ...userBody, ...serviceBody] as BulkOperationContainer[]; }; private scoreToEcs = (score: EntityRiskScoreRecord, identifierType: IdentifierType): unknown => { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.test.ts index cec3330af52e6..1e285e27c4fe7 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.test.ts @@ -38,13 +38,14 @@ jest.mock('../utils/create_or_update_index', () => ({ jest.spyOn(transforms, 'createTransform').mockResolvedValue(Promise.resolve()); jest.spyOn(transforms, 'scheduleTransformNow').mockResolvedValue(Promise.resolve()); +let logger: ReturnType; +const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; +const totalFieldsLimit = 1000; + describe('RiskScoreDataClient', () => { let riskScoreDataClient: RiskScoreDataClient; let riskScoreDataClientWithNameSpace: RiskScoreDataClient; let mockSavedObjectClient: ReturnType; - let logger: ReturnType; - const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; - const totalFieldsLimit = 1000; beforeEach(() => { logger = loggingSystemMock.createLogger(); @@ -84,244 +85,6 @@ describe('RiskScoreDataClient', () => { describe('init success', () => { it('should initialize risk engine resources in the appropriate space', async () => { - const assertComponentTemplate = (namespace: string) => { - expect(createOrUpdateComponentTemplate).toHaveBeenCalledWith( - expect.objectContaining({ - logger, - esClient, - template: expect.objectContaining({ - name: `.risk-score-mappings-${namespace}`, - _meta: { - managed: true, - }, - }), - totalFieldsLimit: 1000, - }) - ); - }; - - const assertIndexTemplate = (namespace: string) => { - expect(createOrUpdateIndexTemplate).toHaveBeenCalledWith({ - logger, - esClient, - template: { - name: `.risk-score.risk-score-${namespace}-index-template`, - body: { - data_stream: { hidden: true }, - index_patterns: [`risk-score.risk-score-${namespace}`], - composed_of: [`.risk-score-mappings-${namespace}`], - template: { - lifecycle: {}, - settings: { - 'index.mapping.total_fields.limit': totalFieldsLimit, - }, - mappings: { - dynamic: false, - _meta: { - kibana: { - version: '8.9.0', - }, - managed: true, - namespace, - }, - }, - }, - _meta: { - kibana: { - version: '8.9.0', - }, - managed: true, - namespace, - }, - }, - }, - }); - }; - - const assertDataStream = (namespace: string) => { - expect(createDataStream).toHaveBeenCalledWith({ - logger, - esClient, - totalFieldsLimit, - indexPatterns: { - template: `.risk-score.risk-score-${namespace}-index-template`, - alias: `risk-score.risk-score-${namespace}`, - }, - }); - }; - - const assertIndex = (namespace: string) => { - expect(createOrUpdateIndex).toHaveBeenCalledWith({ - logger, - esClient, - options: { - index: `risk-score.risk-score-latest-${namespace}`, - mappings: { - dynamic: false, - properties: { - '@timestamp': { - ignore_malformed: false, - type: 'date', - }, - host: { - properties: { - name: { - type: 'keyword', - }, - risk: { - properties: { - calculated_level: { - type: 'keyword', - }, - calculated_score: { - type: 'float', - }, - calculated_score_norm: { - type: 'float', - }, - category_1_count: { - type: 'long', - }, - category_1_score: { - type: 'float', - }, - id_field: { - type: 'keyword', - }, - id_value: { - type: 'keyword', - }, - inputs: { - properties: { - category: { - type: 'keyword', - }, - description: { - type: 'keyword', - }, - id: { - type: 'keyword', - }, - index: { - type: 'keyword', - }, - risk_score: { - type: 'float', - }, - timestamp: { - type: 'date', - }, - }, - type: 'object', - }, - notes: { - type: 'keyword', - }, - }, - type: 'object', - }, - }, - }, - user: { - properties: { - name: { - type: 'keyword', - }, - risk: { - properties: { - calculated_level: { - type: 'keyword', - }, - calculated_score: { - type: 'float', - }, - calculated_score_norm: { - type: 'float', - }, - category_1_count: { - type: 'long', - }, - category_1_score: { - type: 'float', - }, - id_field: { - type: 'keyword', - }, - id_value: { - type: 'keyword', - }, - inputs: { - properties: { - category: { - type: 'keyword', - }, - description: { - type: 'keyword', - }, - id: { - type: 'keyword', - }, - index: { - type: 'keyword', - }, - risk_score: { - type: 'float', - }, - timestamp: { - type: 'date', - }, - }, - type: 'object', - }, - notes: { - type: 'keyword', - }, - }, - type: 'object', - }, - }, - }, - }, - }, - }, - }); - }; - - const assertTransform = (namespace: string) => { - expect(transforms.createTransform).toHaveBeenCalledWith({ - logger, - esClient, - transform: { - dest: { - index: `risk-score.risk-score-latest-${namespace}`, - }, - frequency: '1h', - latest: { - sort: '@timestamp', - unique_key: ['host.name', 'user.name'], - }, - source: { - index: [`risk-score.risk-score-${namespace}`], - }, - sync: { - time: { - delay: '0s', - field: '@timestamp', - }, - }, - transform_id: `risk_score_latest_transform_${namespace}`, - settings: { - unattended: true, - }, - _meta: { - version: 2, - managed: true, - managed_by: 'security-entity-analytics', - }, - }, - }); - }; - // Default namespace esClient.cluster.existsComponentTemplate.mockResolvedValue(false); await riskScoreDataClient.init(); @@ -340,139 +103,9 @@ describe('RiskScoreDataClient', () => { assertIndex('space-1'); assertTransform('space-1'); - expect((createOrUpdateComponentTemplate as jest.Mock).mock.lastCall[0].template.template) - .toMatchInlineSnapshot(` - Object { - "mappings": Object { - "dynamic": "strict", - "properties": Object { - "@timestamp": Object { - "ignore_malformed": false, - "type": "date", - }, - "host": Object { - "properties": Object { - "name": Object { - "type": "keyword", - }, - "risk": Object { - "properties": Object { - "calculated_level": Object { - "type": "keyword", - }, - "calculated_score": Object { - "type": "float", - }, - "calculated_score_norm": Object { - "type": "float", - }, - "category_1_count": Object { - "type": "long", - }, - "category_1_score": Object { - "type": "float", - }, - "id_field": Object { - "type": "keyword", - }, - "id_value": Object { - "type": "keyword", - }, - "inputs": Object { - "properties": Object { - "category": Object { - "type": "keyword", - }, - "description": Object { - "type": "keyword", - }, - "id": Object { - "type": "keyword", - }, - "index": Object { - "type": "keyword", - }, - "risk_score": Object { - "type": "float", - }, - "timestamp": Object { - "type": "date", - }, - }, - "type": "object", - }, - "notes": Object { - "type": "keyword", - }, - }, - "type": "object", - }, - }, - }, - "user": Object { - "properties": Object { - "name": Object { - "type": "keyword", - }, - "risk": Object { - "properties": Object { - "calculated_level": Object { - "type": "keyword", - }, - "calculated_score": Object { - "type": "float", - }, - "calculated_score_norm": Object { - "type": "float", - }, - "category_1_count": Object { - "type": "long", - }, - "category_1_score": Object { - "type": "float", - }, - "id_field": Object { - "type": "keyword", - }, - "id_value": Object { - "type": "keyword", - }, - "inputs": Object { - "properties": Object { - "category": Object { - "type": "keyword", - }, - "description": Object { - "type": "keyword", - }, - "id": Object { - "type": "keyword", - }, - "index": Object { - "type": "keyword", - }, - "risk_score": Object { - "type": "float", - }, - "timestamp": Object { - "type": "date", - }, - }, - "type": "object", - }, - "notes": Object { - "type": "keyword", - }, - }, - "type": "object", - }, - }, - }, - }, - }, - "settings": Object {}, - } - `); + expect( + (createOrUpdateComponentTemplate as jest.Mock).mock.lastCall[0].template.template + ).toMatchSnapshot(); }); }); @@ -527,3 +160,105 @@ describe('RiskScoreDataClient', () => { }); }); }); + +const assertComponentTemplate = (namespace: string) => { + expect(createOrUpdateComponentTemplate).toHaveBeenCalledWith( + expect.objectContaining({ + logger, + esClient, + template: expect.objectContaining({ + name: `.risk-score-mappings-${namespace}`, + _meta: { + managed: true, + }, + }), + totalFieldsLimit: 1000, + }) + ); +}; + +const assertIndexTemplate = (namespace: string) => { + expect(createOrUpdateIndexTemplate).toHaveBeenCalledWith({ + logger, + esClient, + template: { + name: `.risk-score.risk-score-${namespace}-index-template`, + body: expect.objectContaining({ + data_stream: { hidden: true }, + index_patterns: [`risk-score.risk-score-${namespace}`], + composed_of: [`.risk-score-mappings-${namespace}`], + }), + }, + }); +}; + +const assertDataStream = (namespace: string) => { + expect(createDataStream).toHaveBeenCalledWith({ + logger, + esClient, + totalFieldsLimit, + indexPatterns: { + template: `.risk-score.risk-score-${namespace}-index-template`, + alias: `risk-score.risk-score-${namespace}`, + }, + }); +}; + +const assertIndex = (namespace: string) => { + expect(createOrUpdateIndex).toHaveBeenCalledWith({ + logger, + esClient, + options: { + index: `risk-score.risk-score-latest-${namespace}`, + mappings: expect.any(Object), + }, + }); +}; + +const assertTransform = (namespace: string) => { + expect(transforms.createTransform).toHaveBeenCalledWith({ + logger, + esClient, + transform: { + dest: { + index: `risk-score.risk-score-latest-${namespace}`, + }, + frequency: '1h', + latest: { + sort: '@timestamp', + unique_key: ['host.name', 'user.name', 'service.name'], + }, + source: { + index: [`risk-score.risk-score-${namespace}`], + query: { + bool: { + filter: [ + { + range: { + '@timestamp': { + gte: 'now-24h', + }, + }, + }, + ], + }, + }, + }, + sync: { + time: { + delay: '0s', + field: '@timestamp', + }, + }, + transform_id: `risk_score_latest_transform_${namespace}`, + settings: { + unattended: true, + }, + _meta: { + version: 3, + managed: true, + managed_by: 'security-entity-analytics', + }, + }, + }); +}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.ts index 981e89c8d8ec5..74391c6bc3c5b 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_data_client.ts @@ -26,14 +26,19 @@ import { riskScoreFieldMap, totalFieldsLimit, } from './configurations'; -import { createDataStream } from '../utils/create_datastream'; +import { createDataStream, updateUnderlyingMapping } from '../utils/create_datastream'; import type { RiskEngineDataWriter as Writer } from './risk_engine_data_writer'; import { RiskEngineDataWriter } from './risk_engine_data_writer'; import { getRiskScoreLatestIndex, getRiskScoreTimeSeriesIndex, } from '../../../../common/entity_analytics/risk_engine'; -import { createTransform, getLatestTransformId } from '../utils/transforms'; +import { + createTransform, + deleteTransform, + stopTransform, + getLatestTransformId, +} from '../utils/transforms'; import { getRiskInputsIndex } from './get_risk_inputs_index'; import { createOrUpdateIndex } from '../utils/create_or_update_index'; @@ -88,7 +93,7 @@ export class RiskScoreDataClient { soClient: this.options.soClient, }); - public createRiskScoreLatestIndex = async () => { + public createOrUpdateRiskScoreLatestIndex = async () => { await createOrUpdateIndex({ esClient: this.options.esClient, logger: this.options.logger, @@ -99,6 +104,30 @@ export class RiskScoreDataClient { }); }; + public createOrUpdateRiskScoreIndexTemplate = async () => + createOrUpdateComponentTemplate({ + logger: this.options.logger, + esClient: this.options.esClient, + template: { + name: nameSpaceAwareMappingsComponentName(this.options.namespace), + _meta: { + managed: true, + }, + template: { + settings: {}, + mappings: mappingFromFieldMap(riskScoreFieldMap, 'strict'), + }, + } as ClusterPutComponentTemplateRequest, + totalFieldsLimit, + }); + + public updateRiskScoreTimeSeriesIndexMappings = async () => + updateUnderlyingMapping({ + esClient: this.options.esClient, + logger: this.options.logger, + index: getRiskScoreTimeSeriesIndex(this.options.namespace), + }); + public async init() { const namespace = this.options.namespace; @@ -116,32 +145,15 @@ export class RiskScoreDataClient { }; // Check if there are any existing component templates with the namespace in the name - const oldComponentTemplateExists = await esClient.cluster.existsComponentTemplate({ name: mappingComponentName, }); if (oldComponentTemplateExists) { - await this.updateComponentTemplateNamewithNamespace(namespace); + await this.updateComponentTemplateNameWithNamespace(namespace); } // Update the new component template with the required data - await Promise.all([ - createOrUpdateComponentTemplate({ - logger: this.options.logger, - esClient, - template: { - name: nameSpaceAwareMappingsComponentName(namespace), - _meta: { - managed: true, - }, - template: { - settings: {}, - mappings: mappingFromFieldMap(riskScoreFieldMap, 'strict'), - }, - } as ClusterPutComponentTemplateRequest, - totalFieldsLimit, - }), - ]); + await this.createOrUpdateRiskScoreIndexTemplate(); // Reference the new component template in the index template await createOrUpdateIndexTemplate({ @@ -183,7 +195,7 @@ export class RiskScoreDataClient { indexPatterns, }); - await this.createRiskScoreLatestIndex(); + await this.createOrUpdateRiskScoreLatestIndex(); const transformId = getLatestTransformId(namespace); await createTransform({ @@ -226,16 +238,12 @@ export class RiskScoreDataClient { const errors: Error[] = []; const addError = (e: Error) => errors.push(e); - await esClient.transform - .deleteTransform( - { - transform_id: getLatestTransformId(namespace), - delete_dest_index: true, - force: true, - }, - { ignore: [404] } - ) - .catch(addError); + await deleteTransform({ + esClient, + logger: this.options.logger, + transformId: getLatestTransformId(namespace), + deleteData: true, + }).catch(addError); await esClient.indices .deleteDataStream( @@ -316,7 +324,7 @@ export class RiskScoreDataClient { ); } - private async updateComponentTemplateNamewithNamespace(namespace: string): Promise { + private async updateComponentTemplateNameWithNamespace(namespace: string): Promise { const esClient = this.options.esClient; const oldComponentTemplateResponse = await esClient.cluster.getComponentTemplate( { @@ -331,4 +339,25 @@ export class RiskScoreDataClient { body: oldComponentTemplate.component_template, }); } + + public async reinstallTransform() { + const esClient = this.options.esClient; + const namespace = this.options.namespace; + const transformId = getLatestTransformId(namespace); + const indexPatterns = getIndexPatternDataStream(namespace); + + await stopTransform({ esClient, logger: this.options.logger, transformId }); + await deleteTransform({ esClient, logger: this.options.logger, transformId }); + await createTransform({ + esClient, + logger: this.options.logger, + transform: { + transform_id: transformId, + ...getTransformOptions({ + dest: getRiskScoreLatestIndex(namespace), + source: [indexPatterns.alias], + }), + }, + }); + } } diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_service.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_service.ts index 1ea91db45b341..a9a06b0c4f21d 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_service.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/risk_score_service.ts @@ -6,6 +6,7 @@ */ import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { ExperimentalFeatures } from '../../../../common'; import type { RiskScoresCalculationResponse, RiskScoresPreviewResponse, @@ -48,6 +49,7 @@ export interface RiskScoreServiceFactoryParams { riskScoreDataClient: RiskScoreDataClient; spaceId: string; refresh?: 'wait_for'; + experimentalFeatures: ExperimentalFeatures; } export const riskScoreServiceFactory = ({ @@ -57,9 +59,16 @@ export const riskScoreServiceFactory = ({ riskEngineDataClient, riskScoreDataClient, spaceId, + experimentalFeatures, }: RiskScoreServiceFactoryParams): RiskScoreService => ({ calculateScores: (params) => - calculateRiskScores({ ...params, assetCriticalityService, esClient, logger }), + calculateRiskScores({ + ...params, + assetCriticalityService, + esClient, + logger, + experimentalFeatures, + }), calculateAndPersistScores: (params) => calculateAndPersistRiskScores({ ...params, @@ -68,6 +77,7 @@ export const riskScoreServiceFactory = ({ logger, riskScoreDataClient, spaceId, + experimentalFeatures, }), getConfigurationWithDefaults: async (entityAnalyticsConfig: EntityAnalyticsConfig) => { const savedObjectConfig = await riskEngineDataClient.getConfiguration(); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/routes/helpers.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/routes/helpers.ts index 41145f799eb43..387de9444a14a 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/routes/helpers.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/routes/helpers.ts @@ -25,6 +25,7 @@ export function buildRiskScoreServiceForRequest( }); const riskEngineDataClient = securityContext.getRiskEngineDataClient(); const riskScoreDataClient = securityContext.getRiskScoreDataClient(); + const experimentalFeatures = securityContext.getConfig().experimentalFeatures; return riskScoreServiceFactory({ assetCriticalityService, @@ -33,5 +34,6 @@ export function buildRiskScoreServiceForRequest( riskEngineDataClient, riskScoreDataClient, spaceId, + experimentalFeatures, }); } diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.test.ts index 6e24e4c54e52a..d409470a915cd 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.test.ts @@ -24,9 +24,12 @@ import { } from './risk_scoring_task'; import type { ConfigType } from '../../../../config'; import { TaskStatus } from '@kbn/task-manager-plugin/server'; +import type { ExperimentalFeatures } from '../../../../../common'; const ISO_8601_PATTERN = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/; +const mockExperimentalFeatures = {} as ExperimentalFeatures; + const entityAnalyticsConfig = { riskEngine: { alertSampleSizePerShard: 10_000, @@ -63,6 +66,7 @@ describe('Risk Scoring Task', () => { telemetry: mockTelemetry, entityAnalyticsConfig, auditLogger: undefined, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockTaskManagerSetup.registerTaskDefinitions).toHaveBeenCalled(); }); @@ -77,6 +81,7 @@ describe('Risk Scoring Task', () => { telemetry: mockTelemetry, entityAnalyticsConfig, auditLogger: undefined, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockTaskManagerSetup.registerTaskDefinitions).not.toHaveBeenCalled(); }); @@ -209,6 +214,9 @@ describe('Risk Scoring Task', () => { pageSize: 10_000, range: { start: 'now-30d', end: 'now' }, alertSampleSizePerShard: 10_000, + _meta: { + mappingsVersion: 1, + }, }); mockIsCancelled = jest.fn().mockReturnValue(false); @@ -232,6 +240,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).toHaveBeenCalledTimes(1); }); @@ -260,6 +269,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.getConfigurationWithDefaults).toHaveBeenCalledTimes(1); @@ -273,6 +283,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).toHaveBeenCalledTimes(2); }); @@ -289,6 +300,9 @@ describe('Risk Scoring Task', () => { pageSize: 11_111, range: { start: 'now-30d', end: 'now' }, alertSampleSizePerShard: 10_000, + _meta: { + mappingsVersion: 1, + }, }); await runTask({ getRiskScoreService, @@ -297,6 +311,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).toHaveBeenCalledWith( @@ -325,6 +340,9 @@ describe('Risk Scoring Task', () => { pageSize: 10_000, range: { start: 'now-30d', end: 'now' }, alertSampleSizePerShard: 10_000, + _meta: { + mappingsVersion: 1, + }, }); // add additional mock responses for the additional identifier calls mockRiskScoreService.calculateAndPersistScores @@ -348,6 +366,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).toHaveBeenCalledTimes(4); @@ -373,6 +392,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(initialState).not.toEqual(nextState); @@ -397,6 +417,9 @@ describe('Risk Scoring Task', () => { pageSize: 11_111, range: { start: 'now-30d', end: 'now' }, alertSampleSizePerShard: 10_000, + _meta: { + mappingsVersion: 1, + }, }); await runTask({ getRiskScoreService, @@ -405,6 +428,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).not.toHaveBeenCalled(); @@ -420,6 +444,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).not.toHaveBeenCalled(); @@ -436,6 +461,7 @@ describe('Risk Scoring Task', () => { isCancelled: mockIsCancelled, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).not.toHaveBeenCalled(); @@ -458,6 +484,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.calculateAndPersistScores).not.toHaveBeenCalled(); @@ -471,6 +498,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockLogger.info).toHaveBeenCalledWith( @@ -488,6 +516,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockTelemetry.reportEvent).toHaveBeenCalledWith('risk_score_execution_success', { @@ -506,6 +535,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.scheduleLatestTransformNow).toHaveBeenCalledTimes(1); @@ -519,6 +549,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockRiskScoreService.refreshRiskScoreIndex).toHaveBeenCalledTimes(1); @@ -542,6 +573,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); } catch (err) { expect(mockTelemetry.reportEvent).toHaveBeenCalledTimes(1); @@ -561,6 +593,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }) ).rejects.toThrow(); @@ -577,6 +610,7 @@ describe('Risk Scoring Task', () => { taskInstance: riskScoringTaskInstanceMock, telemetry: mockTelemetry, entityAnalyticsConfig, + experimentalFeatures: mockExperimentalFeatures, }); expect(mockTelemetry.reportEvent).toHaveBeenCalledWith( diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.ts index 06ec89061e7e5..0ebb192249caa 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/tasks/risk_scoring_task.ts @@ -16,10 +16,12 @@ import type { } from '@kbn/task-manager-plugin/server'; import type { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; import type { AuditLogger } from '@kbn/security-plugin-types-server'; +import type { ExperimentalFeatures } from '../../../../../common'; import type { AfterKeys } from '../../../../../common/api/entity_analytics/common'; import { type IdentifierType, RiskScoreEntity, + SERVICE_RISK_SCORE_ENTITY, } from '../../../../../common/entity_analytics/risk_engine'; import { type RiskScoreService, riskScoreServiceFactory } from '../risk_score_service'; import { RiskEngineDataClient } from '../../risk_engine/risk_engine_data_client'; @@ -62,6 +64,7 @@ export const registerRiskScoringTask = ({ taskManager, telemetry, entityAnalyticsConfig, + experimentalFeatures, }: { getStartServices: EntityAnalyticsRoutesDeps['getStartServices']; kibanaVersion: string; @@ -70,6 +73,7 @@ export const registerRiskScoringTask = ({ taskManager: TaskManagerSetupContract | undefined; telemetry: AnalyticsServiceSetup; entityAnalyticsConfig: EntityAnalyticsConfig; + experimentalFeatures: ExperimentalFeatures; }): void => { if (!taskManager) { logger.info('Task Manager is unavailable; skipping risk engine task registration.'); @@ -117,6 +121,7 @@ export const registerRiskScoringTask = ({ riskEngineDataClient, riskScoreDataClient, spaceId: namespace, + experimentalFeatures, }); }); @@ -130,6 +135,7 @@ export const registerRiskScoringTask = ({ getRiskScoreService, telemetry, entityAnalyticsConfig, + experimentalFeatures, }), }, }); @@ -218,6 +224,7 @@ export const runTask = async ({ taskInstance, telemetry, entityAnalyticsConfig, + experimentalFeatures, }: { logger: Logger; isCancelled: () => boolean; @@ -225,6 +232,7 @@ export const runTask = async ({ taskInstance: ConcreteTaskInstance; telemetry: AnalyticsServiceSetup; entityAnalyticsConfig: EntityAnalyticsConfig; + experimentalFeatures: ExperimentalFeatures; }): Promise<{ state: RiskScoringTaskState; }> => { @@ -283,8 +291,11 @@ export const runTask = async ({ const { index, runtimeMappings } = await riskScoreService.getRiskInputsIndex({ dataViewId, }); + const identifierTypes: IdentifierType[] = configuredIdentifierType ? [configuredIdentifierType] + : experimentalFeatures.serviceEntityStoreEnabled + ? [RiskScoreEntity.host, RiskScoreEntity.user, SERVICE_RISK_SCORE_ENTITY] : [RiskScoreEntity.host, RiskScoreEntity.user]; const runs: Array<{ @@ -384,11 +395,13 @@ const createTaskRunnerFactory = getRiskScoreService, telemetry, entityAnalyticsConfig, + experimentalFeatures, }: { logger: Logger; getRiskScoreService: GetRiskScoreService; telemetry: AnalyticsServiceSetup; entityAnalyticsConfig: EntityAnalyticsConfig; + experimentalFeatures: ExperimentalFeatures; }) => ({ taskInstance }: { taskInstance: ConcreteTaskInstance }) => { let cancelled = false; @@ -402,6 +415,7 @@ const createTaskRunnerFactory = taskInstance, telemetry, entityAnalyticsConfig, + experimentalFeatures, }), cancel: async () => { cancelled = true; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/types.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/types.ts index 48ddc9b4a7698..9f6ea4b2245f0 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/types.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/types.ts @@ -34,6 +34,10 @@ export interface CalculateRiskScoreAggregations { after_key: EntityAfterKey; buckets: RiskScoreBucket[]; }; + service?: { + after_key: EntityAfterKey; + buckets: RiskScoreBucket[]; + }; } export interface SearchHitRiskInput { @@ -72,6 +76,10 @@ export interface RiskEngineConfiguration { pageSize: number; range: Range; alertSampleSizePerShard?: number; + // When the version changes the engine automatically updates the mappings + _meta: { + mappingsVersion: number; + }; } export interface CalculateScoresParams { diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_datastream.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_datastream.ts index 5d2d71219021e..ed56a35968bdb 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_datastream.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_datastream.ts @@ -66,7 +66,7 @@ const updateTotalFieldLimitSetting = async ({ // is due to the fact settings can be classed as dynamic and static, and static // updates will fail on an index that isn't closed. New settings *will* be applied as part // of the ILM policy rollovers. More info: https://github.com/elastic/kibana/pull/113389#issuecomment-940152654 -const updateUnderlyingMapping = async ({ logger, esClient, index }: UpdateIndexOpts) => { +export const updateUnderlyingMapping = async ({ logger, esClient, index }: UpdateIndexOpts) => { let simulatedIndexMapping: IndicesSimulateIndexTemplateResponse; try { simulatedIndexMapping = await retryTransientEsErrors( diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_or_update_index.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_or_update_index.ts index b6e49017c95a7..a37b43ed5af93 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_or_update_index.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/create_or_update_index.ts @@ -13,7 +13,7 @@ import type { import { retryTransientEsErrors } from './retry_transient_es_errors'; /** - * It's check for index existatnce, and create index + * It's check for index existence, and create index * or update existing index mappings */ export const createOrUpdateIndex = async ({ diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.test.ts index ff1aa5e041c60..857d097363fa8 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.test.ts @@ -15,7 +15,11 @@ import { getRiskScoreTimeSeriesIndex, } from '../../../../common/entity_analytics/risk_engine'; import { getTransformOptions } from '../risk_score/configurations'; -import { scheduleLatestTransformNow, scheduleTransformNow } from './transforms'; +import { + scheduleLatestTransformNow, + scheduleTransformNow, + upgradeLatestTransformIfNeeded, +} from './transforms'; const transformId = 'test_transform_id'; @@ -74,6 +78,28 @@ const outdatedTransformsMock = { }, ], } as TransformGetTransformResponse; +const outdatedTransformsRequiredReinstallMock = { + count: 1, + transforms: [ + { + ...transformConfig, + id: 'test_transform_id_3', + sync: { + time: { + field: '@timestamp', + delay: '2s', + }, + }, + latest: { + unique_key: ['test'], + sort: 'desc', + }, + _meta: { + version: '1', + }, + }, + ], +} as TransformGetTransformResponse; const logger = loggingSystemMock.createLogger(); @@ -135,5 +161,49 @@ describe('transforms utils', () => { 'There was an error upgrading the transform risk_score_latest_transform_tests. Continuing with transform scheduling. Test error' ); }); + + it('it calls upgradeLatestTransformIfNeeded', async () => { + const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; + esClient.transform.getTransformStats.mockResolvedValueOnce(stoppedTransformsMock); + esClient.transform.getTransform.mockResolvedValueOnce(outdatedTransformsMock); + + await scheduleLatestTransformNow({ esClient, namespace: 'tests', logger }); + + expect(esClient.transform.updateTransform).toHaveBeenCalled(); + }); + }); + + describe('upgradeLatestTransformIfNeeded', () => { + it('updateTransform the transform if it is outdated', async () => { + const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; + esClient.transform.getTransform.mockResolvedValueOnce(outdatedTransformsMock); + + await upgradeLatestTransformIfNeeded({ esClient, namespace: 'tests', logger }); + + expect(esClient.transform.updateTransform).toHaveBeenCalled(); + }); + + it('does not reinstall the transform if it is not outdated', async () => { + const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; + esClient.transform.getTransform.mockResolvedValueOnce(updatedTransformsMock); + + await upgradeLatestTransformIfNeeded({ esClient, namespace: 'tests', logger }); + + expect(esClient.transform.updateTransform).not.toHaveBeenCalled(); + }); + + it('reinstalls the transform if it is outdated and requires reinstall', async () => { + const esClient = elasticsearchServiceMock.createScopedClusterClient().asCurrentUser; + + esClient.transform.getTransform + .mockResolvedValueOnce(outdatedTransformsRequiredReinstallMock) + .mockRejectedValueOnce({ statusCode: 404 }); // MAKE IT 404 + + await upgradeLatestTransformIfNeeded({ esClient, namespace: 'tests', logger }); + + expect(esClient.transform.stopTransform).toHaveBeenCalled(); + expect(esClient.transform.deleteTransform).toHaveBeenCalled(); + expect(esClient.transform.putTransform).toHaveBeenCalled(); + }); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.ts index 35a7f7113bfa5..1f2c6bdd98b5a 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/utils/transforms.ts @@ -13,6 +13,7 @@ import type { TransformGetTransformTransformSummary, TransformPutTransformRequest, TransformGetTransformStatsTransformStats, + AcknowledgedResponseBase, } from '@elastic/elasticsearch/lib/api/types'; import { getRiskScoreLatestIndex, @@ -25,6 +26,7 @@ import { } from '../../../../common/utils/risk_score_modules'; import type { TransformOptions } from '../risk_score/configurations'; import { getTransformOptions } from '../risk_score/configurations'; +import { retryTransientEsErrors } from './retry_transient_es_errors'; export const getLegacyTransforms = async ({ namespace, @@ -106,6 +108,72 @@ export const createTransform = async ({ } }; +export const stopTransform = async ({ + esClient, + logger, + transformId, +}: { + esClient: ElasticsearchClient; + logger: Logger; + transformId: string; +}): Promise => + retryTransientEsErrors( + () => + esClient.transform.stopTransform( + { + transform_id: transformId, + wait_for_completion: true, + force: true, + }, + { ignore: [409, 404] } + ), + { logger } + ); + +export const deleteTransform = ({ + esClient, + logger, + transformId, + deleteData = false, +}: { + esClient: ElasticsearchClient; + logger: Logger; + transformId: string; + deleteData?: boolean; +}): Promise => + retryTransientEsErrors( + () => + esClient.transform.deleteTransform( + { + transform_id: transformId, + force: true, + delete_dest_index: deleteData, + }, + { ignore: [404] } + ), + { logger } + ); + +export const reinstallTransform = async ({ + esClient, + logger, + config, +}: { + esClient: ElasticsearchClient; + logger: Logger; + config: TransformPutTransformRequest; +}): Promise => { + const transformId = config.transform_id; + + await stopTransform({ esClient, logger, transformId }); + await deleteTransform({ esClient, logger, transformId }); + await createTransform({ + esClient, + logger, + transform: config, + }); +}; + export const getLatestTransformId = (namespace: string): string => `risk_score_latest_transform_${namespace}`; @@ -141,9 +209,10 @@ export const scheduleTransformNow = async ({ }; /** - * Whenever we change the latest transform configuration, we must ensure we update the transform in environments where it has already been installed. + * This method updates the transform configuration if it is outdated. + * If the 'latest' property of the transform changes it will reinstall the transform. */ -const upgradeLatestTransformIfNeeded = async ({ +export const upgradeLatestTransformIfNeeded = async ({ esClient, namespace, logger, @@ -166,14 +235,22 @@ const upgradeLatestTransformIfNeeded = async ({ }); if (isTransformOutdated(response.transforms[0], newConfig)) { - logger.info(`Upgrading transform ${transformId}`); - - const { latest: _unused, ...changes } = newConfig; + if (doesTransformRequireReinstall(response.transforms[0], newConfig)) { + logger.info(`Reinstalling transform ${transformId}`); + await reinstallTransform({ + esClient, + logger, + config: { ...newConfig, transform_id: transformId }, + }); + } else { + logger.info(`Upgrading transform ${transformId}`); + const { latest: _unused, ...changes } = newConfig; - await esClient.transform.updateTransform({ - transform_id: transformId, - ...changes, - }); + await esClient.transform.updateTransform({ + transform_id: transformId, + ...changes, + }); + } } }; @@ -199,11 +276,12 @@ export const scheduleLatestTransformNow = async ({ await scheduleTransformNow({ esClient, transformId }); }; -/** - * Whitelist the transform fields that we can update. - */ - const isTransformOutdated = ( transform: TransformGetTransformTransformSummary, newConfig: TransformOptions ): boolean => transform._meta?.version !== newConfig._meta?.version; + +const doesTransformRequireReinstall = ( + transform: TransformGetTransformTransformSummary, + newConfig: TransformOptions +): boolean => JSON.stringify(transform.latest) !== JSON.stringify(newConfig.latest); diff --git a/x-pack/solutions/security/plugins/security_solution/server/plugin.ts b/x-pack/solutions/security/plugins/security_solution/server/plugin.ts index 946caee4600c1..7e19e2162e3a8 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/plugin.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/plugin.ts @@ -221,6 +221,7 @@ export class Plugin implements ISecuritySolutionPlugin { taskManager: plugins.taskManager, telemetry: core.analytics, entityAnalyticsConfig: config.entityAnalytics, + experimentalFeatures, }); } @@ -229,6 +230,7 @@ export class Plugin implements ISecuritySolutionPlugin { taskManager: plugins.taskManager, logger: this.logger, auditLogger: plugins.security?.audit.withoutRequest, + kibanaVersion: pluginContext.env.packageInfo.version, }).catch((err) => { logger.error(`Error scheduling entity analytics migration: ${err}`); }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/usage/risk_engine/get_risk_engine_metrics.ts b/x-pack/solutions/security/plugins/security_solution/server/usage/risk_engine/get_risk_engine_metrics.ts index ccb15b540152b..481696360afaf 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/usage/risk_engine/get_risk_engine_metrics.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/usage/risk_engine/get_risk_engine_metrics.ts @@ -40,6 +40,7 @@ const getEntitiesAggregationData = async ({ logger, hostMetricField, userMetricField, + serviceMetricField, lastDay, }: { esClient: ElasticsearchClient; @@ -47,6 +48,7 @@ const getEntitiesAggregationData = async ({ logger: Logger; hostMetricField: string; userMetricField: string; + serviceMetricField: string; lastDay: boolean; }) => { try { @@ -72,6 +74,9 @@ const getEntitiesAggregationData = async ({ host_name: { value: number; }; + service_name: { + value: number; + }; } >({ index, @@ -81,10 +86,11 @@ const getEntitiesAggregationData = async ({ return { [userMetricField]: riskScoreAggsResponse?.aggregations?.user_name?.value, [hostMetricField]: riskScoreAggsResponse?.aggregations?.host_name?.value, + [serviceMetricField]: riskScoreAggsResponse?.aggregations?.service_name?.value, }; } catch (err) { logger.error( - `Error while fetching risk score metrics for ${hostMetricField} and ${userMetricField}: ${err}` + `Error while fetching risk score metrics for ${hostMetricField}, ${userMetricField} and ${serviceMetricField} : ${err}` ); return {}; } @@ -141,6 +147,7 @@ export const getRiskEngineMetrics = async ({ lastDay: false, hostMetricField: 'unique_host_risk_score_total', userMetricField: 'unique_user_risk_score_total', + serviceMetricField: 'unique_service_risk_score_total', }), getEntitiesAggregationData({ esClient, @@ -149,6 +156,7 @@ export const getRiskEngineMetrics = async ({ lastDay: true, hostMetricField: 'unique_host_risk_score_day', userMetricField: 'unique_user_risk_score_day', + serviceMetricField: 'unique_service_risk_score_day', }), getEntitiesAggregationData({ esClient, @@ -157,6 +165,7 @@ export const getRiskEngineMetrics = async ({ lastDay: false, hostMetricField: 'all_host_risk_scores_total', userMetricField: 'all_user_risk_scores_total', + serviceMetricField: 'all_service_risk_scores_total', }), getEntitiesAggregationData({ esClient, @@ -165,6 +174,7 @@ export const getRiskEngineMetrics = async ({ lastDay: true, hostMetricField: 'all_host_risk_scores_total_day', userMetricField: 'all_user_risk_scores_total_day', + serviceMetricField: 'all_service_risk_scores_total_day', }), getIndexSize({ esClient, diff --git a/x-pack/test/api_integration/apis/streams/helpers/requests.ts b/x-pack/test/api_integration/apis/streams/helpers/requests.ts index ae3a325b5f9b4..f26c53aaaf0aa 100644 --- a/x-pack/test/api_integration/apis/streams/helpers/requests.ts +++ b/x-pack/test/api_integration/apis/streams/helpers/requests.ts @@ -60,3 +60,15 @@ export async function deleteStream(supertest: Agent, id: string) { const response = await req.send().expect(200); return response.body; } + +export async function getUnmappedFieldsForStream(supertest: Agent, id: string) { + const req = supertest.get(`/api/streams/${id}/schema/unmapped_fields`).set('kbn-xsrf', 'xxx'); + const response = await req.send().expect(200); + return response.body; +} + +export async function simulateFieldsForStream(supertest: Agent, id: string, body: JsonObject) { + const req = supertest.post(`/api/streams/${id}/schema/fields_simulation`).set('kbn-xsrf', 'xxx'); + const response = await req.send(body).expect(200); + return response.body; +} diff --git a/x-pack/test/api_integration/apis/streams/index.ts b/x-pack/test/api_integration/apis/streams/index.ts index 14decb2400196..6c4cf358b8ac3 100644 --- a/x-pack/test/api_integration/apis/streams/index.ts +++ b/x-pack/test/api_integration/apis/streams/index.ts @@ -13,5 +13,6 @@ export default function ({ loadTestFile }: FtrProviderContext) { loadTestFile(require.resolve('./enrichment')); loadTestFile(require.resolve('./classic')); loadTestFile(require.resolve('./flush_config')); + loadTestFile(require.resolve('./schema')); }); } diff --git a/x-pack/test/api_integration/apis/streams/schema.ts b/x-pack/test/api_integration/apis/streams/schema.ts new file mode 100644 index 0000000000000..c8b90e90939c1 --- /dev/null +++ b/x-pack/test/api_integration/apis/streams/schema.ts @@ -0,0 +1,98 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import expect from '@kbn/expect'; +import { + deleteStream, + enableStreams, + forkStream, + getUnmappedFieldsForStream, + indexDocument, + simulateFieldsForStream, +} from './helpers/requests'; +import { FtrProviderContext } from '../../ftr_provider_context'; +import { cleanUpRootStream } from './helpers/cleanup'; +import { waitForDocumentInIndex } from '../../../alerting_api_integration/observability/helpers/alerting_wait_for_helpers'; + +export default function ({ getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esClient = getService('es'); + const retryService = getService('retry'); + const logger = getService('log'); + + describe('Streams Schema', () => { + after(async () => { + await deleteStream(supertest, 'logs.nginx'); + await cleanUpRootStream(esClient); + }); + + before(async () => { + await enableStreams(supertest); + + const doc = { + '@timestamp': '2024-01-01T00:00:10.000Z', + message: '2023-01-01T00:00:10.000Z error test', + ['some.field']: 'some value', + ['another.field']: 'another value', + lastField: 'last value', + ['log.level']: 'warning', + }; + + await indexDocument(esClient, 'logs', doc); + await waitForDocumentInIndex({ esClient, indexName: 'logs', retryService, logger }); + }); + + describe('Unmapped fields API', () => { + it('Returns unmapped fields', async () => { + const response = await getUnmappedFieldsForStream(supertest, 'logs'); + expect(response.unmappedFields).to.eql(['another.field', 'lastField', 'some.field']); + }); + }); + + describe('Fields simulation API', () => { + it('Returns failure status when simulation would fail', async () => { + const response = await simulateFieldsForStream(supertest, 'logs', { + field_definitions: [{ name: 'message', type: 'boolean' }], + }); + + expect(response.status).to.be('failure'); + expect(response.simulationError).to.be.a('string'); + expect(response.documentsWithRuntimeFieldsApplied).to.be(null); + }); + it('Returns success status when simulation would succeed', async () => { + const response = await simulateFieldsForStream(supertest, 'logs', { + field_definitions: [{ name: 'message', type: 'keyword' }], + }); + + expect(response.status).to.be('success'); + expect(response.simulationError).to.be(null); + expect(response.documentsWithRuntimeFieldsApplied).length(1); + }); + it('Returns unknown status when documents are missing and status cannot be determined', async () => { + const forkBody = { + stream: { + name: 'logs.nginx', + }, + condition: { + field: 'log.logger', + operator: 'eq', + value: 'nginx', + }, + }; + + await forkStream(supertest, 'logs', forkBody); + const response = await simulateFieldsForStream(supertest, 'logs.nginx', { + field_definitions: [{ name: 'message', type: 'keyword' }], + }); + + expect(response.status).to.be('unknown'); + expect(response.simulationError).to.be(null); + expect(response.documentsWithRuntimeFieldsApplied).to.be(null); + }); + }); + }); +} diff --git a/x-pack/test/api_integration/deployment_agnostic/services/alerting_api.ts b/x-pack/test/api_integration/deployment_agnostic/services/alerting_api.ts index 7a5cff10d58b1..f75f5d297c740 100644 --- a/x-pack/test/api_integration/deployment_agnostic/services/alerting_api.ts +++ b/x-pack/test/api_integration/deployment_agnostic/services/alerting_api.ts @@ -8,10 +8,10 @@ import type { AggregationsAggregate, SearchResponse } from '@elastic/elasticsearch/lib/api/types'; import { MetricThresholdParams } from '@kbn/infra-plugin/common/alerting/metrics'; import { ThresholdParams } from '@kbn/observability-plugin/common/custom_threshold_rule/types'; -import { ApmRuleParamsType } from '@kbn/apm-plugin/common/rules/schema'; import { RoleCredentials } from '@kbn/ftr-common-functional-services'; import { errors, type Client } from '@elastic/elasticsearch'; import type { TryWithRetriesOptions } from '@kbn/ftr-common-functional-services'; +import { ApmRuleParamsType } from '@kbn/apm-plugin/common/rules/apm_rule_types'; import { v4 as uuidv4 } from 'uuid'; import moment from 'moment'; import { DeploymentAgnosticFtrProviderContext } from '../ftr_provider_context'; diff --git a/x-pack/test/apm_api_integration/tests/alerts/helpers/alerting_api_helper.ts b/x-pack/test/apm_api_integration/tests/alerts/helpers/alerting_api_helper.ts index 86544981bbdb4..69d3664e38679 100644 --- a/x-pack/test/apm_api_integration/tests/alerts/helpers/alerting_api_helper.ts +++ b/x-pack/test/apm_api_integration/tests/alerts/helpers/alerting_api_helper.ts @@ -7,10 +7,11 @@ import { Client, errors } from '@elastic/elasticsearch'; import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common'; +import { ApmRuleParamsType } from '@kbn/apm-plugin/common/rules/apm_rule_types'; import pRetry from 'p-retry'; import type { Agent as SuperTestAgent } from 'supertest'; import { ApmRuleType } from '@kbn/rule-data-utils'; -import { ApmRuleParamsType } from '@kbn/apm-plugin/common/rules/schema'; + import { ObservabilityApmAlert } from '@kbn/alerts-as-data-utils'; import { APM_ACTION_VARIABLE_INDEX, diff --git a/x-pack/test/functional/services/ml/anomaly_charts.ts b/x-pack/test/functional/services/ml/anomaly_charts.ts index 50c639094408e..8f63c8cf3710a 100644 --- a/x-pack/test/functional/services/ml/anomaly_charts.ts +++ b/x-pack/test/functional/services/ml/anomaly_charts.ts @@ -31,7 +31,7 @@ export function AnomalyChartsProvider({ getService }: FtrProviderContext) { ? await testSubjects.find(chartsContainerSubj) : await testSubjects.find('mlExplorerChartsContainer'); const actualChartsCount = ( - await chartsContainer?.findAllByClassName('ml-explorer-chart-container', 3000) + await chartsContainer?.findAllByTestSubject('mlExplorerChartContainerItem', 3000) ).length; expect(actualChartsCount).to.eql( expectedChartsCount, diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality.ts index 9f5b0a3b79e38..d5d802acb3922 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality.ts @@ -70,6 +70,9 @@ export default ({ getService }: FtrProviderContext) => { expect( assetCriticalityIndexResult['.asset-criticality.asset-criticality-default']?.mappings ).to.eql({ + _meta: { + version: 2, + }, dynamic: 'strict', properties: { '@timestamp': { @@ -84,6 +87,20 @@ export default ({ getService }: FtrProviderContext) => { id_value: { type: 'keyword', }, + service: { + properties: { + asset: { + properties: { + criticality: { + type: 'keyword', + }, + }, + }, + name: { + type: 'keyword', + }, + }, + }, updated_at: { type: 'date', }, diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality_csv_upload.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality_csv_upload.ts index 737458f75a516..3dda5f462afdd 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality_csv_upload.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/asset_criticality_csv_upload.ts @@ -108,7 +108,8 @@ export default ({ getService }: FtrProviderContext) => { }, { index: 2, - message: 'Invalid entity type "invalid_entity", expected host or user', + message: + 'Invalid entity type "invalid_entity", expected to be one of: user, host, service', }, { index: 3, diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/ess.config.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/ess.config.ts index dda8f6aa07059..a7617f75514d1 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/ess.config.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/ess.config.ts @@ -17,7 +17,9 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { ...functionalConfig.get('kbnTestServer'), serverArgs: [ ...functionalConfig.get('kbnTestServer.serverArgs'), - `--xpack.securitySolution.enableExperimental=${JSON.stringify([])}`, + `--xpack.securitySolution.enableExperimental=${JSON.stringify([ + 'serviceEntityStoreEnabled', + ])}`, ], }, testFiles: [require.resolve('..')], diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/serverless.config.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/serverless.config.ts index d91303b344403..66045b8005c61 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/serverless.config.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/configs/serverless.config.ts @@ -9,7 +9,7 @@ import { createTestConfig } from '../../../../../config/serverless/config.base'; export default createTestConfig({ kbnTestServerArgs: [ - `--xpack.securitySolution.enableExperimental=${JSON.stringify([])}`, + `--xpack.securitySolution.enableExperimental=${JSON.stringify(['serviceEntityStoreEnabled'])}`, `--xpack.securitySolutionServerless.productTypes=${JSON.stringify([ { product_line: 'security', product_tier: 'complete' }, { product_line: 'endpoint', product_tier: 'complete' }, diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis.ts index bbcfd976abeb7..2b90aaf41f14a 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis.ts @@ -161,6 +161,65 @@ export default ({ getService }: FtrProviderContext) => { }, }, }, + service: { + properties: { + name: { + type: 'keyword', + }, + risk: { + properties: { + calculated_level: { + type: 'keyword', + }, + calculated_score: { + type: 'float', + }, + calculated_score_norm: { + type: 'float', + }, + category_1_count: { + type: 'long', + }, + category_1_score: { + type: 'float', + }, + id_field: { + type: 'keyword', + }, + id_value: { + type: 'keyword', + }, + inputs: { + properties: { + category: { + type: 'keyword', + }, + description: { + type: 'keyword', + }, + id: { + type: 'keyword', + }, + index: { + type: 'keyword', + }, + risk_score: { + type: 'float', + }, + timestamp: { + type: 'date', + }, + }, + type: 'object', + }, + notes: { + type: 'keyword', + }, + }, + type: 'object', + }, + }, + }, user: { properties: { name: { @@ -372,6 +431,65 @@ export default ({ getService }: FtrProviderContext) => { }, }, }, + service: { + properties: { + name: { + type: 'keyword', + }, + risk: { + properties: { + calculated_level: { + type: 'keyword', + }, + calculated_score: { + type: 'float', + }, + calculated_score_norm: { + type: 'float', + }, + category_1_count: { + type: 'long', + }, + category_1_score: { + type: 'float', + }, + id_field: { + type: 'keyword', + }, + id_value: { + type: 'keyword', + }, + inputs: { + properties: { + category: { + type: 'keyword', + }, + description: { + type: 'keyword', + }, + id: { + type: 'keyword', + }, + index: { + type: 'keyword', + }, + risk_score: { + type: 'float', + }, + timestamp: { + type: 'date', + }, + }, + type: 'object', + }, + notes: { + type: 'keyword', + }, + }, + type: 'object', + }, + }, + }, user: { properties: { name: { @@ -520,6 +638,9 @@ export default ({ getService }: FtrProviderContext) => { end: 'now', start: 'now-30d', }, + _meta: { + mappingsVersion: 2, + }, }); }); diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/risk_score_preview.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/risk_score_preview.ts index af4567eac3d6d..abc1d33221fc8 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/risk_score_preview.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/risk_score_preview.ts @@ -622,6 +622,7 @@ export default ({ getService }: FtrProviderContext): void => { expect(scores).to.eql({ host: [], + service: [], user: [], }); }); diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/telemetry_usage.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/telemetry_usage.ts index bc115b443893f..13cc5e3f6b045 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/telemetry_usage.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/telemetry_usage.ts @@ -65,6 +65,14 @@ export default ({ getService }: FtrProviderContext) => { it('@skipInServerlessMKI should return metrics with expected values when risk engine is enabled', async () => { expect(await areRiskScoreIndicesEmpty({ log, es })).to.be(true); + const serviceId = uuidv4(); + const serviceDocs = Array(10) + .fill(buildDocument({}, serviceId)) + .map((event, index) => ({ + ...event, + 'service.name': `service-${index}`, + })); + const hostId = uuidv4(); const hostDocs = Array(10) .fill(buildDocument({}, hostId)) @@ -81,17 +89,17 @@ export default ({ getService }: FtrProviderContext) => { 'user.name': `user-${index}`, })); - await indexListOfDocuments([...hostDocs, ...userDocs]); + await indexListOfDocuments([...hostDocs, ...userDocs, ...serviceDocs]); // , ...serviceDocs await createAndSyncRuleAndAlerts({ - query: `id: ${userId} or id: ${hostId}`, - alerts: 20, + query: `id: ${userId} or id: ${hostId} or id: ${serviceId}`, // + alerts: 30, riskScore: 40, }); await riskEngineRoutes.init(); - await waitForRiskScoresToBePresent({ es, log, scoreCount: 20 }); + await waitForRiskScoresToBePresent({ es, log, scoreCount: 30 }); await retry.try(async () => { const { diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_customized_rules.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_customized_rules.cy.ts new file mode 100644 index 0000000000000..36c9d2f851e3b --- /dev/null +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_customized_rules.cy.ts @@ -0,0 +1,354 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { getPrebuiltRuleMockOfType } from '@kbn/security-solution-plugin/server/lib/detection_engine/prebuilt_rules/mocks'; +import { + RuleResponse, + RuleSignatureId, +} from '@kbn/security-solution-plugin/common/api/detection_engine'; +import { createRuleAssetSavedObject } from '../../../../helpers/rules'; +import { + MODIFIED_RULE_BADGE, + RULES_UPDATES_TABLE, + UPGRADE_ALL_RULES_BUTTON, + UPGRADE_SELECTED_RULES_BUTTON, + getUpgradeSingleRuleButtonByRuleId, +} from '../../../../screens/alerts_detection_rules'; +import { selectRulesByName } from '../../../../tasks/alerts_detection_rules'; +import { deleteAlertsAndRules } from '../../../../tasks/api_calls/common'; +import { + SAMPLE_PREBUILT_RULE, + createAndInstallMockedPrebuiltRules, + installPrebuiltRuleAssets, +} from '../../../../tasks/api_calls/prebuilt_rules'; +import { patchRule } from '../../../../tasks/api_calls/rules'; +import { resetRulesTableState } from '../../../../tasks/common'; +import { login } from '../../../../tasks/login'; +import { + assertRuleUpgradeConflictsModalShown, + assertRuleUpgradeSuccessToastShown, + assertRulesNotPresentInRuleUpdatesTable, + assertRulesPresentInRuleUpdatesTable, + assertUpgradeRequestIsComplete, + clickRuleUpdatesTab, + clickUpgradeRuleWithoutConflicts, + filterPrebuiltRulesUpdateTableByRuleCustomization, +} from '../../../../tasks/prebuilt_rules'; +import { visitRulesManagementTable } from '../../../../tasks/rules_management'; + +describe( + 'Detection rules, Prebuilt Rules Installation and Update workflow - With Rule Customization, Rule Updates Table', + { + tags: ['@ess', '@serverless', '@skipInServerlessMKI'], + env: { + ftrConfig: { + kbnServerArgs: [ + `--xpack.securitySolution.enableExperimental=${JSON.stringify([ + 'prebuiltRulesCustomizationEnabled', + ])}`, + ], + }, + }, + }, + + () => { + describe('Upgrade of prebuilt rules with conflicts', () => { + const RULE_1_ID = 'rule_1'; + const RULE_2_ID = 'rule_2'; + const OUTDATED_RULE_1 = createRuleAssetSavedObject({ + name: 'Old rule 1', + rule_id: RULE_1_ID, + version: 1, + }); + const UPDATED_RULE_1 = createRuleAssetSavedObject({ + name: 'New rule 1', + rule_id: RULE_1_ID, + version: 2, + }); + const OUTDATED_RULE_2 = createRuleAssetSavedObject({ + name: 'Old rule 2', + rule_id: RULE_2_ID, + version: 1, + }); + const UPDATED_RULE_2 = createRuleAssetSavedObject({ + name: 'New rule 2', + rule_id: RULE_2_ID, + version: 2, + }); + const patchedName = 'A new name that creates a conflict'; + + beforeEach(() => { + login(); + resetRulesTableState(); + deleteAlertsAndRules(); + cy.intercept('POST', '/internal/detection_engine/prebuilt_rules/upgrade/_perform').as( + 'updatePrebuiltRules' + ); + + setUpRuleUpgrades({ + currentRuleAssets: [OUTDATED_RULE_1, OUTDATED_RULE_2], + rulePatches: [ + { rule_id: RULE_1_ID, name: `Old rule 1 - ${patchedName}` }, + { rule_id: RULE_2_ID, name: `Old rule 2 - ${patchedName}` }, + ], + newRuleAssets: [UPDATED_RULE_1, UPDATED_RULE_2], + }); + + visitRulesManagementTable(); + clickRuleUpdatesTab(); + }); + + it('should disable individual upgrade buttons for all prebuilt rules with conflicts', () => { + // All buttons should be disabled because of conflicts + for (const rule of [OUTDATED_RULE_1, OUTDATED_RULE_2]) { + const { rule_id: ruleId } = rule['security-rule']; + expect(cy.get(getUpgradeSingleRuleButtonByRuleId(ruleId)).should('be.disabled')); + } + }); + + it('should disable `Update selected rules` button when all selected rules have conflicts', () => { + selectRulesByName(['Old rule 1', 'Old rule 2']); + cy.get(UPGRADE_SELECTED_RULES_BUTTON).should('be.disabled'); + }); + + it('should disable `Update all rules` button when all rules have conflicts', () => { + cy.get(UPGRADE_ALL_RULES_BUTTON).should('be.disabled'); + }); + }); + + describe('Upgrade of prebuilt rules with and without conflicts', () => { + const RULE_1_ID = 'rule_1'; + const RULE_2_ID = 'rule_2'; + const RULE_3_ID = 'rule_3'; + const OUTDATED_RULE_1 = createRuleAssetSavedObject({ + name: 'Outdated rule 1', + rule_id: RULE_1_ID, + version: 1, + }); + const UPDATED_RULE_1 = createRuleAssetSavedObject({ + name: 'Updated rule 1', + rule_id: RULE_1_ID, + version: 2, + }); + const OUTDATED_RULE_2 = createRuleAssetSavedObject({ + name: 'Outdated rule 2', + rule_id: RULE_2_ID, + version: 1, + }); + const UPDATED_RULE_2 = createRuleAssetSavedObject({ + name: 'Updated rule 2', + rule_id: RULE_2_ID, + version: 2, + }); + const OUTDATED_RULE_3 = createRuleAssetSavedObject({ + name: 'Outdated rule 3', + rule_id: RULE_3_ID, + version: 1, + }); + const UPDATED_RULE_3 = createRuleAssetSavedObject({ + name: 'Updated rule 3', + rule_id: RULE_3_ID, + version: 2, + }); + const patchedName = 'Conflicting rule name'; + + beforeEach(() => { + login(); + resetRulesTableState(); + deleteAlertsAndRules(); + cy.intercept('POST', '/internal/detection_engine/prebuilt_rules/upgrade/_perform').as( + 'updatePrebuiltRules' + ); + + setUpRuleUpgrades({ + currentRuleAssets: [OUTDATED_RULE_1, OUTDATED_RULE_2, OUTDATED_RULE_3], + rulePatches: [{ rule_id: RULE_1_ID, name: patchedName }], + newRuleAssets: [UPDATED_RULE_1, UPDATED_RULE_2, UPDATED_RULE_3], + }); + + visitRulesManagementTable(); + clickRuleUpdatesTab(); + }); + + it('should filter by customized prebuilt rules', () => { + // Filter table to show modified rules only + filterPrebuiltRulesUpdateTableByRuleCustomization('Modified'); + cy.get(MODIFIED_RULE_BADGE).should('exist'); + + // Verify only rules with customized rule sources are displayed + cy.get(RULES_UPDATES_TABLE).contains(patchedName); + assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); + }); + + it('should filter by non-customized prebuilt rules', () => { + // Filter table to show unmodified rules only + filterPrebuiltRulesUpdateTableByRuleCustomization('Unmodified'); + cy.get(MODIFIED_RULE_BADGE).should('not.exist'); + + // Verify only rules with non-customized rule sources are displayed + assertRulesPresentInRuleUpdatesTable([OUTDATED_RULE_2]); + cy.get(patchedName).should('not.exist'); + }); + + it('should allow upgrading rules without conflicts one by one', () => { + cy.get( + getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_2['security-rule'].rule_id) + ).click(); + assertUpgradeRequestIsComplete([OUTDATED_RULE_2]); + assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2]); + assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); + + // Verify conflicting rule and another un-upgraded rule remain + cy.get(RULES_UPDATES_TABLE).contains(patchedName); + assertRulesPresentInRuleUpdatesTable([OUTDATED_RULE_3]); + }); + + it('should disable the upgrade button for conflicting rules while allowing upgrades of no-conflict rules', () => { + // Verify the conflicting rule's upgrade button is disabled + expect( + cy + .get(getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_1['security-rule'].rule_id)) + .should('be.disabled') + ); + + // Verify non-conflicting rules' upgrade buttons are enabled + expect( + cy + .get(getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_2['security-rule'].rule_id)) + .should('not.be.disabled') + ); + expect( + cy + .get(getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_3['security-rule'].rule_id)) + .should('not.be.disabled') + ); + }); + + it('should warn about rules with conflicts not being upgrading when upgrading a set of selected rules', () => { + selectRulesByName([ + patchedName, // Rule with conflict + OUTDATED_RULE_2['security-rule'].name, // Rule without conflict + OUTDATED_RULE_3['security-rule'].name, // Rule without conflict + ]); + cy.get(UPGRADE_SELECTED_RULES_BUTTON).click(); + assertRuleUpgradeConflictsModalShown(); + clickUpgradeRuleWithoutConflicts(); + + // Assert only rules without conflicts are upgraded + assertUpgradeRequestIsComplete([OUTDATED_RULE_2, OUTDATED_RULE_3]); + assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2, OUTDATED_RULE_3]); + assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2, OUTDATED_RULE_3]); + + // Verify conflicting rule remains in the table + cy.get(RULES_UPDATES_TABLE).contains(patchedName); + }); + + it('should warn about rules with conflicts not being upgrading when upgrading all rules', () => { + cy.get(UPGRADE_ALL_RULES_BUTTON).click(); + assertRuleUpgradeConflictsModalShown(); + clickUpgradeRuleWithoutConflicts(); + + // Assert only rules without conflicts are upgraded + assertUpgradeRequestIsComplete([OUTDATED_RULE_2, OUTDATED_RULE_3]); + assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2, OUTDATED_RULE_3]); + assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2, OUTDATED_RULE_3]); + + // Verify conflicting rule remains in the table + cy.get(RULES_UPDATES_TABLE).contains(patchedName); + }); + }); + + describe('Upgrade of prebuilt rules with rule type changes', () => { + const RULE_1_ID = 'rule_1'; + const RULE_2_ID = 'rule_2'; + const OUTDATED_QUERY_RULE_1 = createRuleAssetSavedObject({ + ...getPrebuiltRuleMockOfType('query'), + name: 'Outdated query rule 1', + rule_id: RULE_1_ID, + version: 1, + }); + const UPDATED_ESQL_RULE_1 = createRuleAssetSavedObject({ + ...getPrebuiltRuleMockOfType('esql'), + name: 'Updated rule 1', + rule_id: RULE_1_ID, + version: 2, + }); + const OUTDATED_QUERY_RULE_2 = createRuleAssetSavedObject({ + ...getPrebuiltRuleMockOfType('query'), + name: 'Outdated query rule 2', + rule_id: RULE_2_ID, + version: 1, + }); + const UPDATED_ESQL_RULE_2 = createRuleAssetSavedObject({ + ...getPrebuiltRuleMockOfType('esql'), + name: 'Updated rule 2', + rule_id: RULE_2_ID, + version: 2, + }); + + beforeEach(() => { + login(); + resetRulesTableState(); + deleteAlertsAndRules(); + cy.intercept('POST', '/internal/detection_engine/prebuilt_rules/upgrade/_perform').as( + 'updatePrebuiltRules' + ); + + setUpRuleUpgrades({ + currentRuleAssets: [OUTDATED_QUERY_RULE_1, OUTDATED_QUERY_RULE_2], + rulePatches: [], + newRuleAssets: [UPDATED_ESQL_RULE_1, UPDATED_ESQL_RULE_2], + }); + + visitRulesManagementTable(); + clickRuleUpdatesTab(); + }); + + it('should disable individual upgrade button for all rules', () => { + // All buttons should be disabled because rule type changes are considered conflicts + for (const rule of [OUTDATED_QUERY_RULE_1, OUTDATED_QUERY_RULE_2]) { + const { rule_id: ruleId } = rule['security-rule']; + expect(cy.get(getUpgradeSingleRuleButtonByRuleId(ruleId)).should('be.disabled')); + } + }); + + it('should disable `Update selected rules` button for all selected rules', () => { + selectRulesByName([ + OUTDATED_QUERY_RULE_1['security-rule'].name, + OUTDATED_QUERY_RULE_2['security-rule'].name, + ]); + cy.get(UPGRADE_SELECTED_RULES_BUTTON).should('be.disabled'); + }); + + it('should disable `Update all rules` button', () => { + cy.get(UPGRADE_ALL_RULES_BUTTON).should('be.disabled'); + }); + }); + } +); + +interface SetUpRulesParams { + currentRuleAssets: Array; + newRuleAssets: Array; + rulePatches: Array<{ rule_id: RuleSignatureId } & Partial>; +} + +function setUpRuleUpgrades({ + currentRuleAssets, + newRuleAssets, + rulePatches, +}: SetUpRulesParams): void { + /* Create a new rule and install it */ + createAndInstallMockedPrebuiltRules(currentRuleAssets); + + for (const rule of rulePatches) { + const { rule_id: ruleId, ...update } = rule; + patchRule(ruleId, update); + } + /* Create a second version of the rule, making it available for update */ + installPrebuiltRuleAssets(newRuleAssets); +} diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_with_prebuilt_rule_customization.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_with_prebuilt_rule_customization.cy.ts deleted file mode 100644 index 7b487b3d7fdb7..0000000000000 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/update_workflow_with_prebuilt_rule_customization.cy.ts +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { createRuleAssetSavedObject } from '../../../../helpers/rules'; -import { - MODIFIED_RULE_BADGE, - NO_RULES_AVAILABLE_FOR_UPGRADE_MESSAGE, - RULES_UPDATES_TAB, - RULES_UPDATES_TABLE, - SELECT_ALL_RULES_ON_PAGE_CHECKBOX, - UPGRADE_ALL_RULES_BUTTON, - UPGRADE_SELECTED_RULES_BUTTON, - getUpgradeSingleRuleButtonByRuleId, -} from '../../../../screens/alerts_detection_rules'; -import { selectRulesByName } from '../../../../tasks/alerts_detection_rules'; -import { deleteAlertsAndRules } from '../../../../tasks/api_calls/common'; -import { - createAndInstallMockedPrebuiltRules, - installPrebuiltRuleAssets, -} from '../../../../tasks/api_calls/prebuilt_rules'; -import { patchRule } from '../../../../tasks/api_calls/rules'; -import { resetRulesTableState } from '../../../../tasks/common'; -import { login } from '../../../../tasks/login'; -import { - assertRuleUpgradeConflictsModalShown, - assertRuleUpgradeSuccessToastShown, - assertRulesNotPresentInRuleUpdatesTable, - assertRulesPresentInRuleUpdatesTable, - assertUpgradeRequestIsComplete, - clickRuleUpdatesTab, - clickUpgradeRuleWithoutConflicts, - filterPrebuiltRulesUpdateTableByRuleCustomization, -} from '../../../../tasks/prebuilt_rules'; -import { visitRulesManagementTable } from '../../../../tasks/rules_management'; - -describe( - 'Detection rules, Prebuilt Rules Installation and Update workflow - With Rule Customization', - { - tags: ['@ess', '@serverless', '@skipInServerlessMKI'], - env: { - ftrConfig: { - kbnServerArgs: [ - `--xpack.securitySolution.enableExperimental=${JSON.stringify([ - 'prebuiltRulesCustomizationEnabled', - ])}`, - ], - }, - }, - }, - - () => { - describe('Upgrade of prebuilt rules without conflicts', () => { - const RULE_1_ID = 'rule_1'; - const RULE_2_ID = 'rule_2'; - const OUTDATED_RULE_1 = createRuleAssetSavedObject({ - name: 'Outdated rule 1', - rule_id: RULE_1_ID, - version: 1, - }); - const UPDATED_RULE_1 = createRuleAssetSavedObject({ - name: 'Updated rule 1', - rule_id: RULE_1_ID, - version: 2, - }); - const OUTDATED_RULE_2 = createRuleAssetSavedObject({ - name: 'Outdated rule 2', - rule_id: RULE_2_ID, - version: 1, - }); - const UPDATED_RULE_2 = createRuleAssetSavedObject({ - name: 'Updated rule 2', - rule_id: RULE_2_ID, - version: 2, - }); - beforeEach(() => { - login(); - resetRulesTableState(); - deleteAlertsAndRules(); - cy.intercept('POST', '/internal/detection_engine/prebuilt_rules/upgrade/_perform').as( - 'updatePrebuiltRules' - ); - /* Create a new rule and install it */ - createAndInstallMockedPrebuiltRules([OUTDATED_RULE_1, OUTDATED_RULE_2]); - /* Create a second version of the rule, making it available for update */ - installPrebuiltRuleAssets([UPDATED_RULE_1, UPDATED_RULE_2]); - - visitRulesManagementTable(); - clickRuleUpdatesTab(); - }); - - it('should upgrade prebuilt rules one by one', () => { - // Attempt to upgrade rule - cy.get( - getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_1['security-rule'].rule_id) - ).click(); - // Wait for request to complete - assertUpgradeRequestIsComplete([OUTDATED_RULE_1]); - - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_1]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_1]); - }); - - it('should upgrade multiple selected prebuilt rules by selecting them individually', () => { - selectRulesByName([ - OUTDATED_RULE_1['security-rule'].name, - OUTDATED_RULE_2['security-rule'].name, - ]); - cy.get(UPGRADE_SELECTED_RULES_BUTTON).click(); - assertUpgradeRequestIsComplete([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_1, OUTDATED_RULE_2]); - }); - - it('should upgrade multiple selected prebuilt rules by selecting all in page', () => { - cy.get(SELECT_ALL_RULES_ON_PAGE_CHECKBOX).click(); - cy.get(UPGRADE_SELECTED_RULES_BUTTON).click(); - assertUpgradeRequestIsComplete([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_1, OUTDATED_RULE_2]); - }); - - it('should upgrade all rules with available upgrades at once', () => { - cy.get(UPGRADE_ALL_RULES_BUTTON).click(); - assertUpgradeRequestIsComplete([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_1, OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_1, OUTDATED_RULE_2]); - }); - - it('should display an empty screen when all rules with available updates have been upgraded', () => { - cy.get(UPGRADE_ALL_RULES_BUTTON).click(); - cy.get(RULES_UPDATES_TAB).should('not.exist'); - cy.get(NO_RULES_AVAILABLE_FOR_UPGRADE_MESSAGE).should('exist'); - }); - }); - - describe('Upgrade of prebuilt rules with conflicts', () => { - const RULE_1_ID = 'rule_1'; - const RULE_2_ID = 'rule_2'; - const OUTDATED_RULE_1 = createRuleAssetSavedObject({ - name: 'Outdated rule 1', - rule_id: RULE_1_ID, - version: 1, - }); - const UPDATED_RULE_1 = createRuleAssetSavedObject({ - name: 'Updated rule 1', - rule_id: RULE_1_ID, - version: 2, - }); - const OUTDATED_RULE_2 = createRuleAssetSavedObject({ - name: 'Outdated rule 2', - rule_id: RULE_2_ID, - version: 1, - }); - const UPDATED_RULE_2 = createRuleAssetSavedObject({ - name: 'Updated rule 2', - rule_id: RULE_2_ID, - version: 2, - }); - const patchedName = 'A new name that creates a conflict'; - beforeEach(() => { - login(); - resetRulesTableState(); - deleteAlertsAndRules(); - cy.intercept('POST', '/internal/detection_engine/prebuilt_rules/upgrade/_perform').as( - 'updatePrebuiltRules' - ); - /* Create a new rule and install it */ - createAndInstallMockedPrebuiltRules([OUTDATED_RULE_1, OUTDATED_RULE_2]); - /* Modify one of the rule's name to cause a conflict */ - patchRule(OUTDATED_RULE_1['security-rule'].rule_id, { - name: patchedName, - }); - /* Create a second version of the rule, making it available for update */ - installPrebuiltRuleAssets([UPDATED_RULE_1, UPDATED_RULE_2]); - - visitRulesManagementTable(); - clickRuleUpdatesTab(); - }); - - it('should filter by customized prebuilt rules', () => { - // Filter table to show modified rules only - filterPrebuiltRulesUpdateTableByRuleCustomization('Modified'); - cy.get(MODIFIED_RULE_BADGE).should('exist'); - - // Verify only rules with customized rule sources are displayed - cy.get(RULES_UPDATES_TABLE).contains(patchedName); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - }); - - it('should filter by customized prebuilt rules', () => { - // Filter table to show unmodified rules only - filterPrebuiltRulesUpdateTableByRuleCustomization('Unmodified'); - cy.get(MODIFIED_RULE_BADGE).should('not.exist'); - - // Verify only rules with non-customized rule sources are displayed - assertRulesPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - cy.get(patchedName).should('not.exist'); - it('should upgrade prebuilt rules without conflicts one by one', () => { - cy.get( - getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_2['security-rule'].rule_id) - ).click(); - // Wait for request to complete - assertUpgradeRequestIsComplete([OUTDATED_RULE_2]); - - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - }); - - it('should disable individual upgrade button for prebuilt rules with conflicts one by one', () => { - // Button should be disabled because of conflicts - expect( - cy - .get(getUpgradeSingleRuleButtonByRuleId(OUTDATED_RULE_1['security-rule'].rule_id)) - .should('be.disabled') - ); - }); - - it('should warn about rules with conflicts not being updated when multiple rules are individually selected for update', () => { - selectRulesByName([patchedName, OUTDATED_RULE_2['security-rule'].name]); - cy.get(UPGRADE_SELECTED_RULES_BUTTON).click(); - assertRuleUpgradeConflictsModalShown(); - clickUpgradeRuleWithoutConflicts(); - // Assert that only rules without conflicts are updated and the other remains in the table - assertUpgradeRequestIsComplete([OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - cy.get(RULES_UPDATES_TABLE).contains(patchedName); - }); - - it('should warn about rules with conflicts not being updated when all rules in page are selected', () => { - cy.get(SELECT_ALL_RULES_ON_PAGE_CHECKBOX).click(); - cy.get(UPGRADE_SELECTED_RULES_BUTTON).click(); - assertRuleUpgradeConflictsModalShown(); - clickUpgradeRuleWithoutConflicts(); - // Assert that only rules without conflicts are updated and the other remains in the table - assertUpgradeRequestIsComplete([OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - cy.get(RULES_UPDATES_TABLE).contains(patchedName); - }); - - it('should warn about rules with conflicts not being updated when all rules with available upgrades are upgraded at once', () => { - cy.get(UPGRADE_ALL_RULES_BUTTON).click(); - assertRuleUpgradeConflictsModalShown(); - clickUpgradeRuleWithoutConflicts(); - // Assert that only rules without conflicts are updated and the other remains in the table - assertUpgradeRequestIsComplete([OUTDATED_RULE_2]); - assertRuleUpgradeSuccessToastShown([OUTDATED_RULE_2]); - assertRulesNotPresentInRuleUpdatesTable([OUTDATED_RULE_2]); - cy.get(RULES_UPDATES_TABLE).contains(patchedName); - }); - }); - }); - } -); diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/complete/complete.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/complete/complete.spec.ts index 5081d6b12879b..4d3e1baed3f9b 100644 --- a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/complete/complete.spec.ts +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/complete/complete.spec.ts @@ -67,8 +67,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { }, ]; - // Failing: See https://github.com/elastic/kibana/issues/203407 - describe.skip('/internal/observability_ai_assistant/chat/complete', function () { + describe('/internal/observability_ai_assistant/chat/complete', function () { // TODO: https://github.com/elastic/kibana/issues/192751 this.tags(['skipMKI']); let proxy: LlmProxy; @@ -107,6 +106,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { await titleSimulator.status(200); await titleSimulator.next('My generated title'); + await titleSimulator.tokenCount({ completion: 1, prompt: 1, total: 2 }); await titleSimulator.complete(); await conversationSimulator.status(200); diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/public_complete/public_complete.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/public_complete/public_complete.spec.ts index 3f4a31e92de91..8c4cf35c0bf2c 100644 --- a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/public_complete/public_complete.spec.ts +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/public_complete/public_complete.spec.ts @@ -49,8 +49,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { }, ]; - // Failing: See https://github.com/elastic/kibana/issues/203408 - describe.skip('/api/observability_ai_assistant/chat/complete', function () { + describe('/api/observability_ai_assistant/chat/complete', function () { // TODO: https://github.com/elastic/kibana/issues/192751 this.tags(['skipMKI']); @@ -107,6 +106,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { await titleSimulator.status(200); await titleSimulator.next('My generated title'); + await titleSimulator.tokenCount({ completion: 1, prompt: 1, total: 2 }); await titleSimulator.complete(); await conversationSimulator.status(200); @@ -202,6 +202,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { }, ], }); + await conversationSimulator.tokenCount({ completion: 0, prompt: 0, total: 0 }); await conversationSimulator.complete(); } ); @@ -259,6 +260,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { }, ], }); + await conversationSimulator.tokenCount({ completion: 0, prompt: 0, total: 0 }); await conversationSimulator.complete(); } ); @@ -275,6 +277,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { before(async () => { responseBody = await getOpenAIResponse(async (conversationSimulator) => { await conversationSimulator.next('Hello'); + await conversationSimulator.tokenCount({ completion: 1, prompt: 1, total: 2 }); await conversationSimulator.complete(); }); }); diff --git a/yarn.lock b/yarn.lock index 69b658db033f3..50b6105f4f57f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6813,7 +6813,7 @@ version "0.0.0" uid "" -"@kbn/response-ops-rule-params@link:src/platform/packages/private/response-ops/rule_params": +"@kbn/response-ops-rule-params@link:src/platform/packages/shared/response-ops/rule_params": version "0.0.0" uid "" @@ -16430,10 +16430,10 @@ cypress-recurse@^1.35.2: dependencies: humanize-duration "^3.27.3" -cypress@13.15.2: - version "13.15.2" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.15.2.tgz#ef19554c274bc4ff23802aeb5c52951677fa67f1" - integrity sha512-ARbnUorjcCM3XiPwgHKuqsyr5W9Qn+pIIBPaoilnoBkLdSC2oLQjV1BUpnmc7KR+b7Avah3Ly2RMFnfxr96E/A== +cypress@13.17.0: + version "13.17.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.17.0.tgz#34c3d68080c4497eace0f353bd1629587a5f600d" + integrity sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA== dependencies: "@cypress/request" "^3.0.6" "@cypress/xvfb" "^1.2.4"